PR-4962: Error cases changes #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Naming' | |
on: pull_request | |
jobs: | |
check-branch-name: | |
name: Branch-Name | |
runs-on: ubuntu-latest | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
# Check that branch starts with a ticket number | |
# e.g. PAY-123-some_branch_name | |
# master and develop are the only 2 exceptions | |
# see: https://github.com/marketplace/actions/branch-name-rules | |
- uses: deepakputhraya/action-branch-name@master | |
with: | |
regex: '^[A-Z]+-[0-9]+-.*$' | |
ignore: master,develop | |
check-pr-title: | |
name: PR-Title | |
runs-on: ubuntu-latest | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
# Check that PR title starts with a ticket number | |
# e.g. PAY-123: some commit message | |
# see: https://github.com/marketplace/actions/check-pull-request-title | |
- uses: Slashgear/[email protected] | |
with: | |
regexp: '^[A-Z]+-[0-9]+:.*$' |