Skip to content

Commit

Permalink
ci: validate the PR title rather than the commit message (#1169)
Browse files Browse the repository at this point in the history
If we switch the repository to require squash-and-merge strategy with
the commit using the PR title, then this makes it a lot easier to
enforce conventional commits.

Co-authored-by: Mingwei Samuel <[email protected]>
  • Loading branch information
shadaj and MingweiSamuel authored May 24, 2024
1 parent 0ed1f26 commit bf1322d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: Conventional Commits

on:
pull_request:
branches: [ main ]
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
build:
main:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webiny/[email protected]
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf1322d

Please sign in to comment.