Verify Linked Issue In PRs #5809
This file contains 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: Verify Linked Issue In PRs | |
on: | |
pull_request_target: | |
types: [edited, synchronize, opened, reopened] | |
check_run: | |
permissions: | |
contents: read | |
jobs: | |
verify_linked_issue: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Verify Linked Issue | |
uses: hattan/verify-linked-issue-action@v1.1.5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
message: 'Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please [manually link to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#manually-linking-a-pull-request-or-branch-to-an-issue-using-the-issue-sidebar) or mention it in the description using #<issue_id>.' |