Skip to content

Commit c31a4b7

Browse files
authored
Setup PR labeler github actions
1 parent d67e721 commit c31a4b7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/pr_labeler.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Workflow to associate labels automatically
2+
name: labeler
3+
4+
# Trigger the workflow on pull request events
5+
on: [pull_request]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# We need to checkout the repository to access the configured file (.github/label-pr.yml)
12+
- uses: actions/checkout@v2
13+
- name: Labeler
14+
uses: docker://decathlon/pull-request-labeler-action:2.0.0
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
# Here we can override the path for the action configuration. If none is provided, default one is `.github/label-pr.yml`
18+
# CONFIG_PATH: ${{ secrets.GITHUB_WORKSPACE }}/.github/label-pr.yml
19+
20+
pr-labeler:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: TimonVS/pr-labeler-action@v3
24+
# with:
25+
# configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)