-
Notifications
You must be signed in to change notification settings - Fork 454
35 lines (33 loc) · 874 Bytes
/
pr-labeler.yml
File metadata and controls
35 lines (33 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "PR labeler"
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
branches:
- master
- 'release/**'
jobs:
autolabel:
name: "PR label validator"
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: hmarr/debug-action@v3.0.0
- uses: thehanimo/pr-title-checker@v1.4.3
name: "Validate PR's title"
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr-title-checker-config.json"
- uses: release-drafter/release-drafter@v6.1.0
name: "Set PR's label based on title"
with:
disable-releaser: true
config-name: autolabeler.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}