Skip to content

[MDS-6189] Fix bugs #4187

[MDS-6189] Fix bugs

[MDS-6189] Fix bugs #4187

name: Check PR For JIRA Issue
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
jobs:
check-pr-title-jira-link:
runs-on: ubuntu-latest
steps:
- name: Check for PR Title for Jira link
uses: gsactions/commit-message-checker@8c8c0d18ba9b1fcfed6e7385fd2bf357dfc8dccb
with:
pattern: '(\W)+(MDS)+-[0-9]+(\W)|(\W)(CHORE|FIX|Snyk)(\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 [MDS-####] or [CHORE] or [FIX] for general non feature commits"