Object GitHub::Ref

Represents a Git reference.

Fields

associatedPullRequests(states: [PullRequestState!], labels: [String!], headRefName: String, baseRefName: String, orderBy: IssueOrder, after: String, before: String, first: Int, last: Int): PullRequestConnection!

A list of pull requests with this ref as the head ref.

Args

states: [PullRequestState!]

A list of states to filter the pull requests by.

labels: [String!]

A list of label names to filter the pull requests by.

headRefName: String

The head ref name to filter the pull requests by.

baseRefName: String

The base ref name to filter the pull requests by.

orderBy: IssueOrder

Ordering options for pull requests returned from the connection.

after: String

Returns the elements in the list that come after the specified cursor.

before: String

Returns the elements in the list that come before the specified cursor.

first: Int

Returns the first n elements from the list.

last: Int

Returns the last n elements from the list.

id: ID!

name: String!

The ref name.

prefix: String!

The ref's prefix, such as refs/heads/ or refs/tags/.

repository: Repository!

The repository the ref belongs to.

target: GitObject

The object the ref points to. Returns null when object does not exist.

Uses

BaseRefForcePushedEvent.ref

BranchProtectionRuleConflict.ref

CreateRefPayload.ref

DeployedEvent.ref

Deployment.ref

HeadRefDeletedEvent.headRef

HeadRefForcePushedEvent.ref

MergedEvent.mergeRef

PullRequest.baseRef

PullRequest.headRef

RefConnection.nodes

RefEdge.node

Release.tag

Repository.defaultBranchRef

Repository.ref

UpdateRefPayload.ref

Node