[client-python] chore(deps): update dependency sphinx_rtd_theme to v3.1.0 #12
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: Check linked issues | |
| 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 |