verify-linked-issue-action
verify-linked-issue-action copied to clipboard
Verify that the PR submitter
Can we add an option to check that the PR submitter Is the same user assigned to the issue?
Doesn't really seem like this project is active anymore? If you make your own action, I'd recommend looking at the "closingIssuesReferences" in the GraphQL API for pull requests (not what they use in this action):
query getLinkedIssues($owner: String!, $name: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
pullRequest(number: $number) {
closingIssuesReferences(first: 30) {
nodes {
number
}
}
}
}
}
We're letting people use this in PullApprove via pull.linked_issues, so you can write a check on the issue/PR author like this:
set(pull.linked_issues.map("x.user")) == set([pull.author])