Skip to content

Commit

Permalink
ci: Add semantic PR check GHA workflow (#1868)
Browse files Browse the repository at this point in the history
* As https://github.com/zeke/semantic-pull-requests is no longer maintained
and is down, use the suggested alternative of
https://github.com/amannn/action-semantic-pull-request to check that PR titles
follow the Conventional Commits spec.
  • Loading branch information
matthewfeickert authored May 26, 2022
1 parent 0409ab5 commit 45e0e3c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/semantic-pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Semantic Pull Request

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

concurrency:
group: semantic-pr-${{ github.ref }}
cancel-in-progress: true

jobs:
main:

name: Validate PR title
runs-on: ubuntu-latest

steps:
- name: Check PR title matches Conventional Commits spec
uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 45e0e3c

Please sign in to comment.