verify-linked-issue-action icon indicating copy to clipboard operation
verify-linked-issue-action copied to clipboard

Verify that the PR submitter

Open bhack opened this issue 4 years ago • 1 comments

Can we add an option to check that the PR submitter Is the same user assigned to the issue?

bhack avatar Oct 23 '21 17:10 bhack

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])

davegaeddert avatar Nov 14 '22 21:11 davegaeddert