Skip to content

Commit 5b309d0

Browse files
authored
ci(github-actions): get cooked on labels
1 parent 41887eb commit 5b309d0

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/labels.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This YAML is used to declaratively manage GitHub issue labels with @
2+
3+
- name: bug
4+
color: d73a4a
5+
description: Something isn't working
6+
- name: documentation
7+
color: 0075ca
8+
description: Improvements or additions to documentation
9+
- name: duplicate
10+
color: cfd3d7
11+
description: This issue or pull request already exists
12+
- name: enhancement
13+
color: a2eeef
14+
description: New feature or request
15+
- name: good first issue
16+
color: 7057ff
17+
description: Good for newcomers
18+
- name: help wanted
19+
color: '008672'
20+
description: Extra attention is needed
21+
- name: invalid
22+
color: e4e669
23+
description: This doesn't seem right
24+
- name: question
25+
color: d876e3
26+
description: Further information is requested
27+
- name: wontfix
28+
color: ffffff
29+
description: This will not be worked on

.github/workflows/triageops-labels.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
paths:
1212
- '.github/labels.yml'
1313
- '.github/workflows/triageops-labels.yml'
14+
workflow_dispatch:
15+
inputs:
16+
dry-run:
17+
description: 'Run in dry-run mode'
18+
required: false
19+
default: true
20+
type: boolean
1421

1522
jobs:
1623
labeler:
@@ -26,7 +33,7 @@ jobs:
2633
with:
2734
github-token: ${{ secrets.GITHUB_TOKEN }}
2835
yaml-file: .github/labels.yml
29-
dry-run: ${{ github.event_name == 'pull_request' }}
36+
dry-run: ${{ inputs.dry-run == 'true' || github.event_name == 'pull_request'}}
3037
exclude: |
3138
help*
3239
*issue

0 commit comments

Comments
 (0)