Skip to content

Commit cc2e02f

Browse files
authored
Merge pull request #19 from scribd/helen/SERF-2632/commit-message-check
[SERF-2632] Use shared workflow to check commit message in PR
2 parents 1fc2211 + 3e7e29d commit cc2e02f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
11+
jobs:
12+
check-commit-message:
13+
name: Check Commit Message
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Check Commit Message
17+
uses: gsactions/commit-message-checker@v2
18+
with:
19+
pattern: '^(?:ci|feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+'
20+
error: "One or more commit messages do not meet the format requirements. Please check the requirements here: https://github.com/scribd/terraform-aws-app-secrets#release"
21+
accessToken: ${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }}
22+
excludeTitle: true
23+
excludeDescription: true
24+
checkAllCommitMessages: true

0 commit comments

Comments
 (0)