File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Label PR
2
+ on :
3
+ pull_request :
4
+ types : [opened, edited]
5
+
6
+ jobs :
7
+ label-pr :
8
+ if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : erezrokah/pr-labeler-action@v1.0.0
12
+ if : startsWith(github.event.pull_request.title, 'fix')
13
+ with :
14
+ token : ' ${{ secrets.GITHUB_TOKEN }}'
15
+ label : ' type: bug'
16
+ - uses : erezrokah/pr-labeler-action@v1.0.0
17
+ if : startsWith(github.event.pull_request.title, 'chore') || startsWith(github.event.pull_request.title, 'ci')
18
+ with :
19
+ token : ' ${{ secrets.GITHUB_TOKEN }}'
20
+ label : ' type: chore'
21
+ - uses : erezrokah/pr-labeler-action@v1.0.0
22
+ if : startsWith(github.event.pull_request.title, 'feat')
23
+ with :
24
+ token : ' ${{ secrets.GITHUB_TOKEN }}'
25
+ label : ' type: feature'
26
+ - uses : erezrokah/pr-labeler-action@v1.0.0
27
+ if : startsWith(github.event.pull_request.title, 'security')
28
+ with :
29
+ token : ' ${{ secrets.GITHUB_TOKEN }}'
30
+ label : ' type: security'
You can’t perform that action at this time.
0 commit comments