feat(storybook): 301 storybook.vllnt.ai to canonical storybook.vllnt.com #567
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 Issue Link | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: pr-issue-link-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| enforce-issue-link: | |
| name: Enforce issue-linked PRs | |
| runs-on: ubuntu-latest | |
| env: | |
| PR_BODY: ${{ github.event.pull_request.body || '' }} | |
| steps: | |
| - name: Validate PR body links a GitHub issue | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| shopt -s nocasematch | |
| pattern='(close[sd]?|fix(es|ed)?|resolve[sd]?|part of|related to):?[[:space:]]+([[:alnum:]_.-]+/[[:alnum:]_.-]+)?#[0-9]+' | |
| if [[ "$PR_BODY" =~ $pattern ]]; then | |
| echo "Issue link found in PR body." | |
| exit 0 | |
| fi | |
| echo "PR body must link a GitHub issue. Accepted (case-insensitive, optional colon): close/closes/closed, fix/fixes/fixed, resolve/resolves/resolved, Part of, Related to -- followed by #123 or owner/repo#123." >&2 | |
| exit 1 |