Mutations
createRef
Create a new Git Ref.
Input fields for createRef
input(CreateRefInput!)
Return fields for createRef
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created ref. |
deleteRef
Delete a Git Ref.
Input fields for deleteRef
input(DeleteRefInput!)
Return fields for deleteRef
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
updateRef
Update a Git Ref.
Input fields for updateRef
input(UpdateRefInput!)
Return fields for updateRef
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated Ref. |
updateRefs
Creates, updates and/or deletes multiple refs in a repository.
This mutation takes a list of RefUpdates and performs these updates
on the repository. All updates are performed atomically, meaning that
if one of them is rejected, no other ref will be modified.
RefUpdate.beforeOid specifies that the given reference needs to point
to the given value before performing any updates. A value of
0000000000000000000000000000000000000000 can be used to verify that
the references should not exist.
RefUpdate.afterOid specifies the value that the given reference
will point to after performing all updates. A value of
0000000000000000000000000000000000000000 can be used to delete a
reference.
If RefUpdate.force is set to true, a non-fast-forward updates
for the given reference will be allowed.
Input fields for updateRefs
input(UpdateRefsInput!)
Return fields for updateRefs
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
Objects
Blame
Represents a Git blame.
Fields for Blame
| Name | Description |
|---|---|
| The list of ranges from a Git blame. |
BlameRange
Represents a range of information from a Git blame.
Fields for BlameRange
| Name | Description |
|---|---|
| Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change. |
| Identifies the line author. |
| The ending line for the range. |
| The starting line for the range. |
Blob
Represents a Git blob.
Blob Implements
Fields for Blob
| Name | Description |
|---|---|
| An abbreviated version of the Git object ID. |
| Byte size of Blob object. |
| The HTTP path for this Git object. |
| The HTTP URL for this Git object. |
| The Node ID of the Blob object. |
| Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. |
| Indicates whether the contents is truncated. |
| The Git object ID. |
| The Repository the Git object belongs to. |
| UTF8 text data or null if the Blob is binary. |
GitActor
Represents an actor in a Git commit (ie. an author or committer).
Fields for GitActor
| Name | Description |
|---|---|
| A URL pointing to the author's public avatar. Arguments for
|
| The timestamp of the Git action (authoring or committing). |
| The email in the Git commit. |
| The name in the Git commit. |
| The GitHub user corresponding to the email field. Null if no such user exists. |
GitActorConnection
The connection type for GitActor.
Fields for GitActorConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
GitActorEdge
An edge in a connection.
Fields for GitActorEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
GpgSignature
Represents a GPG signature on a Commit or Tag.
GpgSignature Implements
Fields for GpgSignature
| Name | Description |
|---|---|
| Email used to sign this object. |
| True if the signature is valid and verified by GitHub. |
| Hex-encoded ID of the key that signed this object. |
| Payload for GPG signing object. Raw ODB object without the signature header. |
| ASCII-armored signature header from object. |
| GitHub user corresponding to the email signing this commit. |
| The state of this signature. |
|