githubv4 icon indicating copy to clipboard operation
githubv4 copied to clipboard

Add reviewers to PR

Open matttrach opened this issue 2 years ago • 1 comments

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.

matttrach avatar May 10 '23 14:05 matttrach