-
Notifications
You must be signed in to change notification settings - Fork 78
65 lines (55 loc) · 1.77 KB
/
Copy pathpr.yaml
File metadata and controls
65 lines (55 loc) · 1.77 KB
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
56
57
58
59
60
61
62
63
64
65
# This file is synced with beam-community/common-config. Any changes will be overwritten.
name: PR
on:
merge_group:
pull_request:
types:
- edited
- opened
- reopened
- synchronize
jobs:
Commits:
name: Conventional Commits
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
with:
configFile: .commitlintrc.yml
Labels:
name: Assign Labels
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: mauroalderete/action-assign-labels@671a4ca2da0f900464c58b8b5540a1e07133e915 # v1
with:
pull-request-number: ${{ github.event.pull_request.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix']
labels: ['bug']
- type: 'feature'
nouns: ['FEAT', 'Feat', 'feat']
labels: ['feature']
- type: 'chore'
nouns: ['CHORE', 'Chore', 'chore']
labels: ['chore']
- type: 'docs'
nouns: ['DOCS', 'Docs', 'docs']
labels: ['documentation']
- type: 'ci'
nouns: ['CI', 'Ci', 'ci']
labels: ['ci']