Mutations
addPullRequestCreationCapBypassUsers
Add users to the pull request creation cap bypass list. Bypassed users can create pull requests regardless of the configured cap. Only users with maintainer permissions can manage the bypass list. You can add a maximum of 100 users per request. The bypass list can only hold a maximum of 100 users.
输入 addPullRequestCreationCapBypassUsers 字段
返回 addPullRequestCreationCapBypassUsers 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The repository with the updated bypass list. |
addPullRequestReview
Adds a review to a Pull Request.
输入 addPullRequestReview 字段
input(AddPullRequestReviewInput!)
返回 addPullRequestReview 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created pull request review. |
| The edge from the pull request's review connection. |
addPullRequestReviewComment
Adds a comment to a review.
输入 addPullRequestReviewComment 字段
返回 addPullRequestReviewComment 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created comment. |
| The edge from the review's comment connection. |
addPullRequestReviewThread
Adds a new thread to a pending Pull Request Review.
输入 addPullRequestReviewThread 字段
input(AddPullRequestReviewThreadInput!)
返回 addPullRequestReviewThread 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created thread. |
addPullRequestReviewThreadReply
Adds a reply to an existing Pull Request Review Thread.
输入 addPullRequestReviewThreadReply 字段
返回 addPullRequestReviewThreadReply 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created reply. |
archivePullRequest
Archive a pull request. Closes, locks, and marks the pull request as archived. Only repository admins can archive pull requests.
输入 archivePullRequest 字段
input(ArchivePullRequestInput!)
返回 archivePullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request that was archived. |
closePullRequest
Close a pull request.
输入 closePullRequest 字段
input(ClosePullRequestInput!)
返回 closePullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request that was closed. |
convertPullRequestToDraft
Converts a pull request to draft.
输入 convertPullRequestToDraft 字段
input(ConvertPullRequestToDraftInput!)
返回 convertPullRequestToDraft 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request that is now a draft. |
createPullRequest
Create a new pull request.
输入 createPullRequest 字段
input(CreatePullRequestInput!)
返回 createPullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new pull request. |
deletePullRequestReview
Deletes a pull request review.
输入 deletePullRequestReview 字段
input(DeletePullRequestReviewInput!)
返回 deletePullRequestReview 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The deleted pull request review. |
deletePullRequestReviewComment
Deletes a pull request review comment.
输入 deletePullRequestReviewComment 字段
返回 deletePullRequestReviewComment 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request review the deleted comment belonged to. |
| The deleted pull request review comment. |
dequeuePullRequest
Remove a pull request from the merge queue.
输入 dequeuePullRequest 字段
input(DequeuePullRequestInput!)
返回 dequeuePullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The merge queue entry of the dequeued pull request. |
disablePullRequestAutoMerge
Disable auto merge on the given pull request.
输入 disablePullRequestAutoMerge 字段
返回 disablePullRequestAutoMerge 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| A unique identifier for the client performing the mutation. |
| The pull request auto merge was disabled on. |
dismissPullRequestReview
Dismisses an approved or rejected pull request review.
输入 dismissPullRequestReview 字段
input(DismissPullRequestReviewInput!)
返回 dismissPullRequestReview 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The dismissed pull request review. |
enablePullRequestAutoMerge
Enable the default auto-merge on a pull request.
输入 enablePullRequestAutoMerge 字段
input(EnablePullRequestAutoMergeInput!)
返回 enablePullRequestAutoMerge 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| A unique identifier for the client performing the mutation. |
| The pull request auto-merge was enabled on. |
enqueuePullRequest
Add a pull request to the merge queue.
输入 enqueuePullRequest 字段
input(EnqueuePullRequestInput!)
返回 enqueuePullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The merge queue entry for the enqueued pull request. |
markFileAsViewed
Mark a pull request file as viewed.
输入 markFileAsViewed 字段
input(MarkFileAsViewedInput!)
返回 markFileAsViewed 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated pull request. |
markPullRequestReadyForReview
Marks a pull request ready for review.
输入 markPullRequestReadyForReview 字段
返回 markPullRequestReadyForReview 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request that is ready for review. |
mergePullRequest
Merge a pull request.
输入 mergePullRequest 字段
input(MergePullRequestInput!)
返回 mergePullRequest 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| A unique identifier for the client performing the mutation. |
| The pull request that was merged. |
removePullRequestCreationCapBypassUsers
Remove users from the pull request creation cap bypass list. Only users with maintainer permissions can manage the bypass list.
输入 removePullRequestCreationCapBypassUsers 字段
返回 removePullRequestCreationCapBypassUsers 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The repository with the updated bypass list. |
reopenPullRequest
Reopen a pull request.
输入 reopenPullRequest 字段
input(ReopenPullRequestInput!)
返回 reopenPullRequest 字段
| 名称 | 说明 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The pull request that was reopened. |
requestReviews
Set review requests on a pull request.
输入 requestReviews 字段
input(RequestReviewsInput!)
返回 requestReviews 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| A unique identifier for the client performing the mutation. |
| The pull request that is getting requests. |
| The edge from the pull request to the requested reviewers. |
requestReviewsByLogin
Set review requests on a pull request using login strings instead of IDs.
输入 requestReviewsByLogin 字段
input(RequestReviewsByLoginInput!)
返回 requestReviewsByLogin 字段
| 名称 | 说明 |
|---|---|
| Identifies the actor who performed the event. |
| A unique identifier for the client performing the mutation. |
| The pull request that is getting requests. |
| The edge from the pull request to the requested reviewers. |