2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

workflow: optimize pr check

This commit is contained in:
耗子
2023-06-28 01:22:16 +08:00
parent af6419971b
commit f4beb731d8
2 changed files with 11 additions and 12 deletions

11
.github/workflows/pr-check-title.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: PR Check Title
on:
pull_request:
jobs:
pr-check-title:
runs-on: ubuntu-latest
steps:
- uses: Slashgear/action-check-pr-title@v4.3.0
with:
regexp: "^(.+)(?:(([^)s]+)))?: .{1,50}|Merge .{1,50})"
helpMessage: "Your PR title is invalid. Please follow the Conventional Commits specification: https://www.conventionalcommits.org/zh-hans/v1.0.0/"

View File

@@ -1,12 +0,0 @@
name: PR Check
on:
pull_request:
jobs:
check-for-cc:
runs-on: ubuntu-latest
steps:
- name: check-for-cc
id: check-for-cc
uses: agenthunt/conventional-commit-checker-action@v2.0.0