The root query for implementing GraphQL mutations.
Merge a GitHub pull request by its number with $title
as the commit message.
Note as a precaution against merging a PR into the wrong target, you'll need to provide the current sha of the target branch head. You can find the sha under the headRef.oid
field of the Pull Request, as per the GitHubGetPullRequest example
To merge the first PR on the OneGraph GraphQL Docs Repository, we could pass in the following variables:
{
"repoName": "graphql-docs",
"repoOwner": "OneGraph",
"number": 1,
"title": "Merge the GitHub examples, thank you @dwwoelfel!",
"sha": "44d4e20fd739f486411049b7e94849d7b3332770"
}
Add a comment to a pull request given its id - see the GitHubGetPullRequest example for how to find a PR's id given its repository and number.
You'll need to find the GitHub issue id first (see the GitHubFindIssueIdByNumber example) to use as the argument to issueId
.
Since issue ids are globally unique across every kind of object in GitHub, you won't need to add the repository owner/name, just the id
!
{
"id": "MDU6SXNzdWU1NDUyNDk2ODg="
}
Create a branch name $branchName
(from master
) on the GitHub project ${repoOwner}/${repoName}
Accepts a pending invitation for a user to become an administrator of an enterprise.
Applies a suggested topic to the repository.
Adds assignees to an assignable object.
Adds a comment to an Issue or Pull Request.
Adds a comment to a Discussion, possibly as a reply to another comment.
Adds a support entitlement to an enterprise member.
Adds labels to a labelable object.
Adds a card to a ProjectColumn. Either contentId
or note
must be provided but not both.
Adds a column to a Project.
Adds a review to a Pull Request.
Adds a comment to a review.
Adds a new thread to a pending Pull Request Review.
Adds a reaction to a subject.
Adds a star to a Starrable.
Add an upvote to a discussion or discussion comment.
Adds a verifiable domain to an owning account.
Approve a verifiable domain for notification delivery.
Marks a repository as archived.
Cancels a pending invitation for an administrator to join an enterprise.
Update your status on GitHub.
Clears all labels from a labelable object.
Creates a new project by cloning configuration from an existing project.
Create a new repository with the same files and directory structure as a template repository.
Close an issue.
Close a pull request.
Convert a project note card to one associated with a newly created issue.
Create a new branch protection rule
Create a check run.
Create a check suite
Create a discussion.
Creates an organization as part of an enterprise account.
Creates a new IP allow list entry.
Creates a new issue.
Creates a new project.
Create a new pull request
Create a new Git Ref.
Create a new repository.
Creates a new team discussion.
Creates a new team discussion comment.
Rejects a suggested topic for the repository.
Delete a branch protection rule
Deletes a deployment.
Delete a discussion and all of its replies.
Delete a discussion comment. If it has replies, wipe it instead.
Deletes an IP allow list entry.
Deletes an Issue object.
Deletes an IssueComment object.
Deletes a project.
Deletes a project card.
Deletes a project column.
Deletes a pull request review.
Deletes a pull request review comment.
Delete a Git Ref.
Deletes a team discussion.
Deletes a team discussion comment.
Deletes a verifiable domain.
Disable auto merge on the given pull request
Dismisses an approved or rejected pull request review.
Enable the default auto-merge on a pull request.
Follow a user.
Invite someone to become an administrator of the enterprise.
Creates a repository link for a project.
Lock a lockable object
Make a REST API call to the GitHub API.
OneGraph will inject the auth params for the API call.
Use this as an escape hatch if OneGraph does not yet support functionality of the underlying API.
Mark a discussion comment as the chosen answer for discussions in an answerable category.
Mark a pull request file as viewed
Marks a pull request ready for review.
Merge a head into a branch.
Merge a pull request.
Minimizes a comment on an Issue, Commit, Pull Request, or Gist
Moves a project card to another place.
Moves a project column to another place.
Pin an issue to a repository
Regenerates the identity provider recovery codes for an enterprise
Regenerates a verifiable domain's verification token.
Removes assignees from an assignable object.
Removes an administrator from the enterprise.
Removes the identity provider from an enterprise
Removes an organization from the enterprise
Removes a support entitlement from an enterprise member.
Removes labels from a Labelable object.
Removes outside collaborator from all repositories in an organization.
Removes a reaction from a subject.
Removes a star from a Starrable.
Remove an upvote to a discussion or discussion comment.
Reopen a issue.
Reopen a pull request.
Set review requests on a pull request.
Rerequests an existing check suite.
Marks a review thread as resolved.
Creates or updates the identity provider for an enterprise.
Set an organization level interaction limit for an organization's public repositories.
Sets an interaction limit setting for a repository.
Set a user level interaction limit for an user's public repositories.
Submits a pending pull request review.
Transfer an issue to a different repository
Unarchives a repository.
Unfollow a user.
Deletes a repository link from a project.
Unlock a lockable object
Unmark a discussion comment as the chosen answer for discussions in an answerable category.
Unmark a pull request file as viewed
Unmark an issue as a duplicate of another issue.
Unminimizes a comment on an Issue, Commit, Pull Request, or Gist
Unpin a pinned issue from a repository
Marks a review thread as unresolved.
Create a new branch protection rule
Update a check run
Modifies the settings of an existing check suite
Update a discussion
Update the contents of a comment on a Discussion
Updates the role of an enterprise administrator.
Sets whether private repository forks are enabled for an enterprise.
Sets the default repository permission for organizations in an enterprise.
Sets whether organization members with admin permissions on a repository can change repository visibility.
Sets the members can create repositories setting for an enterprise.
Sets the members can delete issues setting for an enterprise.
Sets the members can delete repositories setting for an enterprise.
Sets whether members can invite collaborators are enabled for an enterprise.
Sets whether or not an organization admin can make purchases.
Sets the members can update protected branches setting for an enterprise.
Sets the members can view dependency insights for an enterprise.
Sets whether organization projects are enabled for an enterprise.
Updates an enterprise's profile.
Sets whether repository projects are enabled for a enterprise.
Sets whether team discussions are enabled for an enterprise.
Sets whether two factor authentication is required for all users in an enterprise.
Sets whether an IP allow list is enabled on an owner.
Updates an IP allow list entry.
Updates an Issue.
Updates an IssueComment object.
Update the setting to restrict notifications to only verified domains available to an owner.
Updates an existing project.
Updates an existing project card.
Updates an existing project column.
Update a pull request
Updates the body of a pull request review.
Updates a pull request review comment.
Update a Git Ref.
Update information about a repository.
Updates the state for subscribable subjects.
Updates a team discussion.
Updates a discussion comment.
Replaces the repository's topics with the given topics.
Verify that a verifiable domain has the expected DNS record.
No description