feat(fds): adopt the design system Header for the admin top bar (#17539) #3825
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 check linked issue | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, ready_for_review, synchronize] | |
| jobs: | |
| check-pr-issue: | |
| name: Check Pull Request is linked to an issue | |
| # Only for PR that are targeting 'master' or 'lts/*' and except for renovate | |
| if: ${{ (github.base_ref == 'master' || startsWith(github.base_ref, 'lts/')) && !contains(github.event.pull_request.labels.*.name, 'dependencies') }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - name: Check for linked issues | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| REPO: ${{ github.repository }} | |
| run: | | |
| # Get PR details including linked issues | |
| LINKED_ISSUES=$(gh pr view $PR_NUMBER --repo $REPO --json closingIssuesReferences --jq '.closingIssuesReferences | length') | |
| if [ "$LINKED_ISSUES" -eq 0 ]; then | |
| echo "::error::No linked issues found. Please link at least one issue to this Pull Request." | |
| echo "You can link an issue by using keywords like 'Fixes #123', 'Closes #123', or 'Resolves #123' in the PR description." | |
| exit 1 | |
| else | |
| echo "✓ Found $LINKED_ISSUES linked issue(s)" | |
| fi |