We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7b0c98 commit b4f5d8bCopy full SHA for b4f5d8b
.github/workflows/labeler.yml
@@ -0,0 +1,26 @@
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
+ strategy:
11
+ matrix:
12
+ pr:
13
+ [
14
+ { prefix: 'fix', type: 'bug' },
15
+ { prefix: 'chore', type: 'chore' },
16
+ { prefix: 'test', type: 'chore' },
17
+ { prefix: 'ci', type: 'chore' },
18
+ { prefix: 'feat', type: 'feature' },
19
+ { prefix: 'security', type: 'security' },
20
+ ]
21
+ steps:
22
+ - uses: netlify/[email protected]
23
+ if: startsWith(github.event.pull_request.title, matrix.pr.prefix)
24
+ with:
25
+ token: '${{ secrets.GITHUB_TOKEN }}'
26
+ label: 'type: ${{ matrix.pr.type }}'
0 commit comments