Skip to content

Commit afbfacb

Browse files
committed
Move "Check PR Title" CI step to its own workflow
1 parent 24a7250 commit afbfacb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/check_pr_title.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check PR Title
2+
on: pull_request
3+
4+
jobs:
5+
pre-commit-checks:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check PR Title
9+
uses: Slashgear/action-check-pr-title@main
10+
with:
11+
regexp: '(break|build|ci|docs|feat|fix|perf|refactor|style|test|ops|hotfix|release|maint|init|enh|revert)\([a-z,A-Z,0-9,\-,\_,\/,:]+\)(:)\s{1}([\w\s]+)' # Regex the title should match.

.github/workflows/precommits_check.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ jobs:
1212
with:
1313
python-version: "3.9"
1414
cache: "pip"
15-
- name: Check Pull Request Title
16-
uses: Slashgear/action-check-pr-title@main
17-
with:
18-
regexp: '(break|build|ci|docs|feat|fix|perf|refactor|style|test|ops|hotfix|release|maint|init|enh|revert)\([a-z,A-Z,0-9,\-,\_,\/,:]+\)(:)\s{1}([\w\s]+)' # Regex the title should match.
15+
1916
- name: Getting changed files list
2017
id: files
2118
uses: jitterbit/get-changed-files@master

0 commit comments

Comments
 (0)