Mutation
mutation SaveRepositoryCodeReviewers($input: SaveRepositoryCodeReviewersInput!) {
saveRepositoryCodeReviewers(input: $input) {
repositoryId
provider
ref
defaultRef
refs
pools {
key
name
kind
candidates {
id
username
name
avatarUrl
url
}
selectedReviewerIds
unavailableReviewerIds
}
}
}Variables
{
"input": {
"repositoryId": "id",
"pools": [
{
"key": "string",
"reviewerIds": [
"id"
]
}
]
}
}Response
{
"data": {
"saveRepositoryCodeReviewers": {
"repositoryId": "id",
"provider": "string",
"ref": "string",
"defaultRef": "string",
"refs": [
"string"
],
"pools": [
{
"key": "string",
"name": "string",
"kind": "string",
"candidates": [
{
"id": "id",
"username": "string",
"name": "string",
"avatarUrl": "string",
"url": "string"
}
],
"selectedReviewerIds": [
"id"
],
"unavailableReviewerIds": [
"id"
]
}
]
}
}
}Mutations
saveRepositoryCodeReviewers
Save preferred reviewers for repository ownership and approval groups.
MUTATION
saveRepositoryCodeReviewers(input: SaveRepositoryCodeReviewersInput!): RepositoryCodeReviewers!Arguments
input
required
Displayed reviewer pools to update or clear.
Returns
repositoryId
ID!
Canonical repository identifier.
provider
String!
Connected source control provider.
ref
String!
Branch used to discover code ownership.
defaultRef
String!
Provider default branch.
refs
[String!]!
Available discovery branches.
pools
[CodeReviewerPool!]!
Discovered and previously configured reviewer pools.
issues
[String!]!
Actionable discovery or capability issues.
discoveryComplete
Boolean!
Whether all applicable provider rules could be discovered.
Mutation
mutation SaveRepositoryCodeReviewers($input: SaveRepositoryCodeReviewersInput!) {
saveRepositoryCodeReviewers(input: $input) {
repositoryId
provider
ref
defaultRef
refs
pools {
key
name
kind
candidates {
id
username
name
avatarUrl
url
}
selectedReviewerIds
unavailableReviewerIds
}
}
}Variables
{
"input": {
"repositoryId": "id",
"pools": [
{
"key": "string",
"reviewerIds": [
"id"
]
}
]
}
}Response
{
"data": {
"saveRepositoryCodeReviewers": {
"repositoryId": "id",
"provider": "string",
"ref": "string",
"defaultRef": "string",
"refs": [
"string"
],
"pools": [
{
"key": "string",
"name": "string",
"kind": "string",
"candidates": [
{
"id": "id",
"username": "string",
"name": "string",
"avatarUrl": "string",
"url": "string"
}
],
"selectedReviewerIds": [
"id"
],
"unavailableReviewerIds": [
"id"
]
}
]
}
}
}