Skip to content

Commit 3937e78

Browse files
Allow GitHub commit reversals
1 parent 9791a77 commit 3937e78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pr_title_check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
run: |
1818
if [[ "$PR_TITLE" =~ ^(Fix|Update|New|Breaking|Docs|Build|Upgrade|Chore):.*$ ]]; then
1919
echo "PR title is prefixed with change type."
20+
elif [[ $PR_TITLE =~ ^Revert "(Fix|Update|New|Breaking|Docs|Build|Upgrade|Chore):.*$]]; then
21+
echo "PR title is a reverted commit with a change type"
2022
else
2123
echo "PR title is not prefixed with change type."
2224
exit 1

0 commit comments

Comments
 (0)