chore(deps): bump golangci/golangci-lint-action from 6.5.2 to 7.0.0 in the major-gh-actions group #331
Workflow file for this run
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}} |