Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Check PR title for compliance with conventional commits #247

Merged
merged 3 commits into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading