Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 4da737e

Browse files
authored
Add GitHub Action to require size and kind labels (#4876)
* Add GitHub Action to require size and kind labels Currently there is no enforcement of adding `size/*` or `kind/*` labels to issues. This will help the project and collaborators understand the type of issue, as well as a rough estimate of how long it is projected to take to resolve. This PR adds the workflow to mark issues with `size/needed` in the absence of `size/*` labels, and `kind/needed` in the absence of `kind/*` labels. This will only consider issues that are part of a milestone. Signed-off-by: Thomas Stringer <[email protected]> * Fix typo for configuration setting Signed-off-by: Thomas Stringer <[email protected]>
1 parent aa1abf1 commit 4da737e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/require-labels.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Require labels
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
labels:
8+
name: Require labels
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Require size
12+
uses: trstringer/require-label-prefix@v1
13+
with:
14+
secret: ${{ github.TOKEN }}
15+
prefix: size
16+
addLabel: true
17+
defaultLabel: "size/needed"
18+
onlyMilestone: true
19+
- name: Require kind
20+
uses: trstringer/require-label-prefix@v1
21+
with:
22+
secret: ${{ github.TOKEN }}
23+
prefix: kind
24+
addLabel: true
25+
defaultLabel: "kind/needed"
26+
onlyMilestone: true

0 commit comments

Comments
 (0)