Compare commits

...

1 Commits

Author SHA1 Message Date
d48edfb6ca NO-ISSUE fix: if expression
Some checks failed
Frontend CI / build (push) Has been cancelled
PR Title Check / pr-title-check (pull_request) Failing after 16s
2025-01-20 23:36:54 +08:00

View File

@ -1,5 +1,11 @@
name: PR Title Check name: PR Title Check
on: [pull_request] on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
jobs: jobs:
pr-title-check: pr-title-check:
@ -10,8 +16,8 @@ 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
else else