File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 22
22
path : pr_number.txt
23
23
24
24
check_title_format :
25
- name : PR title must not start with "Fix for issue <number>"
25
+ name : PR title must not contain " issue <number>"
26
26
if : github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
27
27
runs-on : ubuntu-latest
28
28
steps :
36
36
TITLE=$(gh pr view "${{ github.event.number }}" --json title --template '{{.title}}')
37
37
echo "Title: $TITLE"
38
38
39
- if echo "$TITLE" | grep -Eiq '^Fix for issue #?[0-9]+'; then
40
- echo "❌ Title starts with 'Fix for issue <number>' — not allowed."
41
- exit 1
42
- fi
43
-
44
- if echo "$TITLE" | grep -Eiq '^Fixed the issue'; then
45
- echo "❌ Title starts with 'Fixed the issue' — not allowed."
39
+ if echo "$TITLE" | grep -Eiq 'issue ?#?[0-9]+.+'; then
40
+ echo "❌ Title contains 'issue <number>' — not allowed."
46
41
exit 1
47
42
fi
48
43
You can’t perform that action at this time.
0 commit comments