Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacker-smkg committed Feb 8, 2025
1 parent d5760ec commit 09bb64a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/PRTitleChecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR Title Check

on:
pull_request:
types: [opened, edited]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: Check PR Title
id: check_title
run: |
prefixes="build:|chore:|docs:|feat:|fix:|perf:|refactor:|revert:|style:|test:"
if [[ ! "${{ github.event.pull_request.title }}" =~ ^($prefixes) ]]; then
echo "::error::PR title must start with one of the following prefixes: build:, chore:, docs:, feat:, fix:, perf:, refactor:, revert:, style:, test:"
exit 1
fi

0 comments on commit 09bb64a

Please sign in to comment.