Skip to content

Commit 4b158ab

Browse files
author
Arthur Silva Sens
authored
Merge pull request #1525 from SachinSahu431/sachin/update-pr-labeler
Fix: Auto label PRs #1518
2 parents 105a3b7 + 3ac5b77 commit 4b158ab

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/pull-request-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Refer to CONTRIBUTING.md for more details and examples.
2-
https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-fill-the-pr-template
2+
https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-write-a-pr-description
33
-->
44
### Describe your PR
55

.github/workflows/pr-auto-label.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,22 @@ permissions:
1212
checks: write # to generate status
1313

1414
jobs:
15+
remove-old-labels:
16+
name: Remove old PR labels
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: mondeja/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
labels: |
23+
kind/BUGFIX
24+
kind/ENHANCEMENT
25+
kind/FEATURE
26+
kind/CHANGE
27+
release-note-none
1528
pr-labeler:
1629
runs-on: ubuntu-latest
30+
needs: remove-old-labels
1731
steps:
1832
- name: Check Labels
1933
id: labeler

0 commit comments

Comments
 (0)