Skip to content

fix(deps): update dependency wheel to >=0.48.0,<0.49.0 #761

fix(deps): update dependency wheel to >=0.48.0,<0.49.0

fix(deps): update dependency wheel to >=0.48.0,<0.49.0 #761

name: Check linked issues

Check warning on line 1 in .github/workflows/check-linked-issues.yml

View workflow run for this annotation

GitHub Actions / Check linked issues

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
branches: [main]
types: [opened, edited, reopened, synchronize]
jobs:
check-pr-issue:
name: Check Pull Request is linked to an issue
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
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