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

Add reviewers to PR #114

Open
matttrach opened this issue May 10, 2023 · 1 comment
Open

Add reviewers to PR #114

matttrach opened this issue May 10, 2023 · 1 comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@matttrach
Copy link

Need the ability to get and set requested reviewers on PRs similar to labels.

{
  repository(owner: "k3s-io", name: "k3s") {
    id
    pullRequest(number: 7426) {
      id
      reviewRequests(first: 10) {
        totalCount
        nodes {
          requestedReviewer {
            ... on Team {
              combinedSlug
            }
            ... on User {
              email
            }
          }
        }
      }
    }
  }
}

Review requests is an ephemeral value, it disappears once someone adds a review.
Requested Reviewer does not make it into the auto-generated functions.

@dmitshur
Copy link
Member

Getting requested reviewers should be a a matter of passing a variable that corresponds to that GraphQL query as shown at https://github.com/shurcooL/githubv4#simple-query.

To set requested reviewers, it'll be a GraphQL mutation as shown at https://github.com/shurcooL/githubv4#mutations. See GitHub docs at https://docs.github.com/en/graphql/reference/mutations#requestreviews and you can use the corresponding githubv4.RequestReviewsInput input type.

I'm not sure what you mean about the ephemeral value. Is there a problem you're running into, and if so, how can it be reproduced?

@dmitshur dmitshur added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Development

No branches or pull requests

2 participants