-
Notifications
You must be signed in to change notification settings - Fork 221
55 lines (45 loc) · 1.34 KB
/
auto-labeling.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
51
52
53
54
55
name: Auto-labeling
on:
pull_request:
branches:
- master
- dev/*.*.*
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, edited, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Refs: https://github.com/release-drafter/release-drafter
auto-labeling:
runs-on: ubuntu-latest
if: |
(!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
&& !startsWith( github.head_ref, 'changeset-release/' ))
steps:
- uses: release-drafter/release-drafter@v5
with:
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check-title:
runs-on: ubuntu-latest
if: |
(!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
&& !startsWith( github.head_ref, 'changeset-release/' )
&& !startsWith( github.head_ref, 'dependabot/' ))
steps:
- uses: amannn/action-semantic-pull-request@v5
with:
types: |
feat
imprv
fix
support
chore
ci
docs
test
requireScope: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}