-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Check PR title for compliance with conventional commits (#247)
- Loading branch information
1 parent
580cf30
commit 3af6c2d
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |