Skip to content

Commit ad5ed07

Browse files
chore: manage labels through labels.yml (#534)
1 parent f422a4c commit ad5ed07

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

.github/labels.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Copyright 2022 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: automerge
54+
color: 00ff00
55+
description: Merge the pull request once unit tests and other checks pass.
56+
- name: 'automerge: exact'
57+
color: 8dd517
58+
description: Summon MOG for automerging, but approvals need to be against the latest
59+
commit
60+
- name: do not merge
61+
color: d93f0b
62+
description: Indicates a pull request not ready for merge, due to either quality
63+
or timing.
64+
65+
- name: 'autorelease: pending'
66+
color: ededed
67+
description: Release please needs to do its work on this.
68+
- name: 'autorelease:triggered'
69+
color: ededed
70+
description: Release please has triggered a release for this.
71+
- name: 'autorelease: tagged'
72+
color: ededed
73+
description: Release please has completed a release for this.
74+
75+
- name: 'tests: run'
76+
color: 3DED97
77+
description: Label to trigger Github Action tests.
78+
79+
- name: 'flakybot: flaky'
80+
color: 86d9d7
81+
description: Tells the Flaky Bot not to close or comment on this issue.
82+
- name: 'flakybot: quiet'
83+
color: 86d9d7
84+
description: Tells the Flaky Bot to comment less.
85+
- name: 'flakybot: issue'
86+
color: a9f9f7
87+
description: An issue filed by the Flaky Bot. Should not be added manually.

.github/workflows/labels.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2022 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+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: micnncim/action-label-syncer@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)