Skip to content

Commit 0b6c907

Browse files
ci: check pr titles (#180)
* ci: check pr titles Signed-off-by: Kostis Kapelonis <kostis.kapelonis@octopus.com> * ci: pin pr check Signed-off-by: Kostis Kapelonis <kostis.kapelonis@octopus.com> --------- Signed-off-by: Kostis Kapelonis <kostis.kapelonis@octopus.com>
1 parent ac6bf4f commit 0b6c907

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Check PR title"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
main:
15+
permissions:
16+
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
17+
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
18+
name: Validate PR title
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
22+
with:
23+
# Configure which types are allowed (newline delimited).
24+
# Default: https://github.com/commitizen/conventional-commit-types
25+
types: |
26+
feat
27+
fix
28+
docs
29+
style
30+
refactor
31+
perf
32+
test
33+
build
34+
ci
35+
chore
36+
revert
37+
38+
# Configure which scopes are allowed (newline delimited).
39+
scopes: |
40+
http
41+
grpc
42+
tls
43+
tcp
44+
header-based-routing
45+
mirroring
46+
testing
47+
deps
48+
example
49+
50+
# Configure that a scope must always be provided.
51+
requireScope: false
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)