Skip to content

Commit

Permalink
feat: Check if PR titles are conventional commit formatted (#340)
Browse files Browse the repository at this point in the history
* Add conventional commit check in PR titles

* Add some guidelines about conventional commits to the PR template
  • Loading branch information
yagopv authored Feb 21, 2022
1 parent a7289fc commit 8c3963d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<!--
Remember to create a title following the Conventional Commits guidelines. Examples for valid PR titles are:
fix: Some thing found in the repo
feat: Add some feature
refactor!: Make some refactor
feat(wallet-connect): Add some feature
Note that since PR titles only have a single line, you have to use the ! syntax for breaking changes.
For more examples, take a look at:
- https://www.conventionalcommits.org/en/v1.0.0
-->

## What it solves
Resolves #

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/conventional-commit-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Conventional commit check'

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8c3963d

Please sign in to comment.