-
-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
| Q | A | |---------------|-------------| | Bug fix? | no | | New feature? | no | | Deprecations? | no | | Issues | Close #2264 | * Adds a GitHub Actions workflow (based on [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request)) validating PR titles for compliance with the [Conventional Commits](https://www.conventionalcommits.org/) specification. --------- Co-authored-by: Djordy Koert <[email protected]> Co-authored-by: djordy <[email protected]>
- Loading branch information
1 parent
76bddcb
commit 599283f
Showing
2 changed files
with
32 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: GitHub PR Lint | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pr: | ||
name: Validate semantic PR title | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Semantic PR title | ||
uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
subjectPattern: ^(?![A-Z]).+$ # This pattern ensures the subject doesn't start with an uppercase character. |
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