Skip to main content

Repositories

Reference documentation for GraphQL schema types in the Repositories category.

In this article

Queries

repository

Query

Lookup a given repository by the owner and repository name.

Type: Repository

Arguments for repository

NameDescription

followRenames (Boolean)

Follow repository renames. If disabled, a repository referenced by its old name will return an error.

The default value is true.

name (String!)

The name of the repository.

owner (String!)

The login field of a user or organization.

repositoryOwner

Query

Lookup a repository owner (ie. either a User or an Organization) by login.

Type: RepositoryOwner

Arguments for repositoryOwner

NameDescription

login (String!)

The username to lookup the owner by.

topic

Query

Look up a topic by name.

Type: Topic

Arguments for topic

NameDescription

name (String!)

The topic's name.

Mutations

acceptTopicSuggestion

Mutation

Applies a suggested topic to the repository.

Input fields for acceptTopicSuggestion

Return fields for acceptTopicSuggestion

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

topic (Topic)

The accepted topic.

Warning

topic is deprecated.

Suggested topics are no longer supported Removal on 2024-04-01 UTC.

archiveRepository

Mutation

Marks a repository as archived.

Input fields for archiveRepository

Return fields for archiveRepository

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The repository that was marked as archived.

cloneTemplateRepository

Mutation

Create a new repository with the same files and directory structure as a template repository.

Input fields for cloneTemplateRepository

Return fields for cloneTemplateRepository

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The new repository.

createRepository

Mutation

Create a new repository.

Input fields for createRepository

Return fields for createRepository

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The new repository.

createRepositoryCustomProperty

Mutation

Create a repository custom property.

Input fields for createRepositoryCustomProperty

Return fields for createRepositoryCustomProperty

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryCustomProperty (RepositoryCustomProperty)

The newly created repository custom property.

createRepositoryRuleset

Mutation

Create a repository ruleset.

Input fields for createRepositoryRuleset

Return fields for createRepositoryRuleset

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

ruleset (RepositoryRuleset)

The newly created Ruleset.

declineTopicSuggestion

Mutation

Rejects a suggested topic for the repository.

Input fields for declineTopicSuggestion

Return fields for declineTopicSuggestion

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

topic (Topic)

The declined topic.

Warning

topic is deprecated.

Suggested topics are no longer supported Removal on 2024-04-01 UTC.

deleteRepositoryCustomProperty

Mutation

Delete a repository custom property.

Input fields for deleteRepositoryCustomProperty

Return fields for deleteRepositoryCustomProperty

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryCustomProperty (RepositoryCustomProperty)

The deleted custom property.

deleteRepositoryRuleset

Mutation

Delete a repository ruleset.

Input fields for deleteRepositoryRuleset

Return fields for deleteRepositoryRuleset

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

promoteRepositoryCustomProperty

Mutation

Promote a repository custom property to the enterprise level.

Input fields for promoteRepositoryCustomProperty

Return fields for promoteRepositoryCustomProperty

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryCustomProperty (RepositoryCustomProperty)

The repository custom property that has been promoted.

setRepositoryCustomPropertyValues

Mutation

Set repository custom property values for a repository.

Input fields for setRepositoryCustomPropertyValues

Return fields for setRepositoryCustomPropertyValues

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The repository that the custom properties were set for.

setRepositoryInteractionLimit

Mutation

Sets an interaction limit setting for a repository.

Input fields for setRepositoryInteractionLimit

Return fields for setRepositoryInteractionLimit

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The repository that the interaction limit was set for.

unarchiveRepository

Mutation

Unarchives a repository.

Input fields for unarchiveRepository

Return fields for unarchiveRepository

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The repository that was unarchived.

updateRepository

Mutation

Update information about a repository.

Input fields for updateRepository

Return fields for updateRepository

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The updated repository.

updateRepositoryCustomProperty

Mutation

Update a repository custom property.

Input fields for updateRepositoryCustomProperty

Return fields for updateRepositoryCustomProperty

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryCustomProperty (RepositoryCustomProperty)

The updated repository custom property.

updateRepositoryRuleset

Mutation

Update a repository ruleset.

Input fields for updateRepositoryRuleset

Return fields for updateRepositoryRuleset

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

ruleset (RepositoryRuleset)

The newly created Ruleset.

updateRepositoryWebCommitSignoffSetting

Mutation

Sets whether contributors are required to sign off on web-based commits for a repository.

Input fields for updateRepositoryWebCommitSignoffSetting

Return fields for updateRepositoryWebCommitSignoffSetting

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

message (String)

A message confirming the result of updating the web commit signoff setting.

repository (Repository)

The updated repository.

updateTopics

Mutation

Replaces the repository's topics with the given topics.

Input fields for updateTopics

Return fields for updateTopics

NameDescription

clientMutationId (String)

A unique identifier for the client performing the mutation.

invalidTopicNames ([String!])

Names of the provided topics that are not valid.

repository (Repository)

The updated repository.

Objects

CodeScanningParameters

Object

Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.

Fields for CodeScanningParameters

NameDescription

codeScanningTools ([CodeScanningTool!]!)

Tools that must provide code scanning results for this rule to pass.

CodeScanningTool

Object

A tool that must provide code scanning results for this rule to pass.

Fields for CodeScanningTool

NameDescription

alertsThreshold (String!)

The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "About code scanning alerts.".

securityAlertsThreshold (String!)

The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "About code scanning alerts.".

tool (String!)

The name of a code scanning tool.

ContributingGuidelines

Object

The Contributing Guidelines for a repository.

Fields for ContributingGuidelines

NameDescription

body (String)

The body of the Contributing Guidelines.

resourcePath (URI)

The HTTP path for the Contributing Guidelines.

url (URI)

The HTTP URL for the Contributing Guidelines.

FileExtensionRestrictionParameters

Object

Prevent commits that include files with specified file extensions from being pushed to the commit graph.

Fields for FileExtensionRestrictionParameters

NameDescription

restrictedFileExtensions ([String!]!)

The file extensions that are restricted from being pushed to the commit graph.

FilePathRestrictionParameters

Object

Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.

Fields for FilePathRestrictionParameters

NameDescription

restrictedFilePaths ([String!]!)

The file paths that are restricted from being pushed to the commit graph.

Object

A funding platform link for a repository.

Fields for FundingLink

NameDescription

platform (FundingPlatform!)

The funding platform this link is for.

url (URI!)

The configured URL for this funding link.

Language

Object

Represents a given language found in repositories.

Language Implements

Fields for Language

NameDescription

color (String)

The color defined for the current language.

id (ID!)

The Node ID of the Language object.

name (String!)

The name of the current language.

LanguageConnection

Object

A list of languages associated with the parent.

Fields for LanguageConnection

NameDescription

edges ([LanguageEdge])

A list of edges.

nodes ([Language])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

totalSize (Int!)

The total size in bytes of files written in that language.

LanguageEdge

Object

Represents the language of a repository.

Fields for LanguageEdge

NameDescription

cursor (String!)

N/A

node (Language!)

N/A

size (Int!)

The number of bytes of code written in the language.

MaxFilePathLengthParameters

Object

Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.

Fields for MaxFilePathLengthParameters

NameDescription

maxFilePathLength (Int!)

The maximum amount of characters allowed in file paths.

MaxFileSizeParameters

Object

Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.

Fields for MaxFileSizeParameters

NameDescription

maxFileSize (Int!)

The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).

PermissionSource

Object

A level of permission and source for a user's access to a repository.

Fields for PermissionSource

NameDescription

organization (Organization!)

The organization the repository belongs to.

permission (DefaultRepositoryPermissionField!)

The level of access this source has granted to the user.

roleName (String)

The name of the role this source has granted to the user.

source (PermissionGranter!)

The source of this permission.

PropertyTargetDefinition

Object

A property that must match.

Fields for PropertyTargetDefinition

NameDescription

name (String!)

The name of the property.

propertyValues ([String!]!)

The values to match for.

source (String)

The source of the property. Choosecustomor 'system'. Defaults to 'custom' if not specified.

RepoAccessAuditEntry

Object

Audit log entry for a repo.access event.

RepoAccessAuditEntry Implements

Fields for RepoAccessAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoAccessAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

visibility (RepoAccessAuditEntryVisibility)

The visibility of the repository.

Warning

visibility is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoAddMemberAuditEntry

Object

Audit log entry for a repo.add_member event.

RepoAddMemberAuditEntry Implements

Fields for RepoAddMemberAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoAddMemberAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

visibility (RepoAddMemberAuditEntryVisibility)

The visibility of the repository.

Warning

visibility is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoAddTopicAuditEntry

Object

Audit log entry for a repo.add_topic event.

RepoAddTopicAuditEntry Implements

Fields for RepoAddTopicAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoAddTopicAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

topic (Topic)

The name of the topic added to the repository.

topicName (String)

The name of the topic added to the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoArchivedAuditEntry

Object

Audit log entry for a repo.archived event.

RepoArchivedAuditEntry Implements

Fields for RepoArchivedAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoArchivedAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

visibility (RepoArchivedAuditEntryVisibility)

The visibility of the repository.

Warning

visibility is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoChangeMergeSettingAuditEntry

Object

Audit log entry for a repo.change_merge_setting event.

RepoChangeMergeSettingAuditEntry Implements

Fields for RepoChangeMergeSettingAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoChangeMergeSettingAuditEntry object.

isEnabled (Boolean)

Whether the change was to enable (true) or disable (false) the merge type.

Warning

isEnabled is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

mergeType (RepoChangeMergeSettingAuditEntryMergeType)

The merge method affected by the change.

Warning

mergeType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoCreateAuditEntry

Object

Audit log entry for a repo.create event.

RepoCreateAuditEntry Implements

Fields for RepoCreateAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

forkParentName (String)

The name of the parent repository for this forked repository.

Warning

forkParentName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

forkSourceName (String)

The name of the root repository for this network.

Warning

forkSourceName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoCreateAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.

user (User)

The user affected by the action.

Warning

user is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userLogin (String)

For actions involving two users, the actor is the initiator and the user is the affected user.

Warning

userLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userResourcePath (URI)

The HTTP path for the user.

Warning

userResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

userUrl (URI)

The HTTP URL for the user.

Warning

userUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

visibility (RepoCreateAuditEntryVisibility)

The visibility of the repository.

Warning

visibility is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

RepoDestroyAuditEntry

Object

Audit log entry for a repo.destroy event.

RepoDestroyAuditEntry Implements

Fields for RepoDestroyAuditEntry

NameDescription

action (String!)

The action name.

Warning

action is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actor (AuditEntryActor)

The user who initiated the action.

Warning

actor is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorIp (String)

The IP address of the actor.

Warning

actorIp is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLocation (ActorLocation)

A readable representation of the actor's location.

Warning

actorLocation is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorLogin (String)

The username of the user who initiated the action.

Warning

actorLogin is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorResourcePath (URI)

The HTTP path for the actor.

Warning

actorResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

actorUrl (URI)

The HTTP URL for the actor.

Warning

actorUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

createdAt (PreciseDateTime!)

The time the action was initiated.

Warning

createdAt is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

id (ID!)

The Node ID of the RepoDestroyAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

Warning

operationType is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organization (Organization)

The Organization associated with the Audit Entry.

Warning

organization is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationName (String)

The name of the Organization.

Warning

organizationName is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationResourcePath (URI)

The HTTP path for the organization.

Warning

organizationResourcePath is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

organizationUrl (URI)

The HTTP URL for the organization.

Warning

organizationUrl is deprecated.

The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC.

repository (Repository)

The repository associated with the action.

repositoryName (String)

The name of the repository.

repositoryResourcePath (URI)

The HTTP path for the repository.

repositoryUrl (URI)

The HTTP URL for the repository.