Skip to content

Commit

Permalink
Move "Check PR Title" CI step to its own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ulgens committed Feb 20, 2025
1 parent 24a7250 commit afbfacb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check_pr_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check PR Title
on: pull_request

jobs:
pre-commit-checks:
runs-on: ubuntu-latest
steps:
- name: Check PR Title
uses: Slashgear/action-check-pr-title@main
with:
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.
5 changes: 1 addition & 4 deletions .github/workflows/precommits_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ jobs:
with:
python-version: "3.9"
cache: "pip"
- name: Check Pull Request Title
uses: Slashgear/action-check-pr-title@main
with:
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.

- name: Getting changed files list
id: files
uses: jitterbit/get-changed-files@master
Expand Down

0 comments on commit afbfacb

Please sign in to comment.