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