Skip to content

Commit 1fc1199

Browse files
authored
added labeler github action (#973)
1 parent f03dea7 commit 1fc1199

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
monthly:
2+
- base-branch: ["monthly"]
3+
4+
stable:
5+
- base-branch: ["stable"]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Reference: https://github.com/actions/labeler
2+
name: PR labels
3+
4+
on:
5+
pull_request_target:
6+
7+
jobs:
8+
synchronize-labels:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
issues: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- id: label-the-PR
16+
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # 6.0.1
17+
with:
18+
sync-labels: true
19+
20+
- id: print-labels
21+
env:
22+
NEW_LABELS: ${{ steps.label-the-PR.outputs.new-labels }}
23+
ALL_LABELS: ${{ steps.label-the-PR.outputs.all-labels }}
24+
run: |
25+
echo "New labels: $NEW_LABELS"
26+
echo "All labels: $ALL_LABELS"

0 commit comments

Comments
 (0)