GitHubGitObject

Represents a Git object.

EXAMPLE USAGES
GitHubGetFileShaAndContent

Get the (textual) value of a file in a GitHub repo via GraphQL

  • $branchAndFilePath should be formatted as ${branchName}:${filePath without the leading '/'}

Note that the text field will be null if the file is a binary blog (such as an image).

If you need to read the binary content, email [support@onegraph.com](mailto:support@onegraph.com?subject=Can you add a base64-encoded binary content field to the GitHubBlob type on OneGraph?) and we can stitch in the corresponding REST endpoint

FIELDS
abbreviatedOid (String!)

An abbreviated version of the Git object ID

commitResourcePath (GitHubURI!)

The HTTP path for this Git object

commitUrl (GitHubURI!)

The HTTP URL for this Git object

id (ID!)

No description

oid (GitHubGitObjectID!)

The Git object ID

repository (GitHubRepository!)

The Repository the Git object belongs to

IMPLEMENTED BY
GitHubTree

Represents a Git tree.

GitHubTag

Represents a Git tag.

GitHubBlob

Represents a Git blob.

GitHubCommit

Represents a Git commit.

REQUIRED BY
GitHubRef

Represents a Git reference.

GitHubRepository

A repository contains the content for a project.

GitHubTag

Represents a Git tag.

GitHubTreeEntry

Represents a Git tree entry.

____________________________________________________________________________________________________