Skip to content

Commit 8af554c

Browse files
committed
Add check pr issue workflow
1 parent cb41661 commit 8af554c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check PR linked issue and assignee
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
permissions:
10+
contents: read
11+
issues: read
12+
pull-requests: write
13+
14+
jobs:
15+
check-pr-issue:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: Check PR linked issue and assignee
22+
uses: arkid15r/check-pr-issue-action@main
23+
with:
24+
close_pr_on_failure: 'false'
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
no_assignee_message: 'Test: The linked issue must be assigned to the PR author.'
27+
no_issue_message: 'Test: This PR must be linked to an issue.'
28+
require_assignee: 'true'

0 commit comments

Comments
 (0)