Github API - Test Config

mutation createRef

Create a new Git Ref.

Arguments
input CreateRefInput

CreateRefInput [input]

Autogenerated input type of CreateRef

Attributes
clientMutationId String

A unique identifier for the client performing the mutation.

name String

The fully qualified name of the new Ref (ie: refs/heads/my_new_branch).

The GitObjectID that the new Ref shall target. Must point to a commit.

repositoryId ID

The Node ID of the Repository to create the Ref in.

API:
Github GraphQL API

Parameters for CreateRef

Returns
CreateRefPayload

CreateRefPayload [object]

Autogenerated return type of CreateRef

Attributes
clientMutationId String

A unique identifier for the client performing the mutation.

ref Ref

The newly created ref.

API:
Github GraphQL API
API:
Github GraphQL API