Skip to content

Commit

Permalink
chore: Enforce PR titles follow conventional commit specification (#1706
Browse files Browse the repository at this point in the history
)

PRs are no longer valid if users do not put `type(scope): mesasge`.

Most PRs are already of this form.
  • Loading branch information
kevaundray authored Aug 21, 2023
1 parent aa7f662 commit eeb38ac
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pull Request

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
conventional-title:
name: Validate PR title is Conventional Commit
runs-on: ubuntu-latest
steps:
- name: Check title
if: github.event_name == 'pull_request'
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
fix
feat
chore
refactor

0 comments on commit eeb38ac

Please sign in to comment.