Skip to main content

Reference documentation for GraphQL schema types in the Repositories category.

В этой статье

Queries

repository

Query

Lookup a given repository by the owner and repository name.

Тип: Repository

Аргументы для repository

Имя.Description

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.

Тип: RepositoryOwner

Аргументы для repositoryOwner

Имя.Description

login (String!)

The username to lookup the owner by.

topic

Query

Look up a topic by name.

Тип: Topic

Аргументы для topic

Имя.Description

name (String!)

The topic's name.

Mutations

archiveRepository

Mutation

Marks a repository as archived.

Поля ввода для archiveRepository

Возвращаемые поля для archiveRepository

Имя.Description

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.

Поля ввода для cloneTemplateRepository

Возвращаемые поля для cloneTemplateRepository

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The new repository.

createRepository

Mutation

Create a new repository.

Поля ввода для createRepository

Возвращаемые поля для createRepository

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The new repository.

createRepositoryRuleset

Mutation

Create a repository ruleset.

Поля ввода для createRepositoryRuleset

Возвращаемые поля для createRepositoryRuleset

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

ruleset (RepositoryRuleset)

The newly created Ruleset.

deleteRepositoryRuleset

Mutation

Delete a repository ruleset.

Поля ввода для deleteRepositoryRuleset

Возвращаемые поля для deleteRepositoryRuleset

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

unarchiveRepository

Mutation

Unarchives a repository.

Поля ввода для unarchiveRepository

Возвращаемые поля для unarchiveRepository

Имя.Description

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.

Поля ввода для updateRepository

Возвращаемые поля для updateRepository

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The updated repository.

updateRepositoryRuleset

Mutation

Update a repository ruleset.

Поля ввода для updateRepositoryRuleset

Возвращаемые поля для updateRepositoryRuleset

Имя.Description

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.

Поля ввода для updateRepositoryWebCommitSignoffSetting

Возвращаемые поля для updateRepositoryWebCommitSignoffSetting

Имя.Description

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.

Поля ввода для updateTopics

Возвращаемые поля для updateTopics

Имя.Description

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.

Поля для CodeScanningParameters

Имя.Description

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.

Поля для CodeScanningTool

Имя.Description

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.

Поля для ContributingGuidelines

Имя.Description

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.

Поля для FileExtensionRestrictionParameters

Имя.Description

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 paths from being pushed to the commit graph.

Поля для FilePathRestrictionParameters

Имя.Description

restrictedFilePaths ([String!]!)

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

Language

Object

Represents a given language found in repositories.

Language Реализует

Поля для Language

Имя.Description

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.

Поля для LanguageConnection

Имя.Description

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.

Поля для LanguageEdge

Имя.Description

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 a specified character limit from being pushed to the commit graph.

Поля для MaxFilePathLengthParameters

Имя.Description

maxFilePathLength (Int!)

The maximum amount of characters allowed in file paths.

MaxFileSizeParameters

Object

Prevent commits that exceed a specified file size limit from being pushed to the commit graph.

Поля для MaxFileSizeParameters

Имя.Description

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.

Поля для PermissionSource

Имя.Description

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.

Поля для PropertyTargetDefinition

Имя.Description

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 Реализует

Поля для RepoAccessAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoAccessAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoAccessAuditEntryVisibility)

The visibility of the repository.

RepoAddMemberAuditEntry

Object

Audit log entry for a repo.add_member event.

RepoAddMemberAuditEntry Реализует

Поля для RepoAddMemberAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoAddMemberAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoAddMemberAuditEntryVisibility)

The visibility of the repository.

RepoAddTopicAuditEntry

Object

Audit log entry for a repo.add_topic event.

RepoAddTopicAuditEntry Реализует

Поля для RepoAddTopicAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoAddTopicAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

RepoArchivedAuditEntry

Object

Audit log entry for a repo.archived event.

RepoArchivedAuditEntry Реализует

Поля для RepoArchivedAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoArchivedAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoArchivedAuditEntryVisibility)

The visibility of the repository.

RepoChangeMergeSettingAuditEntry

Object

Audit log entry for a repo.change_merge_setting event.

RepoChangeMergeSettingAuditEntry Реализует

Поля для RepoChangeMergeSettingAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoChangeMergeSettingAuditEntry object.

isEnabled (Boolean)

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

mergeType (RepoChangeMergeSettingAuditEntryMergeType)

The merge method affected by the change.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

RepoCreateAuditEntry

Object

Audit log entry for a repo.create event.

RepoCreateAuditEntry Реализует

Поля для RepoCreateAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

forkParentName (String)

The name of the parent repository for this forked repository.

forkSourceName (String)

The name of the root repository for this network.

id (ID!)

The Node ID of the RepoCreateAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoCreateAuditEntryVisibility)

The visibility of the repository.

RepoDestroyAuditEntry

Object

Audit log entry for a repo.destroy event.

RepoDestroyAuditEntry Реализует

Поля для RepoDestroyAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoDestroyAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoDestroyAuditEntryVisibility)

The visibility of the repository.

RepoRemoveMemberAuditEntry

Object

Audit log entry for a repo.remove_member event.

RepoRemoveMemberAuditEntry Реализует

Поля для RepoRemoveMemberAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoRemoveMemberAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

visibility (RepoRemoveMemberAuditEntryVisibility)

The visibility of the repository.

RepoRemoveTopicAuditEntry

Object

Audit log entry for a repo.remove_topic event.

RepoRemoveTopicAuditEntry Реализует

Поля для RepoRemoveTopicAuditEntry

Имя.Description

action (String!)

The action name.

actor (AuditEntryActor)

The user who initiated the action.

actorIp (String)

The IP address of the actor.

actorLocation (ActorLocation)

A readable representation of the actor's location.

actorLogin (String)

The username of the user who initiated the action.

actorResourcePath (URI)

The HTTP path for the actor.

actorUrl (URI)

The HTTP URL for the actor.

createdAt (PreciseDateTime!)

The time the action was initiated.

id (ID!)

The Node ID of the RepoRemoveTopicAuditEntry object.

operationType (OperationType)

The corresponding operation type for the action.

organization (Organization)

The Organization associated with the Audit Entry.

organizationName (String)

The name of the Organization.

organizationResourcePath (URI)

The HTTP path for the organization.

organizationUrl (URI)

The HTTP URL for the organization.

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.

userLogin (String)

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

userResourcePath (URI)

The HTTP path for the user.

userUrl (URI)

The HTTP URL for the user.

Repository

Object

A repository contains the content for a project.

Repository Реализует

Поля для Repository

Имя.Description

allowUpdateBranch (Boolean!)

Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.

archivedAt (DateTime)

Identifies the date and time when the repository was archived.

assignableUsers (UserConnection!)

A list of users that can be assigned to issues in this repository.

Аргументы для assignableUsers

  • 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.

  • query (String)

    Filters users with query on user name and login.

autoMergeAllowed (Boolean!)

Whether or not Auto-merge can be enabled on pull requests in this repository.

branchProtectionRules (BranchProtectionRuleConnection!)

A list of branch protection rules for this repository.

Аргументы для branchProtectionRules

  • 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.

codeOfConduct (CodeOfConduct)

Returns the code of conduct for this repository.

codeowners (RepositoryCodeowners)

Information extracted from the repository's CODEOWNERS file.

Аргументы для codeowners

  • refName (String)

    The ref name used to return the associated CODEOWNERS file.

collaborators (RepositoryCollaboratorConnection)

A list of collaborators associated with the repository.

Аргументы для collaborators

  • 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.

  • login (String)

    The login of one specific collaborator.

  • query (String)

    Filters users with query on user name and login.

commitComments (CommitCommentConnection!)

A list of commit comments associated with the repository.

Аргументы для commitComments

  • 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.

contactLinks ([RepositoryContactLink!])

Returns a list of contact links associated to the repository.

contributingGuidelines (ContributingGuidelines)

Returns the contributing guidelines for this repository.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

defaultBranchRef (Ref)

The Ref associated with the repository's default branch.

deleteBranchOnMerge (Boolean!)

Whether or not branches are automatically deleted when merged in this repository.

dependencyGraphManifests (DependencyGraphManifestConnection)

A list of dependency manifests contained in the repository.

Аргументы для dependencyGraphManifests

  • 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.

  • dependenciesAfter (String)

    Cursor to paginate dependencies.

  • dependenciesFirst (Int)

    Number of dependencies to fetch.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • withDependencies (Boolean)

    Flag to scope to only manifests with dependencies.

deployKeys (DeployKeyConnection!)

A list of deploy keys that are on this repository.

Аргументы для deployKeys

  • 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.

deployments (DeploymentConnection!)

Deployments associated with the repository.

Аргументы для deployments

  • 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.

  • environments ([String!])

    Environments to list deployments for.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (DeploymentOrder)

    Ordering options for deployments returned from the connection.

description (String)

The description of the repository.

descriptionHTML (HTML!)

The description of the repository rendered to HTML.

discussion (Discussion)

Returns a single discussion from the current repository by number.

Аргументы для discussion

  • number (Int!)

    The number for the discussion to be returned.

discussionCategories (DiscussionCategoryConnection!)

A list of discussion categories that are available in the repository.

Аргументы для discussionCategories

  • 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.

  • filterByAssignable (Boolean)

    Filter by categories that are assignable by the viewer.

    The default value is false.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

discussionCategory (DiscussionCategory)

A discussion category by slug.

Аргументы для discussionCategory

  • slug (String!)

    The slug of the discussion category to be returned.

discussions (DiscussionConnection!)

A list of discussions that have been opened in the repository.

Аргументы для discussions

  • after (String)

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

  • answered (Boolean)

    Only show answered or unanswered discussions.

  • before (String)

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

  • categoryId (ID)

    Only include discussions that belong to the category with this ID.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (DiscussionOrder)

    Ordering options for discussions returned from the connection.

diskUsage (Int)

The number of kilobytes this repository occupies on disk.

environment (Environment)

Returns a single active environment from the current repository by name.

Аргументы для environment

  • name (String!)

    The name of the environment to be returned.

environments (EnvironmentConnection!)

A list of environments that are in this repository.

Аргументы для environments

  • 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.

  • names ([String!])

    The names of the environments to be returned.

  • orderBy (Environments)

    Ordering options for the environments.

forkCount (Int!)

Returns how many forks there are of this repository in the whole network.

forkingAllowed (Boolean!)

Whether this repository allows forks.

forks (RepositoryConnection!)

A list of direct forked repositories.

Аргументы для forks

  • affiliations ([RepositoryAffiliation])

    Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.

  • 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.

  • hasIssuesEnabled (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

  • isLocked (Boolean)

    If non-null, filters repositories according to whether they have been locked.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (RepositoryOrder)

    Ordering options for repositories returned from the connection.

  • ownerAffiliations ([RepositoryAffiliation])

    Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.

  • privacy (RepositoryPrivacy)

    If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument.

  • visibility (RepositoryVisibility)

    If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.

hasAnonymousAccessEnabled (Boolean!)

Indicates if the repository has anonymous Git read access feature enabled.

hasDiscussionsEnabled (Boolean!)

Indicates if the repository has the Discussions feature enabled.

hasIssuesEnabled (Boolean!)

Indicates if the repository has issues feature enabled.

hasProjectsEnabled (Boolean!)

Indicates if the repository has the Projects feature enabled.

hasVulnerabilityAlertsEnabled (Boolean!)

Whether vulnerability alerts are enabled for the repository.

hasWikiEnabled (Boolean!)

Indicates if the repository has wiki feature enabled.

homepageUrl (URI)

The repository's URL.

id (ID!)

The Node ID of the Repository object.

isArchived (Boolean!)

Indicates if the repository is unmaintained.

isBlankIssuesEnabled (Boolean!)

Returns true if blank issue creation is allowed.

isDisabled (Boolean!)

Returns whether or not this repository disabled.

isEmpty (Boolean!)

Returns whether or not this repository is empty.

isFork (Boolean!)

Identifies if the repository is a fork.

isInOrganization (Boolean!)

Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.

isLocked (Boolean!)

Indicates if the repository has been locked or not.

isMirror (Boolean!)

Identifies if the repository is a mirror.

isPrivate (Boolean!)

Identifies if the repository is private or internal.

isSecurityPolicyEnabled (Boolean)

Returns true if this repository has a security policy.

isTemplate (Boolean!)

Identifies if the repository is a template that can be used to generate new repositories.

isUserConfigurationRepository (Boolean!)

Is this repository a user configuration repository?.

issue (Issue)

Returns a single issue from the current repository by number.

Аргументы для issue

  • number (Int!)

    The number for the issue to be returned.

issueOrPullRequest (IssueOrPullRequest)

Returns a single issue-like object from the current repository by number.

Аргументы для issueOrPullRequest

  • number (Int!)

    The number for the issue to be returned.

issueTemplates ([IssueTemplate!])

Returns a list of issue templates associated to the repository.

issueType (IssueType)

Returns a single issue type by name.

Аргументы для issueType

issueTypes (IssueTypeConnection)

A list of the repository's issue types.

Аргументы для issueTypes

  • 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.

  • orderBy (IssueTypeOrder)

    Ordering options for issue types returned from the connection.

issues (IssueConnection!)

A list of issues that have been opened in the repository.

Аргументы для issues

  • 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.

  • filterBy (IssueFilters)

    Filtering options for issues returned from the connection.

  • first (Int)

    Returns the first n elements from the list.

  • labels ([String!])

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

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for issues returned from the connection.

label (Label)

Returns a single label by name.

Аргументы для label

labels (LabelConnection)

A list of labels associated with the repository.

Аргументы для labels

  • 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.

  • orderBy (LabelOrder)

    Ordering options for labels returned from the connection.

  • query (String)

    If provided, searches labels by name and description.

languages (LanguageConnection)

A list containing a breakdown of the language composition of the repository.

Аргументы для languages

  • 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.

latestRelease (Release)

Get the latest release for the repository if one exists.

licenseInfo (License)

The license associated with the repository.

lockReason (RepositoryLockReason)

The reason the repository has been locked.

mentionableUsers (UserConnection!)

A list of Users that can be mentioned in the context of the repository.

Аргументы для mentionableUsers

  • 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.

  • query (String)

    Filters users with query on user name and login.

mergeCommitAllowed (Boolean!)

Whether or not PRs are merged with a merge commit on this repository.

mergeCommitMessage (MergeCommitMessage!)

How the default commit message will be generated when merging a pull request.

mergeCommitTitle (MergeCommitTitle!)

How the default commit title will be generated when merging a pull request.

mergeQueue (MergeQueue)

The merge queue for a specified branch, otherwise the default branch if not provided.

Аргументы для mergeQueue

  • branch (String)

    The name of the branch to get the merge queue for. Case sensitive.

milestone (Milestone)

Returns a single milestone from the current repository by number.

Аргументы для milestone

  • number (Int!)

    The number for the milestone to be returned.

milestones (MilestoneConnection)

A list of milestones associated with the repository.

Аргументы для milestones

  • 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.

  • query (String)

    Filters milestones with a query on the title.

mirrorUrl (URI)

The repository's original mirror URL.

name (String!)

The name of the repository.

nameWithOwner (String!)

The repository's name with owner.

object (GitObject)

A Git object in the repository.

Аргументы для object

  • expression (String)

    A Git revision expression suitable for rev-parse.

openGraphImageUrl (URI!)

The image used to represent this repository in Open Graph data.

owner (RepositoryOwner!)

The User owner of the repository.

packages (PackageConnection!)

A list of packages under the owner.

Аргументы для packages

  • 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.

  • names ([String])

    Find packages by their names.

  • packageType (PackageType)

    Filter registry package by type.

  • repositoryId (ID)

    Find packages in a repository by ID.

parent (Repository)

The repository parent, if this is a fork.

pinnedDiscussions (PinnedDiscussionConnection!)

A list of discussions that have been pinned in this repository.

Аргументы для pinnedDiscussions

  • 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.

pinnedEnvironments (PinnedEnvironmentConnection)

A list of pinned environments for this repository.

Аргументы для pinnedEnvironments

  • 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.

pinnedIssues (PinnedIssueConnection)

A list of pinned issues for this repository.

Аргументы для pinnedIssues

  • 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.

planFeatures (RepositoryPlanFeatures!)

Returns information about the availability of certain features and limits based on the repository's billing plan.

primaryLanguage (Language)

The primary language of the repository's code.

project (Project)

Find project by number.

Предупреждение

project is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

Аргументы для project

  • number (Int!)

    The project number to find.

projectV2 (ProjectV2)

Finds and returns the Project according to the provided Project number.

Аргументы для projectV2

  • number (Int!)

    The Project number.

projects (ProjectConnection!)

A list of projects under the owner.

Предупреждение

projects is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

Аргументы для projects

  • 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.

  • orderBy (ProjectOrder)

    Ordering options for projects returned from the connection.

  • search (String)

    Query to search projects by, currently only searching by name.

projectsResourcePath (URI!)

The HTTP path listing the repository's projects.

projectsUrl (URI!)

The HTTP URL listing the repository's projects.

projectsV2 (ProjectV2Connection!)

List of projects linked to this repository.

Аргументы для projectsV2

  • 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.

  • query (String)

    A project to search for linked to the repo.

pullRequest (PullRequest)

Returns a single pull request from the current repository by number.

Аргументы для pullRequest

  • number (Int!)

    The number for the pull request to be returned.

pullRequestTemplates ([PullRequestTemplate!])

Returns a list of pull request templates associated to the repository.

pullRequests (PullRequestConnection!)

A list of pull requests that have been opened in the repository.

Аргументы для pullRequests

  • after (String)

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

  • baseRefName (String)

    The base ref name to filter the pull requests by.

  • before (String)

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

  • first (Int)

    Returns the first n elements from the list.

  • headRefName (String)

    The head ref name to filter the pull requests by.

  • labels ([String!])

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

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for pull requests returned from the connection.

pushedAt (DateTime)

Identifies the date and time when the repository was last pushed to.

rebaseMergeAllowed (Boolean!)

Whether or not rebase-merging is enabled on this repository.

recentProjects (ProjectV2Connection!)

Recent projects that this user has modified in the context of the owner.

Аргументы для recentProjects

  • 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.

ref (Ref)

Fetch a given ref from the repository.

Аргументы для ref

  • qualifiedName (String!)

    The ref to retrieve. Fully qualified matches are checked in order (refs/heads/master) before falling back onto checks for short name matches (master).

refs (RefConnection)

Fetch a list of refs from the repository.

Аргументы для refs

  • 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.

  • direction (OrderDirection)

    DEPRECATED: use orderBy. The ordering direction.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (RefOrder)

    Ordering options for refs returned from the connection.

  • query (String)

    Filters refs with query on name.

  • refPrefix (String!)

    A ref name prefix like refs/heads/, refs/tags/, etc.

release (Release)

Lookup a single release given various criteria.

Аргументы для release

  • tagName (String!)

    The name of the Tag the Release was created from.

releases (ReleaseConnection!)

List of releases which are dependent on this repository.

Аргументы для releases

  • 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.

repositoryTopics (RepositoryTopicConnection!)

A list of applied repository-topic associations for this repository.

Аргументы для repositoryTopics

  • 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.

resourcePath (URI!)

The HTTP path for this repository.

ruleset (RepositoryRuleset)

Returns a single ruleset from the current repository by ID.

Аргументы для ruleset

  • databaseId (Int!)

    The ID of the ruleset to be returned.

  • includeParents (Boolean)

    Include rulesets configured at higher levels that apply to this repository.

    The default value is true.

rulesets (RepositoryRulesetConnection)

A list of rulesets for this repository.

Аргументы для rulesets

  • 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.

  • includeParents (Boolean)

    Return rulesets configured at higher levels that apply to this repository.

    The default value is true.

  • last (Int)

    Returns the last n elements from the list.

securityPolicyUrl (URI)

The security policy URL.

shortDescriptionHTML (HTML!)

A description of the repository, rendered to HTML without any links in it.

Аргументы для shortDescriptionHTML

  • limit (Int)

    How many characters to return.

    The default value is 200.

squashMergeAllowed (Boolean!)

Whether or not squash-merging is enabled on this repository.

squashMergeCommitMessage (SquashMergeCommitMessage!)

How the default commit message will be generated when squash merging a pull request.

squashMergeCommitTitle (SquashMergeCommitTitle!)

How the default commit title will be generated when squash merging a pull request.

squashPrTitleUsedAsDefault (Boolean!)

Whether a squash merge commit can use the pull request title as default.

Предупреждение

squashPrTitleUsedAsDefault is deprecated.

squashPrTitleUsedAsDefault will be removed. Use Repository.squashMergeCommitTitle instead. Removal on 2023-04-01 UTC.

sshUrl (GitSSHRemote!)

The SSH URL to clone this repository.

stargazerCount (Int!)

Returns a count of how many stargazers there are on this object.

stargazers (StargazerConnection!)

A list of users who have starred this starrable.

Аргументы для stargazers

  • 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.

submodules (SubmoduleConnection!)

Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit.

Аргументы для submodules

  • 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.

tempCloneToken (String)

Temporary authentication token for cloning this repository.

templateRepository (Repository)

The repository from which this repository was generated, if any.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this repository.

usesCustomOpenGraphImage (Boolean!)

Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.

viewerCanAdminister (Boolean!)

Indicates whether the viewer has admin permissions on this repository.

viewerCanCreateProjects (Boolean!)

Can the current viewer create new projects on this owner.

Предупреждение

viewerCanCreateProjects is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

viewerCanSubscribe (Boolean!)

Check if the viewer is able to change their subscription status for the repository.

viewerCanUpdateTopics (Boolean!)

Indicates whether the viewer can update the topics of this repository.

viewerDefaultCommitEmail (String)

The last commit email for the viewer.

viewerDefaultMergeMethod (PullRequestMergeMethod!)

The last used merge method by the viewer or the default for the repository.

viewerHasStarred (Boolean!)

Returns a boolean indicating whether the viewing user has starred this starrable.

viewerPermission (RepositoryPermission)

The users permission level on the repository. Will return null if authenticated as an GitHub App.

viewerPossibleCommitEmails ([String!])

A list of emails this viewer can commit with.

viewerSubscription (SubscriptionState)

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

visibility (RepositoryVisibility!)

Indicates the repository's visibility level.

vulnerabilityAlert (RepositoryVulnerabilityAlert)

Returns a single vulnerability alert from the current repository by number.

Аргументы для vulnerabilityAlert

  • number (Int!)

    The number for the vulnerability alert to be returned.

vulnerabilityAlerts (RepositoryVulnerabilityAlertConnection)

A list of vulnerability alerts that are on this repository.

Аргументы для vulnerabilityAlerts

  • 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.

watchers (UserConnection!)

A list of users watching the repository.

Аргументы для watchers

  • 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.

webCommitSignoffRequired (Boolean!)

Whether contributors are required to sign off on web-based commits in this repository.

RepositoryCodeowners

Object

Information extracted from a repository's CODEOWNERS file.

Поля для RepositoryCodeowners

Имя.Description

errors ([RepositoryCodeownersError!]!)

Any problems that were encountered while parsing the CODEOWNERS file.

RepositoryCodeownersError

Object

An error in a CODEOWNERS file.

Поля для RepositoryCodeownersError

Имя.Description

column (Int!)

The column number where the error occurs.

kind (String!)

A short string describing the type of error.

line (Int!)

The line number where the error occurs.

message (String!)

A complete description of the error, combining information from other fields.

path (String!)

The path to the file when the error occurs.

source (String!)

The content of the line where the error occurs.

suggestion (String)

A suggestion of how to fix the error.

RepositoryConnection

Object

A list of repositories owned by the subject.

Поля для RepositoryConnection

Имя.Description

edges ([RepositoryEdge])

A list of edges.

nodes ([Repository])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

totalDiskUsage (Int!)

The total size in kilobytes of all repositories in the connection. Value will never be larger than max 32-bit signed integer.

Object

A repository contact link.

Поля для RepositoryContactLink

Имя.Description

about (String!)

The contact link purpose.

name (String!)

The contact link name.

url (URI!)

The contact link URL.

RepositoryEdge

Object

An edge in a connection.

Поля для RepositoryEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (Repository)

The item at the end of the edge.

RepositoryIdConditionTarget

Object

Parameters to be used for the repository_id condition.

Поля для RepositoryIdConditionTarget

Имя.Description

repositoryIds ([ID!]!)

One of these repo IDs must match the repo.

RepositoryInvitation

Object

An invitation for a user to be added to a repository.

RepositoryInvitation Реализует

Поля для RepositoryInvitation

Имя.Description

email (String)

The email address that received the invitation.

id (ID!)

The Node ID of the RepositoryInvitation object.

invitee (User)

The user who received the invitation.

inviter (User!)

The user who created the invitation.

permalink (URI!)

The permalink for this repository invitation.

permission (RepositoryPermission!)

The permission granted on this repository by this invitation.

repository (RepositoryInfo)

The Repository the user is invited to.

RepositoryInvitationConnection

Object

A list of repository invitations.

Поля для RepositoryInvitationConnection

Имя.Description

edges ([RepositoryInvitationEdge])

A list of edges.

nodes ([RepositoryInvitation])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryInvitationEdge

Object

An edge in a connection.

Поля для RepositoryInvitationEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (RepositoryInvitation)

The item at the end of the edge.

RepositoryNameConditionTarget

Object

Parameters to be used for the repository_name condition.

Поля для RepositoryNameConditionTarget

Имя.Description

exclude ([String!]!)

Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.

include ([String!]!)

Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~ALL to include all repositories.

protected (Boolean!)

Target changes that match these patterns will be prevented except by those with bypass permissions.

RepositoryPlanFeatures

Object

Information about the availability of features and limits for a repository based on its billing plan.

Поля для RepositoryPlanFeatures

Имя.Description

codeowners (Boolean!)

Whether reviews can be automatically requested and enforced with a CODEOWNERS file.

draftPullRequests (Boolean!)

Whether pull requests can be created as or converted to draft.

maximumAssignees (Int!)

Maximum number of users that can be assigned to an issue or pull request.

maximumManualReviewRequests (Int!)

Maximum number of manually-requested reviews on a pull request.

teamReviewRequests (Boolean!)

Whether teams can be requested to review pull requests.

RepositoryPropertyConditionTarget

Object

Parameters to be used for the repository_property condition.

Поля для RepositoryPropertyConditionTarget

Имя.Description

exclude ([PropertyTargetDefinition!]!)

Array of repository properties that must not match.

include ([PropertyTargetDefinition!]!)

Array of repository properties that must match.

RepositoryRule

Object

A repository rule.

RepositoryRule Реализует

Поля для RepositoryRule

Имя.Description

id (ID!)

The Node ID of the RepositoryRule object.

parameters (RuleParameters)

The parameters for this rule.

repositoryRuleset (RepositoryRuleset)

The repository ruleset associated with this rule configuration.

type (RepositoryRuleType!)

The type of rule.

RepositoryRuleConditions

Object

Set of conditions that determine if a ruleset will evaluate.

Поля для RepositoryRuleConditions

Имя.Description

refName (RefNameConditionTarget)

Configuration for the ref_name condition.

repositoryId (RepositoryIdConditionTarget)

Configuration for the repository_id condition.

repositoryName (RepositoryNameConditionTarget)

Configuration for the repository_name condition.

repositoryProperty (RepositoryPropertyConditionTarget)

Configuration for the repository_property condition.

RepositoryRuleConnection

Object

The connection type for RepositoryRule.

Поля для RepositoryRuleConnection

Имя.Description

edges ([RepositoryRuleEdge])

A list of edges.

nodes ([RepositoryRule])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryRuleEdge

Object

An edge in a connection.

Поля для RepositoryRuleEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (RepositoryRule)

The item at the end of the edge.

RepositoryRuleset

Object

A repository ruleset.

RepositoryRuleset Реализует

Поля для RepositoryRuleset

Имя.Description

bypassActors (RepositoryRulesetBypassActorConnection)

The actors that can bypass this ruleset.

Аргументы для bypassActors

  • 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.

conditions (RepositoryRuleConditions!)

The set of conditions that must evaluate to true for this ruleset to apply.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

enforcement (RuleEnforcement!)

The enforcement level of this ruleset.

id (ID!)

The Node ID of the RepositoryRuleset object.

name (String!)

Name of the ruleset.

rules (RepositoryRuleConnection)

List of rules.

Аргументы для rules

  • 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.

source (RuleSource!)

Source of ruleset.

target (RepositoryRulesetTarget)

Target of the ruleset.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

RepositoryRulesetBypassActor

Object

A team or app that has the ability to bypass a rules defined on a ruleset.

RepositoryRulesetBypassActor Реализует

Поля для RepositoryRulesetBypassActor

Имя.Description

actor (BypassActor)

The actor that can bypass rules.

bypassMode (RepositoryRulesetBypassActorBypassMode)

The mode for the bypass actor.

deployKey (Boolean!)

This actor represents the ability for a deploy key to bypass.

enterpriseOwner (Boolean!)

This actor represents the ability for an enterprise owner to bypass.

id (ID!)

The Node ID of the RepositoryRulesetBypassActor object.

organizationAdmin (Boolean!)

This actor represents the ability for an organization owner to bypass.

repositoryRoleDatabaseId (Int)

If the actor is a repository role, the repository role's ID that can bypass.

repositoryRoleName (String)

If the actor is a repository role, the repository role's name that can bypass.

repositoryRuleset (RepositoryRuleset)

Identifies the ruleset associated with the allowed actor.

RepositoryRulesetBypassActorConnection

Object

The connection type for RepositoryRulesetBypassActor.

Поля для RepositoryRulesetBypassActorConnection

Имя.Description

edges ([RepositoryRulesetBypassActorEdge])

A list of edges.

nodes ([RepositoryRulesetBypassActor])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryRulesetBypassActorEdge

Object

An edge in a connection.

Поля для RepositoryRulesetBypassActorEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (RepositoryRulesetBypassActor)

The item at the end of the edge.

RepositoryRulesetConnection

Object

The connection type for RepositoryRuleset.

Поля для RepositoryRulesetConnection

Имя.Description

edges ([RepositoryRulesetEdge])

A list of edges.

nodes ([RepositoryRuleset])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryRulesetEdge

Object

An edge in a connection.

Поля для RepositoryRulesetEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (RepositoryRuleset)

The item at the end of the edge.

RepositoryTopic

Object

A repository-topic connects a repository to a topic.

RepositoryTopic Реализует

Поля для RepositoryTopic

Имя.Description

id (ID!)

The Node ID of the RepositoryTopic object.

resourcePath (URI!)

The HTTP path for this repository-topic.

topic (Topic!)

The topic.

url (URI!)

The HTTP URL for this repository-topic.

RepositoryTopicConnection

Object

The connection type for RepositoryTopic.

Поля для RepositoryTopicConnection

Имя.Description

edges ([RepositoryTopicEdge])

A list of edges.

nodes ([RepositoryTopic])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

RepositoryTopicEdge

Object

An edge in a connection.

Поля для RepositoryTopicEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (RepositoryTopic)

The item at the end of the edge.

StarredRepositoryConnection

Object

The connection type for Repository.

Поля для StarredRepositoryConnection

Имя.Description

edges ([StarredRepositoryEdge])

A list of edges.

isOverLimit (Boolean!)

Is the list of stars for this user truncated? This is true for users that have many stars.

nodes ([Repository])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

StarredRepositoryEdge

Object

Represents a starred repository.

Поля для StarredRepositoryEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (Repository!)

N/A

starredAt (DateTime!)

Identifies when the item was starred.

TagNamePatternParameters

Object

Parameters to be used for the tag_name_pattern rule.

Поля для TagNamePatternParameters

Имя.Description

name (String)

How this rule will appear to users.

negate (Boolean!)

If true, the rule will fail if the pattern matches.

operator (String!)

The operator to use for matching.

pattern (String!)

The pattern to match with.

TeamRepositoryConnection

Object

The connection type for Repository.

Поля для TeamRepositoryConnection

Имя.Description

edges ([TeamRepositoryEdge])

A list of edges.

nodes ([Repository])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

TeamRepositoryEdge

Object

Represents a team repository.

Поля для TeamRepositoryEdge

Имя.Description

cursor (String!)

A cursor for use in pagination.

node (Repository!)

N/A

permission (RepositoryPermission!)

The permission level the team has on the repository.

Topic

Object

A topic aggregates entities that are related to a subject.

Topic Реализует

Поля для Topic

Имя.Description

id (ID!)

The Node ID of the Topic object.

name (String!)

The topic's name.

relatedTopics ([Topic!]!)

A list of related topics, including aliases of this topic, sorted with the most relevant first. Returns up to 10 Topics.

Аргументы для relatedTopics

  • first (Int)

    How many topics to return.

    The default value is 3.

repositories (RepositoryConnection!)

A list of repositories.

Аргументы для repositories

  • affiliations ([RepositoryAffiliation])

    Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.

  • 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.

  • hasIssuesEnabled (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

  • isLocked (Boolean)

    If non-null, filters repositories according to whether they have been locked.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (RepositoryOrder)

    Ordering options for repositories returned from the connection.

  • ownerAffiliations ([RepositoryAffiliation])

    Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.

  • privacy (RepositoryPrivacy)

    If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument.

  • visibility (RepositoryVisibility)

    If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.

stargazerCount (Int!)

Returns a count of how many stargazers there are on this object.

stargazers (StargazerConnection!)

A list of users who have starred this starrable.

Аргументы для stargazers

  • 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.

viewerHasStarred (Boolean!)

Returns a boolean indicating whether the viewing user has starred this starrable.

UpdateParameters

Object

Only allow users with bypass permission to update matching refs.

Поля для UpdateParameters

Имя.Description

updateAllowsFetchAndMerge (Boolean!)

Branch can pull changes from its upstream repository.

Interfaces

RepositoryAuditEntryData

Interface

Metadata for an audit entry with action repo.*.

RepositoryAuditEntryData реализуется с помощью

Поля для RepositoryAuditEntryData

Имя.Description

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.

RepositoryInfo

Interface

A subset of repository info.

RepositoryInfo реализуется с помощью

Поля для RepositoryInfo

Имя.Description

archivedAt (DateTime)

Identifies the date and time when the repository was archived.

createdAt (DateTime!)

Identifies the date and time when the object was created.

description (String)

The description of the repository.

descriptionHTML (HTML!)

The description of the repository rendered to HTML.

forkCount (Int!)

Returns how many forks there are of this repository in the whole network.

hasAnonymousAccessEnabled (Boolean!)

Indicates if the repository has anonymous Git read access feature enabled.

hasDiscussionsEnabled (Boolean!)

Indicates if the repository has the Discussions feature enabled.

hasIssuesEnabled (Boolean!)

Indicates if the repository has issues feature enabled.

hasProjectsEnabled (Boolean!)

Indicates if the repository has the Projects feature enabled.

hasWikiEnabled (Boolean!)

Indicates if the repository has wiki feature enabled.

homepageUrl (URI)

The repository's URL.

isArchived (Boolean!)

Indicates if the repository is unmaintained.

isFork (Boolean!)

Identifies if the repository is a fork.

isInOrganization (Boolean!)

Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.

isLocked (Boolean!)

Indicates if the repository has been locked or not.

isMirror (Boolean!)

Identifies if the repository is a mirror.

isPrivate (Boolean!)

Identifies if the repository is private or internal.

isTemplate (Boolean!)

Identifies if the repository is a template that can be used to generate new repositories.

licenseInfo (License)

The license associated with the repository.

lockReason (RepositoryLockReason)

The reason the repository has been locked.

mirrorUrl (URI)

The repository's original mirror URL.

name (String!)

The name of the repository.

nameWithOwner (String!)

The repository's name with owner.

openGraphImageUrl (URI!)

The image used to represent this repository in Open Graph data.

owner (RepositoryOwner!)

The User owner of the repository.

pushedAt (DateTime)

Identifies the date and time when the repository was last pushed to.

resourcePath (URI!)

The HTTP path for this repository.

shortDescriptionHTML (HTML!)

A description of the repository, rendered to HTML without any links in it.

Аргументы для shortDescriptionHTML

  • limit (Int)

    How many characters to return.

    The default value is 200.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this repository.

usesCustomOpenGraphImage (Boolean!)

Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.

visibility (RepositoryVisibility!)

Indicates the repository's visibility level.

RepositoryNode

Interface

Represents a object that belongs to a repository.

RepositoryNode реализуется с помощью

Поля для RepositoryNode

Имя.Description

repository (Repository!)

The repository associated with this node.

RepositoryOwner

Interface

Represents an owner of a Repository.

RepositoryOwner реализуется с помощью

Поля для RepositoryOwner

Имя.Description

avatarUrl (URI!)

A URL pointing to the owner's public avatar.

Аргументы для avatarUrl

  • size (Int)

    The size of the resulting square image.

id (ID!)

The Node ID of the RepositoryOwner object.

login (String!)

The username used to login.

repositories (RepositoryConnection!)

A list of repositories that the user owns.

Аргументы для repositories

  • affiliations ([RepositoryAffiliation])

    Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.

  • 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.

  • hasIssuesEnabled (Boolean)

    If non-null, filters repositories according to whether they have issues enabled.

  • isArchived (Boolean)

    If non-null, filters repositories according to whether they are archived and not maintained.

  • isFork (Boolean)

    If non-null, filters repositories according to whether they are forks of another repository.

  • isLocked (Boolean)

    If non-null, filters repositories according to whether they have been locked.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (RepositoryOrder)

    Ordering options for repositories returned from the connection.

  • ownerAffiliations ([RepositoryAffiliation])

    Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.

  • privacy (RepositoryPrivacy)

    If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument.

  • visibility (RepositoryVisibility)

    If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument.

repository (Repository)

Find Repository.

Аргументы для repository

  • 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!)

    Name of Repository to find.

resourcePath (URI!)

The HTTP URL for the owner.

url (URI!)

The HTTP URL for the owner.

Enums

CollaboratorAffiliation

Enum

Collaborators affiliation level with a subject.

Значения для CollaboratorAffiliation

Имя.Description
ALL

All collaborators the authenticated user can see.

DIRECT

All collaborators with permissions to an organization-owned subject, regardless of organization membership status.

OUTSIDE

All outside collaborators of an organization-owned subject.

DefaultRepositoryPermissionField

Enum

The possible base permissions for repositories.

Значения для DefaultRepositoryPermissionField

Имя.Description
ADMIN

Can read, write, and administrate repos by default.

NONE

No access.

READ

Can read repos by default.

WRITE

Can read and write repos by default.

LanguageOrderField

Enum

Properties by which language connections can be ordered.

Значения для LanguageOrderField

Имя.Description
SIZE

Order languages by the size of all files containing the language.

MergeCommitMessage

Enum

The possible default commit messages for merges.

Значения для MergeCommitMessage

Имя.Description
BLANK

Default to a blank commit message.

PR_BODY

Default to the pull request's body.

PR_TITLE

Default to the pull request's title.

MergeCommitTitle

Enum

The possible default commit titles for merges.

Значения для MergeCommitTitle

Имя.Description
MERGE_MESSAGE

Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).

PR_TITLE

Default to the pull request's title.

RepoAccessAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoAccessAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepoAddMemberAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoAddMemberAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepoArchivedAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoArchivedAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepoChangeMergeSettingAuditEntryMergeType

Enum

The merge options available for pull requests to this repository.

Значения для RepoChangeMergeSettingAuditEntryMergeType

Имя.Description
MERGE

The pull request is added to the base branch in a merge commit.

REBASE

Commits from the pull request are added onto the base branch individually without a merge commit.

SQUASH

The pull request's commits are squashed into a single commit before they are merged to the base branch.

RepoCreateAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoCreateAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepoDestroyAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoDestroyAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepoRemoveMemberAuditEntryVisibility

Enum

The privacy of a repository.

Значения для RepoRemoveMemberAuditEntryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RepositoryAffiliation

Enum

The affiliation of a user to a repository.

Значения для RepositoryAffiliation

Имя.Description
COLLABORATOR

Repositories that the user has been added to as a collaborator.

ORGANIZATION_MEMBER

Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.

OWNER

Repositories that are owned by the authenticated user.

RepositoryContributionType

Enum

The reason a repository is listed as 'contributed'.

Значения для RepositoryContributionType

Имя.Description
COMMIT

Created a commit.

ISSUE

Created an issue.

PULL_REQUEST

Created a pull request.

PULL_REQUEST_REVIEW

Reviewed a pull request.

REPOSITORY

Created the repository.

RepositoryInvitationOrderField

Enum

Properties by which repository invitation connections can be ordered.

Значения для RepositoryInvitationOrderField

Имя.Description
CREATED_AT

Order repository invitations by creation time.

RepositoryLockReason

Enum

The possible reasons a given repository could be in a locked state.

Значения для RepositoryLockReason

Имя.Description
BILLING

The repository is locked due to a billing related reason.

MIGRATING

The repository is locked due to a migration.

MOVING

The repository is locked due to a move.

RENAME

The repository is locked due to a rename.

TRADE_RESTRICTION

The repository is locked due to a trade controls related reason.

TRANSFERRING_OWNERSHIP

The repository is locked due to an ownership transfer.

RepositoryOrderField

Enum

Properties by which repository connections can be ordered.

Значения для RepositoryOrderField

Имя.Description
CREATED_AT

Order repositories by creation time.

NAME

Order repositories by name.

PUSHED_AT

Order repositories by push time.

STARGAZERS

Order repositories by number of stargazers.

UPDATED_AT

Order repositories by update time.

RepositoryPermission

Enum

The access level to a repository.

Значения для RepositoryPermission

Имя.Description
ADMIN

Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators.

MAINTAIN

Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings.

READ

Can read and clone this repository. Can also open and comment on issues and pull requests.

TRIAGE

Can read and clone this repository. Can also manage issues and pull requests.

WRITE

Can read, clone, and push to this repository. Can also manage issues and pull requests.

RepositoryPrivacy

Enum

The privacy of a repository.

Значения для RepositoryPrivacy

Имя.Description
PRIVATE

Private.

PUBLIC

Public.

RepositoryRuleOrderField

Enum

Properties by which repository rule connections can be ordered.

Значения для RepositoryRuleOrderField

Имя.Description
CREATED_AT

Order repository rules by created time.

TYPE

Order repository rules by type.

UPDATED_AT

Order repository rules by updated time.

RepositoryRulesetBypassActorBypassMode

Enum

The bypass mode for a specific actor on a ruleset.

Значения для RepositoryRulesetBypassActorBypassMode

Имя.Description
ALWAYS

The actor can always bypass rules.

PULL_REQUEST

The actor can only bypass rules via a pull request.

RepositoryRulesetTarget

Enum

The targets supported for rulesets.

Значения для RepositoryRulesetTarget

Имя.Description
BRANCH

Branch.

PUSH

Push.

REPOSITORY

repository.

TAG

Tag.

RepositoryVisibility

Enum

The repository's visibility level.

Значения для RepositoryVisibility

Имя.Description
INTERNAL

The repository is visible only to users in the same enterprise.

PRIVATE

The repository is visible only to those with explicit access.

PUBLIC

The repository is visible to everyone.

RuleEnforcement

Enum

The level of enforcement for a rule or ruleset.

Значения для RuleEnforcement

Имя.Description
ACTIVE

Rules will be enforced.

DISABLED

Do not evaluate or enforce rules.

EVALUATE

Allow admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).

SquashMergeCommitMessage

Enum

The possible default commit messages for squash merges.

Значения для SquashMergeCommitMessage

Имя.Description
BLANK

Default to a blank commit message.

COMMIT_MESSAGES

Default to the branch's commit messages.

PR_BODY

Default to the pull request's body.

SquashMergeCommitTitle

Enum

The possible default commit titles for squash merges.

Значения для SquashMergeCommitTitle

Имя.Description
COMMIT_OR_PR_TITLE

Default to the commit's title (if only one commit) or the pull request's title (when more than one commit).

PR_TITLE

Default to the pull request's title.

Unions

BypassActor

Union

Types that can represent a repository ruleset bypass actor.

Возможные типы для BypassActor

RuleSource

Union

Types which can have RepositoryRule objects.

Возможные типы для RuleSource

Input objects

ArchiveRepositoryInput

Input object

Autogenerated input type of ArchiveRepository.

Поля ввода для ArchiveRepositoryInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryId (ID!)

The ID of the repository to mark as archived.

CloneTemplateRepositoryInput

Input object

Autogenerated input type of CloneTemplateRepository.

Поля ввода для CloneTemplateRepositoryInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A short description of the new repository.

includeAllBranches (Boolean)

Whether to copy all branches from the template to the new repository. Defaults to copying only the default branch of the template.

name (String!)

The name of the new repository.

ownerId (ID!)

The ID of the owner for the new repository.

repositoryId (ID!)

The Node ID of the template repository.

visibility (RepositoryVisibility!)

Indicates the repository's visibility level.

CodeScanningParametersInput

Input 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.

Поля ввода для CodeScanningParametersInput

Имя.Description

codeScanningTools ([CodeScanningToolInput!]!)

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

CodeScanningToolInput

Input object

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

Поля ввода для CodeScanningToolInput

Имя.Description

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.

CreateRepositoryInput

Input object

Autogenerated input type of CreateRepository.

Поля ввода для CreateRepositoryInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A short description of the new repository.

hasIssuesEnabled (Boolean)

Indicates if the repository should have the issues feature enabled.

hasWikiEnabled (Boolean)

Indicates if the repository should have the wiki feature enabled.

homepageUrl (URI)

The URL for a web page about this repository.

name (String!)

The name of the new repository.

ownerId (ID)

The ID of the owner for the new repository.

teamId (ID)

When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository.

template (Boolean)

Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure.

visibility (RepositoryVisibility!)

Indicates the repository's visibility level.

CreateRepositoryRulesetInput

Input object

Autogenerated input type of CreateRepositoryRuleset.

Поля ввода для CreateRepositoryRulesetInput

Имя.Description

bypassActors ([RepositoryRulesetBypassActorInput!])

A list of actors that are allowed to bypass rules in this ruleset.

clientMutationId (String)

A unique identifier for the client performing the mutation.

conditions (RepositoryRuleConditionsInput!)

The set of conditions for this ruleset.

enforcement (RuleEnforcement!)

The enforcement level for this ruleset.

name (String!)

The name of the ruleset.

rules ([RepositoryRuleInput!])

The list of rules for this ruleset.

sourceId (ID!)

The global relay id of the source in which a new ruleset should be created in.

target (RepositoryRulesetTarget)

The target of the ruleset.

DeleteRepositoryRulesetInput

Input object

Autogenerated input type of DeleteRepositoryRuleset.

Поля ввода для DeleteRepositoryRulesetInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryRulesetId (ID!)

The global relay id of the repository ruleset to be deleted.

FileExtensionRestrictionParametersInput

Input object

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

Поля ввода для FileExtensionRestrictionParametersInput

Имя.Description

restrictedFileExtensions ([String!]!)

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

FilePathRestrictionParametersInput

Input object

Prevent commits that include changes in specified file paths from being pushed to the commit graph.

Поля ввода для FilePathRestrictionParametersInput

Имя.Description

restrictedFilePaths ([String!]!)

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

LanguageOrder

Input object

Ordering options for language connections.

Поля ввода для LanguageOrder

Имя.Description

direction (OrderDirection!)

The ordering direction.

field (LanguageOrderField!)

The field to order languages by.

MaxFilePathLengthParametersInput

Input object

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

Поля ввода для MaxFilePathLengthParametersInput

Имя.Description

maxFilePathLength (Int!)

The maximum amount of characters allowed in file paths.

MaxFileSizeParametersInput

Input object

Prevent commits that exceed a specified file size limit from being pushed to the commit graph.

Поля ввода для MaxFileSizeParametersInput

Имя.Description

maxFileSize (Int!)

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

PropertyTargetDefinitionInput

Input object

A property that must match.

Поля ввода для PropertyTargetDefinitionInput

Имя.Description

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.

RepositoryIdConditionTargetInput

Input object

Parameters to be used for the repository_id condition.

Поля ввода для RepositoryIdConditionTargetInput

Имя.Description

repositoryIds ([ID!]!)

One of these repo IDs must match the repo.

RepositoryInvitationOrder

Input object

Ordering options for repository invitation connections.

Поля ввода для RepositoryInvitationOrder

Имя.Description

direction (OrderDirection!)

The ordering direction.

field (RepositoryInvitationOrderField!)

The field to order repository invitations by.

RepositoryNameConditionTargetInput

Input object

Parameters to be used for the repository_name condition.

Поля ввода для RepositoryNameConditionTargetInput

Имя.Description

exclude ([String!]!)

Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.

include ([String!]!)

Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~ALL to include all repositories.

protected (Boolean)

Target changes that match these patterns will be prevented except by those with bypass permissions.

RepositoryOrder

Input object

Ordering options for repository connections.

Поля ввода для RepositoryOrder

Имя.Description

direction (OrderDirection!)

The ordering direction.

field (RepositoryOrderField!)

The field to order repositories by.

RepositoryPropertyConditionTargetInput

Input object

Parameters to be used for the repository_property condition.

Поля ввода для RepositoryPropertyConditionTargetInput

Имя.Description

exclude ([PropertyTargetDefinitionInput!]!)

Array of repository properties that must not match.

include ([PropertyTargetDefinitionInput!]!)

Array of repository properties that must match.

RepositoryRuleConditionsInput

Input object

Specifies the conditions required for a ruleset to evaluate.

Поля ввода для RepositoryRuleConditionsInput

Имя.Description

refName (RefNameConditionTargetInput)

Configuration for the ref_name condition.

repositoryId (RepositoryIdConditionTargetInput)

Configuration for the repository_id condition.

repositoryName (RepositoryNameConditionTargetInput)

Configuration for the repository_name condition.

repositoryProperty (RepositoryPropertyConditionTargetInput)

Configuration for the repository_property condition.

RepositoryRuleInput

Input object

Specifies the attributes for a new or updated rule.

Поля ввода для RepositoryRuleInput

Имя.Description

id (ID)

Optional ID of this rule when updating.

parameters (RuleParametersInput)

The parameters for the rule.

type (RepositoryRuleType!)

The type of rule to create.

RepositoryRuleOrder

Input object

Ordering options for repository rules.

Поля ввода для RepositoryRuleOrder

Имя.Description

direction (OrderDirection!)

The ordering direction.

field (RepositoryRuleOrderField!)

The field to order repository rules by.

RepositoryRulesetBypassActorInput

Input object

Specifies the attributes for a new or updated ruleset bypass actor. Only one of actor_id, repository_role_database_id, organization_admin, or deploy_key should be specified.

Поля ввода для RepositoryRulesetBypassActorInput

Имя.Description

actorId (ID)

For Team and Integration bypasses, the Team or Integration ID.

bypassMode (RepositoryRulesetBypassActorBypassMode!)

The bypass mode for this actor.

deployKey (Boolean)

For deploy key bypasses, true. Can only use ALWAYS as the bypass mode.

enterpriseOwner (Boolean)

For enterprise owner bypasses, true.

organizationAdmin (Boolean)

For organization owner bypasses, true.

repositoryRoleDatabaseId (Int)

For role bypasses, the role database ID.

TagNamePatternParametersInput

Input object

Parameters to be used for the tag_name_pattern rule.

Поля ввода для TagNamePatternParametersInput

Имя.Description

name (String)

How this rule will appear to users.

negate (Boolean)

If true, the rule will fail if the pattern matches.

operator (String!)

The operator to use for matching.

pattern (String!)

The pattern to match with.

UnarchiveRepositoryInput

Input object

Autogenerated input type of UnarchiveRepository.

Поля ввода для UnarchiveRepositoryInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryId (ID!)

The ID of the repository to unarchive.

UpdateParametersInput

Input object

Only allow users with bypass permission to update matching refs.

Поля ввода для UpdateParametersInput

Имя.Description

updateAllowsFetchAndMerge (Boolean!)

Branch can pull changes from its upstream repository.

UpdateRepositoryInput

Input object

Autogenerated input type of UpdateRepository.

Поля ввода для UpdateRepositoryInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A new description for the repository. Pass an empty string to erase the existing description.

hasDiscussionsEnabled (Boolean)

Indicates if the repository should have the discussions feature enabled.

hasIssuesEnabled (Boolean)

Indicates if the repository should have the issues feature enabled.

hasProjectsEnabled (Boolean)

Indicates if the repository should have the project boards feature enabled.

hasWikiEnabled (Boolean)

Indicates if the repository should have the wiki feature enabled.

homepageUrl (URI)

The URL for a web page about this repository. Pass an empty string to erase the existing URL.

name (String)

The new name of the repository.

repositoryId (ID!)

The ID of the repository to update.

template (Boolean)

Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure.

UpdateRepositoryRulesetInput

Input object

Autogenerated input type of UpdateRepositoryRuleset.

Поля ввода для UpdateRepositoryRulesetInput

Имя.Description

bypassActors ([RepositoryRulesetBypassActorInput!])

A list of actors that are allowed to bypass rules in this ruleset.

clientMutationId (String)

A unique identifier for the client performing the mutation.

conditions (RepositoryRuleConditionsInput)

The list of conditions for this ruleset.

enforcement (RuleEnforcement)

The enforcement level for this ruleset.

name (String)

The name of the ruleset.

repositoryRulesetId (ID!)

The global relay id of the repository ruleset to be updated.

rules ([RepositoryRuleInput!])

The list of rules for this ruleset.

target (RepositoryRulesetTarget)

The target of the ruleset.

UpdateRepositoryWebCommitSignoffSettingInput

Input object

Autogenerated input type of UpdateRepositoryWebCommitSignoffSetting.

Поля ввода для UpdateRepositoryWebCommitSignoffSettingInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryId (ID!)

The ID of the repository to update.

webCommitSignoffRequired (Boolean!)

Indicates if the repository should require signoff on web-based commits.

UpdateTopicsInput

Input object

Autogenerated input type of UpdateTopics.

Поля ввода для UpdateTopicsInput

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

repositoryId (ID!)

The Node ID of the repository.

topicNames ([String!]!)

An array of topic names.