Magidoc

Ref
Object

Represents a Git reference.

Fields

#

associatedPullRequests

Non-null

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

branchProtectionRule

Branch protection rules for this ref

compare

Compares the current ref as a base ref to another head ref, if the comparison can be made.

id

ID !
Non-null

The Node ID of the Ref object

name

Non-null

The ref name.

prefix

Non-null

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

refUpdateRule

Branch protection rules that are viewable by non-admins

repository

Non-null

The repository the ref belongs to.

rules

A list of rules from active Repository and Organization rulesets that apply to this ref.

target

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

Interfaces

#

Also implements Node .

Usages

#

References

#