Skip to content

Commit 3b8c821

Browse files
committed
Make commit organization a separate job
1 parent d4519d4 commit 3b8c821

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/commit-checker.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ on:
88
- synchronize
99

1010
jobs:
11+
check-commit-organization:
12+
name: Check if 'main' was merged to the ticket branch
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check that main was not merged
16+
uses: gsactions/commit-message-checker@v2
17+
with:
18+
excludeDescription: 'true' # optional: this excludes the description body of a pull request
19+
excludeTitle: 'true' # optional: this excludes the title of a pull request
20+
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
21+
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
22+
pattern: ^(?!Merge branch 'main' into)
23+
error: 'Ticket branch needs to be rebased onto main'
24+
1125
check-commit-message:
1226
name: Check Commit Message
1327
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)