chore(deps): bump the minor-gomod group across 1 directory with 7 updates #339
This file contains hidden or 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: PR/item link check | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
jobs: | |
enforce-link: | |
runs-on: ubuntu-latest | |
name: Enforce PR link to Jira | |
steps: | |
- name: Check linkage | |
run: | | |
re="[A-Za-z]+-[0-9]+" | |
err=0 | |
[[ $TITLE =~ $re || $BODY =~ $re || $HEAD_REF =~ $re ]] && echo "Match found: ${BASH_REMATCH[0]}" || err=1 | |
if (( err == 1)); then | |
echo "Invalid pull request: missing JIRA ID in title, body, or branch." | |
exit 1 | |
fi | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
BODY: ${{ github.event.pull_request.body }} | |
HEAD_REF: ${{ github.head_ref}} |