From 1a88e120ca9217c20bb4ec53d45a3a5096b7a651 Mon Sep 17 00:00:00 2001 From: subatoi <32935794+subatoi@users.noreply.github.com> Date: Tue, 3 Nov 2026 15:47:05 +0000 Subject: [PATCH 1/2] Fix awaiting-review reminder to run only on issues (#64538) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/awaiting-review-label-message.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/awaiting-review-label-message.yml b/.github/workflows/awaiting-review-label-message.yml index 7c0ed27d8077..da23363f25b7 100644 --- a/.github/workflows/awaiting-review-label-message.yml +++ b/.github/workflows/awaiting-review-label-message.yml @@ -2,23 +2,22 @@ name: Awaiting Review reminder label message # docs-internal mirrors workflows to github/docs, so send this reminder only in the public repo. on: - # pull_request_target lets forked PRs receive the reminder. - pull_request_target: + issues: types: [labeled] jobs: - comment-on-pr: + comment-on-issue: if: github.repository == 'github/docs' && github.event.label.name == 'awaiting-review-reminder' runs-on: ubuntu-latest permissions: - pull-requests: write + issues: write steps: - name: Comment with contribution guidance env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_URL: ${{ github.event.pull_request.html_url }} + ISSUE_URL: ${{ github.event.issue.html_url }} run: | - gh pr comment "$PR_URL" --body-file - <<'EOF' + gh issue comment "$ISSUE_URL" --body-file - <<'EOF' Please do not open pull requests to address issues opened by other contributors until the issue has been marked with the `help wanted` label. The Docs team needs time to assess the issue and determine the scope of the work. For more information, see [Working on other contributors' issues](https://docs.github.com/en/contributing/collaborating-on-github-docs/about-contributing-to-github-docs#working-on-other-contributors-issues). From d3023cf03a6cabad963c562fe3112d95d8ffd753 Mon Sep 17 00:00:00 2001 From: docs-bot <77750099+docs-bot@users.noreply.github.com> Date: Tue, 3 Nov 2026 16:33:20 +0000 Subject: [PATCH 2/2] GraphQL schema update (#64543) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> --- src/graphql/data/fpt/category-map.json | 4 + src/graphql/data/fpt/changelog.json | 37 ++++++ src/graphql/data/fpt/schema-copilot.json | 62 ++++++++++ src/graphql/data/fpt/schema-pulls.json | 91 +++++++++++++++ src/graphql/data/fpt/schema.docs.graphql | 132 ++++++++++++++++++++++ src/graphql/data/ghec/category-map.json | 4 + src/graphql/data/ghec/schema-copilot.json | 62 ++++++++++ src/graphql/data/ghec/schema-pulls.json | 91 +++++++++++++++ src/graphql/data/ghec/schema.docs.graphql | 132 ++++++++++++++++++++++ 9 files changed, 615 insertions(+) diff --git a/src/graphql/data/fpt/category-map.json b/src/graphql/data/fpt/category-map.json index 484bff95aa33..c0e83f06664a 100644 --- a/src/graphql/data/fpt/category-map.json +++ b/src/graphql/data/fpt/category-map.json @@ -257,6 +257,7 @@ "mergepullrequest": "pulls", "removepullrequestcreationcapbypassusers": "pulls", "reopenpullrequest": "pulls", + "requestcopilotcodereview": "pulls", "requestreviews": "pulls", "requestreviewsbylogin": "pulls", "rerequestreviews": "pulls", @@ -1363,6 +1364,8 @@ "teamreviewassignmentalgorithm": "teams", "teamrole": "teams", "codequalityseverity": "code-scanning", + "copilotcoderevieweffort": "copilot", + "copilotcodereviewrequestreason": "copilot", "dependencygraphecosystem": "dependency-graph", "gistorderfield": "gists", "gistprivacy": "gists", @@ -1754,6 +1757,7 @@ "pullrequestparametersinput": "pulls", "removepullrequestcreationcapbypassusersinput": "pulls", "reopenpullrequestinput": "pulls", + "requestcopilotcodereviewinput": "pulls", "requestreviewsbylogininput": "pulls", "requestreviewsinput": "pulls", "requiredreviewerconfigurationinput": "pulls", diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 5e8ab90cb99c..cc03b31e0f84 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,41 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "
Type CopilotCodeReviewEffort was added
Enum value AUTO was added to enum CopilotCodeReviewEffort
Enum value BALANCED was added to enum CopilotCodeReviewEffort
Enum value LITE was added to enum CopilotCodeReviewEffort
Enum value MAX was added to enum CopilotCodeReviewEffort
Type CopilotCodeReviewRequestReason was added
Enum value ACTOR_INELIGIBLE was added to enum CopilotCodeReviewRequestReason
Enum value APP_NOT_INSTALLED was added to enum CopilotCodeReviewRequestReason
Enum value LICENSED_ORGANIZATION_UNAVAILABLE was added to enum CopilotCodeReviewRequestReason
Enum value NO_QUOTA_REMAINING was added to enum CopilotCodeReviewRequestReason
Enum value REPOSITORY_INELIGIBLE was added to enum CopilotCodeReviewRequestReason
Enum value REQUEST_CONFLICT was added to enum CopilotCodeReviewRequestReason
Type RequestCopilotCodeReviewInput was added
Input field clientMutationId of type String was added to input object type RequestCopilotCodeReviewInput
Input field pullRequestId of type ID! was added to input object type RequestCopilotCodeReviewInput
Input field reviewEffort of type CopilotCodeReviewEffort was added to input object type RequestCopilotCodeReviewInput
Type RequestCopilotCodeReviewPayload was added
Field actor was added to object type RequestCopilotCodeReviewPayload
Field clientMutationId was added to object type RequestCopilotCodeReviewPayload
Field failureReason was added to object type RequestCopilotCodeReviewPayload
Field pullRequest was added to object type RequestCopilotCodeReviewPayload
Field reviewRequest was added to object type RequestCopilotCodeReviewPayload
Field success was added to object type RequestCopilotCodeReviewPayload
Field requestCopilotCodeReview was added to object type Mutation
Argument input: RequestCopilotCodeReviewInput! added to field Mutation.requestCopilotCodeReview
The effort level for a Copilot code review. For more information, see Review effort level.
", + "isDeprecated": false, + "values": [ + { + "name": "AUTO", + "description": "Copilot picks the effort for each pull request.
" + }, + { + "name": "BALANCED", + "description": "Balanced effort and depth.
" + }, + { + "name": "LITE", + "description": "Lower effort, faster review.
" + }, + { + "name": "MAX", + "description": "Highest effort, deepest review.
" + } + ], + "category": "copilot" + }, + { + "name": "CopilotCodeReviewRequestReason", + "id": "copilotcodereviewrequestreason", + "href": "/graphql/reference/copilot#enum-copilotcodereviewrequestreason", + "description": "The stable reason a Copilot code review request was denied or conflicted with an existing request.
", + "isDeprecated": false, + "values": [ + { + "name": "ACTOR_INELIGIBLE", + "description": "The actor is not eligible to request Copilot code reviews.
" + }, + { + "name": "APP_NOT_INSTALLED", + "description": "The Copilot code review reviewer app is not installed.
" + }, + { + "name": "LICENSED_ORGANIZATION_UNAVAILABLE", + "description": "The organization providing the Copilot license is unavailable.
" + }, + { + "name": "NO_QUOTA_REMAINING", + "description": "The actor has no Copilot code review quota remaining.
" + }, + { + "name": "REPOSITORY_INELIGIBLE", + "description": "The repository is not eligible for Copilot code reviews.
" + }, + { + "name": "REQUEST_CONFLICT", + "description": "A Copilot code review request is already pending for this pull request.
" + } + ], + "category": "copilot" + } ] } \ No newline at end of file diff --git a/src/graphql/data/fpt/schema-pulls.json b/src/graphql/data/fpt/schema-pulls.json index f8577eb4c2c9..487ef0d52fe2 100644 --- a/src/graphql/data/fpt/schema-pulls.json +++ b/src/graphql/data/fpt/schema-pulls.json @@ -714,6 +714,66 @@ ], "category": "pulls" }, + { + "name": "requestCopilotCodeReview", + "id": "requestcopilotcodereview", + "href": "/graphql/reference/pulls#mutation-requestcopilotcodereview", + "description": "Requests a Copilot code review.
\nEvery call attempts to advance the Copilot code review lifecycle for the pull\nrequest: if no Copilot review has been requested yet, an initial request is created;\nif the most recent Copilot review has already completed, a new request is created\nautomatically to continue the lifecycle. If a Copilot code review request is already\npending, no new request is created and failureReason is REQUEST_CONFLICT.
Identifies the actor who performed the event.
" + }, + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "href": "/graphql/reference/other#scalar-string", + "description": "A unique identifier for the client performing the mutation.
" + }, + { + "name": "failureReason", + "type": "CopilotCodeReviewRequestReason", + "id": "copilotcodereviewrequestreason", + "href": "/graphql/reference/copilot#enum-copilotcodereviewrequestreason", + "description": "The stable reason the request was denied or conflicted with an existing request. Null when the request succeeded.
" + }, + { + "name": "pullRequest", + "type": "PullRequest", + "id": "pullrequest", + "href": "/graphql/reference/pulls#object-pullrequest", + "description": "The pull request that is getting requests.
" + }, + { + "name": "reviewRequest", + "type": "ReviewRequest", + "id": "reviewrequest", + "href": "/graphql/reference/pulls#object-reviewrequest", + "description": "The Copilot code review request that was created or is already pending. Null\nwhen the request was denied or conflicted with an existing request.
" + }, + { + "name": "success", + "type": "Boolean", + "id": "boolean", + "href": "/graphql/reference/other#scalar-boolean", + "description": "Did the operation succeed?.
" + } + ], + "category": "pulls" + }, { "name": "requestReviews", "id": "requestreviews", @@ -10644,6 +10704,37 @@ ], "category": "pulls" }, + { + "name": "RequestCopilotCodeReviewInput", + "id": "requestcopilotcodereviewinput", + "href": "/graphql/reference/pulls#input-object-requestcopilotcodereviewinput", + "description": "Autogenerated input type of RequestCopilotCodeReview.
", + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.
", + "type": "String", + "id": "string", + "href": "/graphql/reference/other#scalar-string" + }, + { + "name": "pullRequestId", + "description": "The Node ID of the pull request to modify.
", + "type": "ID!", + "id": "id", + "href": "/graphql/reference/other#scalar-id", + "isDeprecated": false + }, + { + "name": "reviewEffort", + "description": "The effort level to use for the Copilot code review. Omit to use the default effort level.
", + "type": "CopilotCodeReviewEffort", + "id": "copilotcoderevieweffort", + "href": "/graphql/reference/copilot#enum-copilotcoderevieweffort" + } + ], + "category": "pulls" + }, { "name": "RequestReviewsByLoginInput", "id": "requestreviewsbylogininput", diff --git a/src/graphql/data/fpt/schema.docs.graphql b/src/graphql/data/fpt/schema.docs.graphql index 4e89ab3b19b5..958d8f11517c 100644 --- a/src/graphql/data/fpt/schema.docs.graphql +++ b/src/graphql/data/fpt/schema.docs.graphql @@ -7814,6 +7814,31 @@ type ConvertedToDiscussionEvent implements Node @docsCategory(name: "issues") { id: ID! } +""" +The effort level for a Copilot code review. For more information, see [Review effort level](https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review#review-effort-level). +""" +enum CopilotCodeReviewEffort @docsCategory(name: "copilot") { + """ + Copilot picks the effort for each pull request. + """ + AUTO + + """ + Balanced effort and depth. + """ + BALANCED + + """ + Lower effort, faster review. + """ + LITE + + """ + Highest effort, deepest review. + """ + MAX +} + """ Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and AI credits. @@ -7846,6 +7871,41 @@ input CopilotCodeReviewParametersInput @docsCategory(name: "pulls") { reviewOnPush: Boolean } +""" +The stable reason a Copilot code review request was denied or conflicted with an existing request. +""" +enum CopilotCodeReviewRequestReason @docsCategory(name: "copilot") { + """ + The actor is not eligible to request Copilot code reviews. + """ + ACTOR_INELIGIBLE + + """ + The Copilot code review reviewer app is not installed. + """ + APP_NOT_INSTALLED + + """ + The organization providing the Copilot license is unavailable. + """ + LICENSED_ORGANIZATION_UNAVAILABLE + + """ + The actor has no Copilot code review quota remaining. + """ + NO_QUOTA_REMAINING + + """ + The repository is not eligible for Copilot code reviews. + """ + REPOSITORY_INELIGIBLE + + """ + A Copilot code review request is already pending for this pull request. + """ + REQUEST_CONFLICT +} + """ Copilot endpoint information """ @@ -29180,6 +29240,22 @@ type Mutation @docsCategory(name: "meta") { input: ReprioritizeSubIssueInput! ): ReprioritizeSubIssuePayload @docsCategory(name: "issues") + """ + Requests a Copilot code review. + + Every call attempts to advance the Copilot code review lifecycle for the pull + request: if no Copilot review has been requested yet, an initial request is created; + if the most recent Copilot review has already completed, a new request is created + automatically to continue the lifecycle. If a Copilot code review request is already + pending, no new request is created and `failureReason` is `REQUEST_CONFLICT`. + """ + requestCopilotCodeReview( + """ + Parameters for RequestCopilotCodeReview + """ + input: RequestCopilotCodeReviewInput! + ): RequestCopilotCodeReviewPayload @docsCategory(name: "pulls") + """ Set review requests on a pull request. """ @@ -59378,6 +59454,62 @@ type ReprioritizeSubIssuePayload { issue: Issue } +""" +Autogenerated input type of RequestCopilotCodeReview +""" +input RequestCopilotCodeReviewInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The Node ID of the pull request to modify. + """ + pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) + + """ + The effort level to use for the Copilot code review. Omit to use the default effort level. + """ + reviewEffort: CopilotCodeReviewEffort +} + +""" +Autogenerated return type of RequestCopilotCodeReview. +""" +type RequestCopilotCodeReviewPayload { + """ + Identifies the actor who performed the event. + """ + actor: Actor + + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The stable reason the request was denied or conflicted with an existing request. Null when the request succeeded. + """ + failureReason: CopilotCodeReviewRequestReason + + """ + The pull request that is getting requests. + """ + pullRequest: PullRequest + + """ + The Copilot code review request that was created or is already pending. Null + when the request was denied or conflicted with an existing request. + """ + reviewRequest: ReviewRequest + + """ + Did the operation succeed? + """ + success: Boolean +} + """ Autogenerated input type of RequestReviewsByLogin """ diff --git a/src/graphql/data/ghec/category-map.json b/src/graphql/data/ghec/category-map.json index 484bff95aa33..c0e83f06664a 100644 --- a/src/graphql/data/ghec/category-map.json +++ b/src/graphql/data/ghec/category-map.json @@ -257,6 +257,7 @@ "mergepullrequest": "pulls", "removepullrequestcreationcapbypassusers": "pulls", "reopenpullrequest": "pulls", + "requestcopilotcodereview": "pulls", "requestreviews": "pulls", "requestreviewsbylogin": "pulls", "rerequestreviews": "pulls", @@ -1363,6 +1364,8 @@ "teamreviewassignmentalgorithm": "teams", "teamrole": "teams", "codequalityseverity": "code-scanning", + "copilotcoderevieweffort": "copilot", + "copilotcodereviewrequestreason": "copilot", "dependencygraphecosystem": "dependency-graph", "gistorderfield": "gists", "gistprivacy": "gists", @@ -1754,6 +1757,7 @@ "pullrequestparametersinput": "pulls", "removepullrequestcreationcapbypassusersinput": "pulls", "reopenpullrequestinput": "pulls", + "requestcopilotcodereviewinput": "pulls", "requestreviewsbylogininput": "pulls", "requestreviewsinput": "pulls", "requiredreviewerconfigurationinput": "pulls", diff --git a/src/graphql/data/ghec/schema-copilot.json b/src/graphql/data/ghec/schema-copilot.json index a7ca98c81be6..eb03609c3d97 100644 --- a/src/graphql/data/ghec/schema-copilot.json +++ b/src/graphql/data/ghec/schema-copilot.json @@ -85,5 +85,67 @@ ], "category": "copilot" } + ], + "enums": [ + { + "name": "CopilotCodeReviewEffort", + "id": "copilotcoderevieweffort", + "href": "/graphql/reference/copilot#enum-copilotcoderevieweffort", + "description": "The effort level for a Copilot code review. For more information, see Review effort level.
", + "isDeprecated": false, + "values": [ + { + "name": "AUTO", + "description": "Copilot picks the effort for each pull request.
" + }, + { + "name": "BALANCED", + "description": "Balanced effort and depth.
" + }, + { + "name": "LITE", + "description": "Lower effort, faster review.
" + }, + { + "name": "MAX", + "description": "Highest effort, deepest review.
" + } + ], + "category": "copilot" + }, + { + "name": "CopilotCodeReviewRequestReason", + "id": "copilotcodereviewrequestreason", + "href": "/graphql/reference/copilot#enum-copilotcodereviewrequestreason", + "description": "The stable reason a Copilot code review request was denied or conflicted with an existing request.
", + "isDeprecated": false, + "values": [ + { + "name": "ACTOR_INELIGIBLE", + "description": "The actor is not eligible to request Copilot code reviews.
" + }, + { + "name": "APP_NOT_INSTALLED", + "description": "The Copilot code review reviewer app is not installed.
" + }, + { + "name": "LICENSED_ORGANIZATION_UNAVAILABLE", + "description": "The organization providing the Copilot license is unavailable.
" + }, + { + "name": "NO_QUOTA_REMAINING", + "description": "The actor has no Copilot code review quota remaining.
" + }, + { + "name": "REPOSITORY_INELIGIBLE", + "description": "The repository is not eligible for Copilot code reviews.
" + }, + { + "name": "REQUEST_CONFLICT", + "description": "A Copilot code review request is already pending for this pull request.
" + } + ], + "category": "copilot" + } ] } \ No newline at end of file diff --git a/src/graphql/data/ghec/schema-pulls.json b/src/graphql/data/ghec/schema-pulls.json index 42ed44120f1d..2d0f413b7d82 100644 --- a/src/graphql/data/ghec/schema-pulls.json +++ b/src/graphql/data/ghec/schema-pulls.json @@ -714,6 +714,66 @@ ], "category": "pulls" }, + { + "name": "requestCopilotCodeReview", + "id": "requestcopilotcodereview", + "href": "/graphql/reference/pulls#mutation-requestcopilotcodereview", + "description": "Requests a Copilot code review.
\nEvery call attempts to advance the Copilot code review lifecycle for the pull\nrequest: if no Copilot review has been requested yet, an initial request is created;\nif the most recent Copilot review has already completed, a new request is created\nautomatically to continue the lifecycle. If a Copilot code review request is already\npending, no new request is created and failureReason is REQUEST_CONFLICT.
Identifies the actor who performed the event.
" + }, + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "href": "/graphql/reference/other#scalar-string", + "description": "A unique identifier for the client performing the mutation.
" + }, + { + "name": "failureReason", + "type": "CopilotCodeReviewRequestReason", + "id": "copilotcodereviewrequestreason", + "href": "/graphql/reference/copilot#enum-copilotcodereviewrequestreason", + "description": "The stable reason the request was denied or conflicted with an existing request. Null when the request succeeded.
" + }, + { + "name": "pullRequest", + "type": "PullRequest", + "id": "pullrequest", + "href": "/graphql/reference/pulls#object-pullrequest", + "description": "The pull request that is getting requests.
" + }, + { + "name": "reviewRequest", + "type": "ReviewRequest", + "id": "reviewrequest", + "href": "/graphql/reference/pulls#object-reviewrequest", + "description": "The Copilot code review request that was created or is already pending. Null\nwhen the request was denied or conflicted with an existing request.
" + }, + { + "name": "success", + "type": "Boolean", + "id": "boolean", + "href": "/graphql/reference/other#scalar-boolean", + "description": "Did the operation succeed?.
" + } + ], + "category": "pulls" + }, { "name": "requestReviews", "id": "requestreviews", @@ -10644,6 +10704,37 @@ ], "category": "pulls" }, + { + "name": "RequestCopilotCodeReviewInput", + "id": "requestcopilotcodereviewinput", + "href": "/graphql/reference/pulls#input-object-requestcopilotcodereviewinput", + "description": "Autogenerated input type of RequestCopilotCodeReview.
", + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.
", + "type": "String", + "id": "string", + "href": "/graphql/reference/other#scalar-string" + }, + { + "name": "pullRequestId", + "description": "The Node ID of the pull request to modify.
", + "type": "ID!", + "id": "id", + "href": "/graphql/reference/other#scalar-id", + "isDeprecated": false + }, + { + "name": "reviewEffort", + "description": "The effort level to use for the Copilot code review. Omit to use the default effort level.
", + "type": "CopilotCodeReviewEffort", + "id": "copilotcoderevieweffort", + "href": "/graphql/reference/copilot#enum-copilotcoderevieweffort" + } + ], + "category": "pulls" + }, { "name": "RequestReviewsByLoginInput", "id": "requestreviewsbylogininput", diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index 4e89ab3b19b5..958d8f11517c 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -7814,6 +7814,31 @@ type ConvertedToDiscussionEvent implements Node @docsCategory(name: "issues") { id: ID! } +""" +The effort level for a Copilot code review. For more information, see [Review effort level](https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review#review-effort-level). +""" +enum CopilotCodeReviewEffort @docsCategory(name: "copilot") { + """ + Copilot picks the effort for each pull request. + """ + AUTO + + """ + Balanced effort and depth. + """ + BALANCED + + """ + Lower effort, faster review. + """ + LITE + + """ + Highest effort, deepest review. + """ + MAX +} + """ Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and AI credits. @@ -7846,6 +7871,41 @@ input CopilotCodeReviewParametersInput @docsCategory(name: "pulls") { reviewOnPush: Boolean } +""" +The stable reason a Copilot code review request was denied or conflicted with an existing request. +""" +enum CopilotCodeReviewRequestReason @docsCategory(name: "copilot") { + """ + The actor is not eligible to request Copilot code reviews. + """ + ACTOR_INELIGIBLE + + """ + The Copilot code review reviewer app is not installed. + """ + APP_NOT_INSTALLED + + """ + The organization providing the Copilot license is unavailable. + """ + LICENSED_ORGANIZATION_UNAVAILABLE + + """ + The actor has no Copilot code review quota remaining. + """ + NO_QUOTA_REMAINING + + """ + The repository is not eligible for Copilot code reviews. + """ + REPOSITORY_INELIGIBLE + + """ + A Copilot code review request is already pending for this pull request. + """ + REQUEST_CONFLICT +} + """ Copilot endpoint information """ @@ -29180,6 +29240,22 @@ type Mutation @docsCategory(name: "meta") { input: ReprioritizeSubIssueInput! ): ReprioritizeSubIssuePayload @docsCategory(name: "issues") + """ + Requests a Copilot code review. + + Every call attempts to advance the Copilot code review lifecycle for the pull + request: if no Copilot review has been requested yet, an initial request is created; + if the most recent Copilot review has already completed, a new request is created + automatically to continue the lifecycle. If a Copilot code review request is already + pending, no new request is created and `failureReason` is `REQUEST_CONFLICT`. + """ + requestCopilotCodeReview( + """ + Parameters for RequestCopilotCodeReview + """ + input: RequestCopilotCodeReviewInput! + ): RequestCopilotCodeReviewPayload @docsCategory(name: "pulls") + """ Set review requests on a pull request. """ @@ -59378,6 +59454,62 @@ type ReprioritizeSubIssuePayload { issue: Issue } +""" +Autogenerated input type of RequestCopilotCodeReview +""" +input RequestCopilotCodeReviewInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The Node ID of the pull request to modify. + """ + pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) + + """ + The effort level to use for the Copilot code review. Omit to use the default effort level. + """ + reviewEffort: CopilotCodeReviewEffort +} + +""" +Autogenerated return type of RequestCopilotCodeReview. +""" +type RequestCopilotCodeReviewPayload { + """ + Identifies the actor who performed the event. + """ + actor: Actor + + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The stable reason the request was denied or conflicted with an existing request. Null when the request succeeded. + """ + failureReason: CopilotCodeReviewRequestReason + + """ + The pull request that is getting requests. + """ + pullRequest: PullRequest + + """ + The Copilot code review request that was created or is already pending. Null + when the request was denied or conflicted with an existing request. + """ + reviewRequest: ReviewRequest + + """ + Did the operation succeed? + """ + success: Boolean +} + """ Autogenerated input type of RequestReviewsByLogin """