Skip to content

Commit

Permalink
ci: Check PR title for compliance with conventional commits (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski authored Jun 23, 2024
1 parent 580cf30 commit 3af6c2d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# We use the "squash and merge" merge strategy, which by default uses the PR title for
# the commit title. In order to ensure squashed/merged commits follow the "conventional commits"
# pattern, we check that the PR title follows the pattern.

name: Conventional Commits

on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, edited, reopened ]

permissions:
pull-requests: read

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

0 comments on commit 3af6c2d

Please sign in to comment.