-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (43 loc) · 1.72 KB
/
labeler.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Auto Labeler
on:
pull_request:
types: [opened, edited, synchronize, ready_for_review]
pull_request_target:
jobs:
auto-labeler:
name: Auto Labeler
runs-on: ubuntu-latest
permissions:
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
contents: read
## just for multi-labeler
# statuses: write
# checks: write
steps:
## doesn't work
# - uses: release-drafter/release-drafter@v6
# with:
# config-name: release-drafter.yml
# disable-releaser: true # releaser mode is disabled.
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: fuxingloh/multi-labeler@v1
# name: conventional-commits-pull-request-labeler
# with:
# github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}'
# config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml'
# https://github.com/actions/labeler
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
# https://docs.github.com/en/actions/using-workflows/about-workflows#creating-dependent-jobs
# https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow
- name: check-conventional-commits-labels
uses: docker://agilepathway/pull-request-label-checker:latest
if: success()
with:
any_of: feature,bug,enhancement,refactor,deprecated,security,documentation,build,ci/cd,devops,chore,performance,formatting,dependencies,test,major,minor,patch
repo_token: ${{ secrets.GITHUB_TOKEN }}