Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that the PR submitter #31

Open
bhack opened this issue Oct 23, 2021 · 1 comment
Open

Verify that the PR submitter #31

bhack opened this issue Oct 23, 2021 · 1 comment

Comments

@bhack
Copy link

bhack commented Oct 23, 2021

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

@davegaeddert
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants