Skip to content

Commit 1b226b8

Browse files
ci: require conventional commit title (#257)
This is needed to Release please can function properly
1 parent 9af9431 commit 1b226b8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Conventional Commit'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
# Defaults
7+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
8+
- opened
9+
- reopened
10+
- synchronize
11+
# Tracks editing PR title or description, or base branch changes
12+
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request
13+
- edited
14+
15+
jobs:
16+
main:
17+
name: '[Required] Validate PR title'
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: read
21+
steps:
22+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)