Compare commits
1 Commits
a8782430d9
...
d48edfb6ca
Author | SHA1 | Date | |
---|---|---|---|
d48edfb6ca |
@ -1,5 +1,11 @@
|
||||
name: PR Title Check
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
pr-title-check:
|
||||
@ -10,8 +16,8 @@ jobs:
|
||||
|
||||
- name: Check PR title
|
||||
run: |
|
||||
title=${{ gitea.event.pull_request.title }}
|
||||
if [[ ! $title =~ ^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$ ]]; then
|
||||
title="${{ gitea.event.pull_request.title }}"
|
||||
if [[ ! "$title" =~ "^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$" ]]; then
|
||||
echo 'The title is not meet the format `BLOG-XXX Title title title`'
|
||||
exit 1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user