Skip to content

Commit a30208e

Browse files
AlejandroFernandezLucesRobPasMue
authored andcommitted
maint: Add branch name checker (#1007)
1 parent 088d3f4 commit a30208e

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ updates:
1010
assignees:
1111
- "pyansys-ci-bot"
1212
commit-message:
13-
prefix: "MAINT"
13+
prefix: "build"
1414
groups:
1515
grpc-deps:
1616
patterns:

.github/workflows/ci_cd.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@ concurrency:
3131

3232
jobs:
3333

34+
branch-name:
35+
if: github.event_name == 'pull_request'
36+
name: Check the name of the branch
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Check branch name
40+
uses: ansys/actions/branch-name-style@v5
41+
42+
commit-name:
43+
if: github.event_name == 'pull_request'
44+
name: Check the name of the commit
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Check commit name
48+
uses: ansys/actions/commit-style@v5
49+
with:
50+
token: ${{ secrets.GITHUB_TOKEN }}
51+
3452
docs-style:
3553
name: Documentation Style Check
3654
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)