File tree 2 files changed +19
-124
lines changed
2 files changed +19
-124
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Check pull requests
1
+ # See https://github.com/amannn/action-semantic-pull-request
2
+ name : ' PR Title is Conventional'
2
3
3
4
on :
4
- push :
5
- branches-ignore : # Run the checks on all branches but the protected ones
6
- - main
7
- - release/*
8
-
9
5
pull_request_target :
10
- branches :
11
- - main
12
- - release/*
13
6
types :
14
7
- opened
15
8
- edited
16
- - reopened
17
- - ready_for_review
9
+ - synchronize
18
10
19
11
jobs :
20
- check-conventional-commits :
12
+ main :
13
+ name : Validate PR title
21
14
runs-on : ubuntu-latest
22
-
23
15
steps :
24
- - uses : actions/checkout@v4
16
+ - uses : amannn/action-semantic-pull-request@v5
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
19
with :
26
- sparse-checkout : |
27
- .github
28
-
29
- - if : ${{ github.event_name == 'pull_request_target' }}
30
- run : |
31
- set -ex
32
-
33
- node .github/workflows/conventional-commits-lint.js pr <<EOF
34
- ${{ toJSON(github.event) }}
35
- EOF
36
-
37
- - if : ${{ github.event_name == 'push' }}
38
- run : |
39
- set -ex
40
-
41
- node .github/workflows/conventional-commits-lint.js push <<EOF
42
- ${{ toJSON(github.event) }}
43
- EOF
20
+ scopes : |
21
+ realtime
22
+ auth
23
+ storage
24
+ functions
25
+ postgrest
26
+ subjectPattern : ^(?![A-Z]).+$
27
+ subjectPatternError : |
28
+ The subject "{subject}" found in the pull request title "{title}"
29
+ didn't match the configured pattern. Please ensure that the subject
30
+ doesn't start with an uppercase character.
You can’t perform that action at this time.
0 commit comments