Skip to content

Commit 82fc41f

Browse files
authored
chore: add labels and workflow (#31)
1 parent 5147b53 commit 82fc41f

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

.github/labels.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
- name: duplicate
16+
color: ededed
17+
description: ""
18+
19+
- name: 'type: bug'
20+
color: db4437
21+
description: Error or flaw in code with unintended results or allowing sub-optimal
22+
usage patterns.
23+
- name: 'type: cleanup'
24+
color: c5def5
25+
description: An internal cleanup or hygiene concern.
26+
- name: 'type: docs'
27+
color: 0000A0
28+
description: Improvement to the documentation for an API.
29+
- name: 'type: feature request'
30+
color: c5def5
31+
description: "'Nice-to-have' improvement, new feature or different behavior or design."
32+
- name: 'type: process'
33+
color: c5def5
34+
description: A process-related concern. May include testing, release, or the like.
35+
- name: 'type: question'
36+
color: c5def5
37+
description: Request for information or clarification.
38+
39+
- name: 'priority: p0'
40+
color: b60205
41+
description: Highest priority. Critical issue. P0 implies highest priority.
42+
- name: 'priority: p1'
43+
color: ffa03e
44+
description: Important issue which blocks shipping the next release. Will be fixed
45+
prior to next release.
46+
- name: 'priority: p2'
47+
color: fef2c0
48+
description: Moderately-important priority. Fix may not be included in next release.
49+
- name: 'priority: p3'
50+
color: ffffc7
51+
description: Desirable enhancement or fix. May not be included in next release.
52+
53+
- name: 'do not merge'
54+
color: d93f0b
55+
description: Indicates a pull request not ready for merge, due to either quality
56+
or timing.
57+
58+
- name: 'autorelease: pending'
59+
color: ededed
60+
description: Release please needs to do its work on this.
61+
- name: 'autorelease: triggered'
62+
color: ededed
63+
description: Release please has triggered a release for this.
64+
- name: 'autorelease: tagged'
65+
color: ededed
66+
description: Release please has completed a release for this.
67+
68+
69+
- name: 'docs: deploy-preview'
70+
color: BFDADC
71+
description: Label to trigger Github Action docs preview.
72+
73+
- name: 'status: help wanted'
74+
color: 8befd7
75+
description: 'Status: Unplanned work open to contributions from the community.'
76+
- name: 'status: feedback wanted'
77+
color: 8befd7
78+
description: 'Status: waiting for feedback from community or issue author.'
79+
80+
- name: 'status: waiting for response'
81+
color: 8befd7
82+
description: 'Status: reviewer is awaiting feedback or responses from the author before proceeding.'

.github/workflows/sync-labels.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Sync Labels
16+
on:
17+
push:
18+
branches:
19+
- main
20+
21+
# Declare default permissions as read only.
22+
permissions: read-all
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: 'read'
29+
issues: 'write'
30+
pull-requests: 'write'
31+
steps:
32+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
manifest: .github/labels.yaml

0 commit comments

Comments
 (0)