Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into use-github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Nov 9, 2023
2 parents fb92eab + 3e283f9 commit 03f2e7a
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/semantic-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,12 @@ on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- synchronize

jobs:
validate:
semantic-pr-title:
runs-on: ubuntu-latest
steps:
- name: Check PR title
run: |
set -e
Title='${{ github.event.pull_request.title }}'
CommitTypes="feat fix perf style docs refactor test build ci chore Merge Revert"
echo "Validating PR title: \"$Title\""
echo
for Type in $CommitTypes; do
if [[ "$Title" =~ ^"$Type" ]]; then
echo "Title matches conventional commits."
exit 0
fi
done
echo "PR title does not follow conventional commits."
echo "Please refer to https://www.conventionalcommits.org/en/v1.0.0"
exit 1
- uses: dequelabs/semantic-pr-title@v1

0 comments on commit 03f2e7a

Please sign in to comment.