-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 1.11 KB
/
ci-jira.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Jira issue in PR title
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
jobs:
check-pr-title-jira-link:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name:
Check PR title for Jira ticket number unless it is a
CHORE/FIX/REFACTOR/DEVOPS PR
uses: gsactions/commit-message-checker@8c8c0d18ba9b1fcfed6e7385fd2bf357dfc8dccb
with:
pattern: '(\W)+(TC)+-[0-9]+(\W)|(\W)(CHORE|FIX|REFACTOR|DEVOPS)(\W)'
excludeTitle: "false" # optional: this excludes the title of a pull request
excludeDescription: "true" # optional: this excludes the description body of a pull request
checkAllCommitMessages: "false" # optional: this checks all commits associated with a pull request
# accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
error:
"PR title should look like [TC-####] or [CHORE] or [FIX] or
[REFACTOR] for general non feature commits"