Queries
repository
Lookup a given repository by the owner and repository name.
Type: Repository
Arguments for repository
| Name | Description |
|---|---|
| Follow repository renames. If disabled, a repository referenced by its old name will return an error. The default value is |
| The name of the repository. |
| The login field of a user or organization. |
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Type: RepositoryOwner
Arguments for repositoryOwner
| Name | Description |
|---|---|
| The username to lookup the owner by. |
topic
Look up a topic by name.
Type: Topic
Arguments for topic
| Name | Description |
|---|---|
| The topic's name. |
Mutations
archiveRepository
Marks a repository as archived.
Input fields for archiveRepository
input(ArchiveRepositoryInput!)
Return fields for archiveRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The repository that was marked as archived. |
cloneTemplateRepository
Create a new repository with the same files and directory structure as a template repository.
Input fields for cloneTemplateRepository
input(CloneTemplateRepositoryInput!)
Return fields for cloneTemplateRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new repository. |
createRepository
Create a new repository.
Input fields for createRepository
input(CreateRepositoryInput!)
Return fields for createRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new repository. |
createRepositoryRuleset
Create a repository ruleset.
Input fields for createRepositoryRuleset
input(CreateRepositoryRulesetInput!)
Return fields for createRepositoryRuleset
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created Ruleset. |
deleteRepositoryRuleset
Delete a repository ruleset.
Input fields for deleteRepositoryRuleset
input(DeleteRepositoryRulesetInput!)
Return fields for deleteRepositoryRuleset
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
unarchiveRepository
Unarchives a repository.
Input fields for unarchiveRepository
input(UnarchiveRepositoryInput!)
Return fields for unarchiveRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The repository that was unarchived. |
updateRepository
Update information about a repository.
Input fields for updateRepository
input(UpdateRepositoryInput!)
Return fields for updateRepository
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated repository. |
updateRepositoryRuleset
Update a repository ruleset.
Input fields for updateRepositoryRuleset
input(UpdateRepositoryRulesetInput!)
Return fields for updateRepositoryRuleset
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created Ruleset. |
updateRepositoryWebCommitSignoffSetting
Sets whether contributors are required to sign off on web-based commits for a repository.
Input fields for updateRepositoryWebCommitSignoffSetting
Return fields for updateRepositoryWebCommitSignoffSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A message confirming the result of updating the web commit signoff setting. |
| The updated repository. |
updateTopics
Replaces the repository's topics with the given topics.
Input fields for updateTopics
input(UpdateTopicsInput!)
Return fields for updateTopics
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| Names of the provided topics that are not valid. |
| The updated repository. |
Objects
CodeScanningParameters
Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
Fields for CodeScanningParameters
| Name | Description |
|---|---|
| Tools that must provide code scanning results for this rule to pass. |
CodeScanningTool
A tool that must provide code scanning results for this rule to pass.
Fields for CodeScanningTool
| Name | Description |
|---|---|
| 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.". |
| 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.". |
| The name of a code scanning tool. |
ContributingGuidelines
The Contributing Guidelines for a repository.
Fields for ContributingGuidelines
| Name | Description |
|---|---|
| The body of the Contributing Guidelines. |
| The HTTP path for the Contributing Guidelines. |
| The HTTP URL for the Contributing Guidelines. |
FileExtensionRestrictionParameters
Prevent commits that include files with specified file extensions from being pushed to the commit graph.
Fields for FileExtensionRestrictionParameters
| Name | Description |
|---|---|
| The file extensions that are restricted from being pushed to the commit graph. |
FilePathRestrictionParameters
Prevent commits that include changes in specified file paths from being pushed to the commit graph.
Fields for FilePathRestrictionParameters
| Name | Description |
|---|---|
| The file paths that are restricted from being pushed to the commit graph. |
Language
Represents a given language found in repositories.
Language Implements
Fields for Language
| Name | Description |
|---|---|
| The color defined for the current language. |
| The Node ID of the Language object. |
| The name of the current language. |
LanguageConnection
A list of languages associated with the parent.
Fields for LanguageConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
| The total size in bytes of files written in that language. |
LanguageEdge
Represents the language of a repository.
Fields for LanguageEdge
| Name | Description |
|---|---|
| N/A |
| N/A |
| The number of bytes of code written in the language. |
MaxFilePathLengthParameters
Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.
Fields for MaxFilePathLengthParameters
| Name | Description |
|---|---|
| The maximum amount of characters allowed in file paths. |
MaxFileSizeParameters
Prevent commits that exceed a specified file size limit from being pushed to the commit graph.
Fields for MaxFileSizeParameters
| Name | Description |
|---|---|
| The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). |
PermissionSource
A level of permission and source for a user's access to a repository.
Fields for PermissionSource
| Name | Description |
|---|---|
| The organization the repository belongs to. |
| The level of access this source has granted to the user. |
| The name of the role this source has granted to the user. |
| The source of this permission. |
PropertyTargetDefinition
A property that must match.
Fields for PropertyTargetDefinition
| Name | Description |
|---|---|
| The name of the property. |
| The values to match for. |
| The source of the property. Choose |
RepoAccessAuditEntry
Audit log entry for a repo.access event.
RepoAccessAuditEntry Implements
Fields for RepoAccessAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoAccessAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoAddMemberAuditEntry
Audit log entry for a repo.add_member event.
RepoAddMemberAuditEntry Implements
Fields for RepoAddMemberAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoAddMemberAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoAddTopicAuditEntry
Audit log entry for a repo.add_topic event.
RepoAddTopicAuditEntry Implements
Fields for RepoAddTopicAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoAddTopicAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The name of the topic added to the repository. |
| The name of the topic added to the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
RepoArchivedAuditEntry
Audit log entry for a repo.archived event.
RepoArchivedAuditEntry Implements
Fields for RepoArchivedAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoArchivedAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoChangeMergeSettingAuditEntry
Audit log entry for a repo.change_merge_setting event.
RepoChangeMergeSettingAuditEntry Implements
Fields for RepoChangeMergeSettingAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoChangeMergeSettingAuditEntry object. |
| Whether the change was to enable (true) or disable (false) the merge type. |
| The merge method affected by the change. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
RepoCreateAuditEntry
Audit log entry for a repo.create event.
RepoCreateAuditEntry Implements
Fields for RepoCreateAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The name of the parent repository for this forked repository. |
| The name of the root repository for this network. |
| The Node ID of the RepoCreateAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoDestroyAuditEntry
Audit log entry for a repo.destroy event.
RepoDestroyAuditEntry Implements
Fields for RepoDestroyAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoDestroyAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoRemoveMemberAuditEntry
Audit log entry for a repo.remove_member event.
RepoRemoveMemberAuditEntry Implements
Fields for RepoRemoveMemberAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoRemoveMemberAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
| The visibility of the repository. |
RepoRemoveTopicAuditEntry
Audit log entry for a repo.remove_topic event.
RepoRemoveTopicAuditEntry Implements
Fields for RepoRemoveTopicAuditEntry
| Name | Description |
|---|---|
| The action name. |
| The user who initiated the action. |
| The IP address of the actor. |
| A readable representation of the actor's location. |
| The username of the user who initiated the action. |
| The HTTP path for the actor. |
| The HTTP URL for the actor. |
| The time the action was initiated. |
| The Node ID of the RepoRemoveTopicAuditEntry object. |
| The corresponding operation type for the action. |
| The Organization associated with the Audit Entry. |
| The name of the Organization. |
| The HTTP path for the organization. |
| The HTTP URL for the organization. |
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
| The name of the topic added to the repository. |
| The name of the topic added to the repository. |
| The user affected by the action. |
| For actions involving two users, the actor is the initiator and the user is the affected user. |
| The HTTP path for the user. |
| The HTTP URL for the user. |
Repository
A repository contains the content for a project.
Repository Implements
NodePackageOwnerProjectOwnerProjectV2RecentRepositoryInfoStarrableSubscribableUniformResourceLocatable
Fields for Repository
| Name | Description |
|---|---|
| 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. |
| Identifies the date and time when the repository was archived. |
| A list of users that can be assigned to issues in this repository. Arguments for
|
| Whether or not Auto-merge can be enabled on pull requests in this repository. |
| A list of branch protection rules for this repository. Arguments for
|
| Returns the code of conduct for this repository. |
| Information extracted from the repository's Arguments for
|
| A list of collaborators associated with the repository. Arguments for
|
| A list of commit comments associated with the repository. Arguments for
|
| Returns a list of contact links associated to the repository. |
| Returns the contributing guidelines for this repository. |
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The Ref associated with the repository's default branch. |
| Whether or not branches are automatically deleted when merged in this repository. |
| A list of dependency manifests contained in the repository. Arguments for
|
| A list of deploy keys that are on this repository. Arguments for
|
| Deployments associated with the repository. Arguments for
|
| The description of the repository. |
| The description of the repository rendered to HTML. |
| Returns a single discussion from the current repository by number. Arguments for
|
| A list of discussion categories that are available in the repository. Arguments for
|
| A discussion category by slug. Arguments for
|
| A list of discussions that have been opened in the repository. Arguments for
|
| The number of kilobytes this repository occupies on disk. |
| Returns a single active environment from the current repository by name. Arguments for
|
| A list of environments that are in this repository. Arguments for
|
| Returns how many forks there are of this repository in the whole network. |
| Whether this repository allows forks. |
| A list of direct forked repositories. Arguments for
|
| Indicates if the repository has anonymous Git read access feature enabled. |
| Indicates if the repository has the Discussions feature enabled. |
| Indicates if the repository has issues feature enabled. |
| Indicates if the repository has the Projects feature enabled. |
| Whether vulnerability alerts are enabled for the repository. |
| Indicates if the repository has wiki feature enabled. |
| The repository's URL. |
| The Node ID of the Repository object. |
| Indicates if the repository is unmaintained. |
| Returns true if blank issue creation is allowed. |
| Returns whether or not this repository disabled. |
| Returns whether or not this repository is empty. |
| Identifies if the repository is a fork. |
| Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. |
| Indicates if the repository has been locked or not. |
| Identifies if the repository is a mirror. |
| Identifies if the repository is private or internal. |
| Returns true if this repository has a security policy. |
| Identifies if the repository is a template that can be used to generate new repositories. |
| Is this repository a user configuration repository?. |
| Returns a single issue from the current repository by number. Arguments for
|
| Returns a single issue-like object from the current repository by number. Arguments for
|
| Returns a list of issue templates associated to the repository. |
| Returns a single issue type by name. Arguments for
|
| A list of the repository's issue types. Arguments for
|
| A list of issues that have been opened in the repository. Arguments for
|
| Returns a single label by name. Arguments for
|
| A list of labels associated with the repository. Arguments for
|
| A list containing a breakdown of the language composition of the repository. Arguments for
|
| Get the latest release for the repository if one exists. |
| The license associated with the repository. |
| The reason the repository has been locked. |
| A list of Users that can be mentioned in the context of the repository. Arguments for
|
| Whether or not PRs are merged with a merge commit on this repository. |
| How the default commit message will be generated when merging a pull request. |
| How the default commit title will be generated when merging a pull request. |
| The merge queue for a specified branch, otherwise the default branch if not provided. Arguments for
|
| Returns a single milestone from the current repository by number. Arguments for
|
| A list of milestones associated with the repository. Arguments for
|
| The repository's original mirror URL. |
| The name of the repository. |
| The repository's name with owner. |
| A Git object in the repository. Arguments for
|
| The image used to represent this repository in Open Graph data. |
| The User owner of the repository. |
| A list of packages under the owner. Arguments for
|
| The repository parent, if this is a fork. |
| A list of discussions that have been pinned in this repository. Arguments for
|
| A list of pinned environments for this repository. Arguments for
|
| A list of pinned issues for this repository. Arguments for
|
| Returns information about the availability of certain features and limits based on the repository's billing plan. |
| The primary language of the repository's code. |
| Find project by number. Warning
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. Arguments for
|
| Finds and returns the Project according to the provided Project number. Arguments for
|
| A list of projects under the owner. Warning
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. Arguments for
|
| The HTTP path listing the repository's projects. |
| The HTTP URL listing the repository's projects. |
| List of projects linked to this repository. Arguments for
|
| Returns a single pull request from the current repository by number. Arguments for
|
| Returns a list of pull request templates associated to the repository. |
| A list of pull requests that have been opened in the repository. Arguments for
|
| Identifies the date and time when the repository was last pushed to. |
| Whether or not rebase-merging is enabled on this repository. |
| Recent projects that this user has modified in the context of the owner. Arguments for
|
| Fetch a given ref from the repository. Arguments for
|
| Fetch a list of refs from the repository. Arguments for
|
| Lookup a single release given various criteria. Arguments for
|
| List of releases which are dependent on this repository. Arguments for
|
| A list of applied repository-topic associations for this repository. Arguments for
|
| The HTTP path for this repository. |
| Returns a single ruleset from the current repository by ID. |
| A list of rulesets for this repository. Arguments for
|
| The security policy URL. |
| A description of the repository, rendered to HTML without any links in it. Arguments for
|
| Whether or not squash-merging is enabled on this repository. |
| How the default commit message will be generated when squash merging a pull request. |
| How the default commit title will be generated when squash merging a pull request. |
| Whether a squash merge commit can use the pull request title as default. Warning
|
| The SSH URL to clone this repository. |
| Returns a count of how many stargazers there are on this object. |
| A list of users who have starred this starrable. Arguments for
|
| Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit. Arguments for
|
| Temporary authentication token for cloning this repository. |
| The repository from which this repository was generated, if any. |
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this repository. |
| Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. |
| Indicates whether the viewer has admin permissions on this repository. |
| Can the current viewer create new projects on this owner. Warning
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. |
| Check if the viewer is able to change their subscription status for the repository. |
| Indicates whether the viewer can update the topics of this repository. |
| The last commit email for the viewer. |
| The last used merge method by the viewer or the default for the repository. |
| Returns a boolean indicating whether the viewing user has starred this starrable. |
| The users permission level on the repository. Will return null if authenticated as an GitHub App. |
| A list of emails this viewer can commit with. |
| Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. |
| Indicates the repository's visibility level. |
| Returns a single vulnerability alert from the current repository by number. Arguments for
|
| A list of vulnerability alerts that are on this repository. Arguments for
|
| A list of users watching the repository. |
| Whether contributors are required to sign off on web-based commits in this repository. |
RepositoryCodeowners
Information extracted from a repository's CODEOWNERS file.
Fields for RepositoryCodeowners
| Name | Description |
|---|---|
| Any problems that were encountered while parsing the |
RepositoryCodeownersError
An error in a CODEOWNERS file.
Fields for RepositoryCodeownersError
| Name | Description |
|---|---|
| The column number where the error occurs. |
| A short string describing the type of error. |
| The line number where the error occurs. |
| A complete description of the error, combining information from other fields. |
| The path to the file when the error occurs. |
| The content of the line where the error occurs. |
| A suggestion of how to fix the error. |
RepositoryConnection
A list of repositories owned by the subject.
Fields for RepositoryConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
| The total size in kilobytes of all repositories in the connection. Value will never be larger than max 32-bit signed integer. |
RepositoryContactLink
A repository contact link.
Fields for RepositoryContactLink
| Name | Description |
|---|---|
| The contact link purpose. |
| The contact link name. |
| The contact link URL. |
RepositoryEdge
An edge in a connection.
Fields for RepositoryEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RepositoryIdConditionTarget
Parameters to be used for the repository_id condition.
Fields for RepositoryIdConditionTarget
| Name | Description |
|---|---|
| One of these repo IDs must match the repo. |
RepositoryInvitation
An invitation for a user to be added to a repository.
RepositoryInvitation Implements
Fields for RepositoryInvitation
| Name | Description |
|---|---|
| The email address that received the invitation. |
| The Node ID of the RepositoryInvitation object. |
| The user who received the invitation. |
| The user who created the invitation. |
| The permalink for this repository invitation. |
| The permission granted on this repository by this invitation. |
| The Repository the user is invited to. |
RepositoryInvitationConnection
A list of repository invitations.
Fields for RepositoryInvitationConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryInvitationEdge
An edge in a connection.
Fields for RepositoryInvitationEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RepositoryNameConditionTarget
Parameters to be used for the repository_name condition.
Fields for RepositoryNameConditionTarget
| Name | Description |
|---|---|
| Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. |
| Array of repository names or patterns to include. One of these patterns must
match for the condition to pass. Also accepts |
| Target changes that match these patterns will be prevented except by those with bypass permissions. |
RepositoryPlanFeatures
Information about the availability of features and limits for a repository based on its billing plan.
Fields for RepositoryPlanFeatures
| Name | Description |
|---|---|
| Whether reviews can be automatically requested and enforced with a CODEOWNERS file. |
| Whether pull requests can be created as or converted to draft. |
| Maximum number of users that can be assigned to an issue or pull request. |
| Maximum number of manually-requested reviews on a pull request. |
| Whether teams can be requested to review pull requests. |
RepositoryPropertyConditionTarget
Parameters to be used for the repository_property condition.
Fields for RepositoryPropertyConditionTarget
| Name | Description |
|---|---|
| Array of repository properties that must not match. |
| Array of repository properties that must match. |
RepositoryRule
A repository rule.
RepositoryRule Implements
Fields for RepositoryRule
| Name | Description |
|---|---|
| The Node ID of the RepositoryRule object. |
| The parameters for this rule. |
| The repository ruleset associated with this rule configuration. |
| The type of rule. |
RepositoryRuleConditions
Set of conditions that determine if a ruleset will evaluate.
Fields for RepositoryRuleConditions
| Name | Description |
|---|---|
| Configuration for the ref_name condition. |
| Configuration for the repository_id condition. |
| Configuration for the repository_name condition. |
| Configuration for the repository_property condition. |
RepositoryRuleConnection
The connection type for RepositoryRule.
Fields for RepositoryRuleConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryRuleEdge
An edge in a connection.
Fields for RepositoryRuleEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RepositoryRuleset
A repository ruleset.
RepositoryRuleset Implements
Fields for RepositoryRuleset
| Name | Description |
|---|---|
| The actors that can bypass this ruleset. Arguments for
|
| The set of conditions that must evaluate to true for this ruleset to apply. |
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The enforcement level of this ruleset. |
| The Node ID of the RepositoryRuleset object. |
| Name of the ruleset. |
| List of rules. Arguments for
|
| Source of ruleset. |
| Target of the ruleset. |
| Identifies the date and time when the object was last updated. |
RepositoryRulesetBypassActor
A team or app that has the ability to bypass a rules defined on a ruleset.
RepositoryRulesetBypassActor Implements
Fields for RepositoryRulesetBypassActor
| Name | Description |
|---|---|
| The actor that can bypass rules. |
| The mode for the bypass actor. |
| This actor represents the ability for a deploy key to bypass. |
| This actor represents the ability for an enterprise owner to bypass. |
| The Node ID of the RepositoryRulesetBypassActor object. |
| This actor represents the ability for an organization owner to bypass. |
| If the actor is a repository role, the repository role's ID that can bypass. |
| If the actor is a repository role, the repository role's name that can bypass. |
| Identifies the ruleset associated with the allowed actor. |
RepositoryRulesetBypassActorConnection
The connection type for RepositoryRulesetBypassActor.
Fields for RepositoryRulesetBypassActorConnection
| Name | Description |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryRulesetBypassActorEdge
An edge in a connection.
Fields for RepositoryRulesetBypassActorEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RepositoryRulesetConnection
The connection type for RepositoryRuleset.
Fields for RepositoryRulesetConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryRulesetEdge
An edge in a connection.
Fields for RepositoryRulesetEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RepositoryTopic
A repository-topic connects a repository to a topic.
RepositoryTopic Implements
Fields for RepositoryTopic
| Name | Description |
|---|---|
| The Node ID of the RepositoryTopic object. |
| The HTTP path for this repository-topic. |
| The topic. |
| The HTTP URL for this repository-topic. |
RepositoryTopicConnection
The connection type for RepositoryTopic.
Fields for RepositoryTopicConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
RepositoryTopicEdge
An edge in a connection.
Fields for RepositoryTopicEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
StarredRepositoryConnection
The connection type for Repository.
Fields for StarredRepositoryConnection
| Name | Description |
|---|---|
| A list of edges. |
| Is the list of stars for this user truncated? This is true for users that have many stars. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
StarredRepositoryEdge
Represents a starred repository.
Fields for StarredRepositoryEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| N/A |
| Identifies when the item was starred. |
TagNamePatternParameters
Parameters to be used for the tag_name_pattern rule.
Fields for TagNamePatternParameters
| Name | Description |
|---|---|
| How this rule will appear to users. |
| If true, the rule will fail if the pattern matches. |
| The operator to use for matching. |
| The pattern to match with. |
TeamRepositoryConnection
The connection type for Repository.
Fields for TeamRepositoryConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
TeamRepositoryEdge
Represents a team repository.
Fields for TeamRepositoryEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| N/A |
| The permission level the team has on the repository. |
Topic
A topic aggregates entities that are related to a subject.
Topic Implements
Fields for Topic
| Name | Description |
|---|---|
| The Node ID of the Topic object. |
| The topic's name. |
| A list of related topics, including aliases of this topic, sorted with the most relevant first. Returns up to 10 Topics. Arguments for
|
| A list of repositories. Arguments for
|
| Returns a count of how many stargazers there are on this object. |
| A list of users who have starred this starrable. Arguments for
|
| Returns a boolean indicating whether the viewing user has starred this starrable. |
UpdateParameters
Only allow users with bypass permission to update matching refs.
Fields for UpdateParameters
| Name | Description |
|---|---|
| Branch can pull changes from its upstream repository. |
Interfaces
RepositoryAuditEntryData
Metadata for an audit entry with action repo.*.
RepositoryAuditEntryData is implemented by
PrivateRepositoryForkingDisableAuditEntryPrivateRepositoryForkingEnableAuditEntryRepoConfigDisableAnonymousGitAccessAuditEntryRepoConfigDisableCollaboratorsOnlyAuditEntryRepoConfigDisableContributorsOnlyAuditEntryRepoConfigDisableSockpuppetDisallowedAuditEntryRepoConfigEnableAnonymousGitAccessAuditEntryRepoConfigEnableCollaboratorsOnlyAuditEntryRepoConfigEnableContributorsOnlyAuditEntryRepoConfigEnableSockpuppetDisallowedAuditEntryRepoConfigLockAnonymousGitAccessAuditEntryRepoConfigUnlockAnonymousGitAccessAuditEntryOrgRestoreMemberMembershipRepositoryAuditEntryDataRepoAccessAuditEntryRepoAddMemberAuditEntryRepoAddTopicAuditEntryRepoArchivedAuditEntryRepoChangeMergeSettingAuditEntryRepoCreateAuditEntryRepoDestroyAuditEntryRepoRemoveMemberAuditEntryRepoRemoveTopicAuditEntryTeamAddRepositoryAuditEntryTeamRemoveRepositoryAuditEntry
Fields for RepositoryAuditEntryData
| Name | Description |
|---|---|
| The repository associated with the action. |
| The name of the repository. |
| The HTTP path for the repository. |
| The HTTP URL for the repository. |
RepositoryInfo
A subset of repository info.
RepositoryInfo is implemented by
Fields for RepositoryInfo
| Name | Description |
|---|---|
| Identifies the date and time when the repository was archived. |
| Identifies the date and time when the object was created. |
| The description of the repository. |
| The description of the repository rendered to HTML. |
| Returns how many forks there are of this repository in the whole network. |
| Indicates if the repository has anonymous Git read access feature enabled. |
| Indicates if the repository has the Discussions feature enabled. |
| Indicates if the repository has issues feature enabled. |
| Indicates if the repository has the Projects feature enabled. |
| Indicates if the repository has wiki feature enabled. |
| The repository's URL. |
| Indicates if the repository is unmaintained. |
| Identifies if the repository is a fork. |
| Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. |
| Indicates if the repository has been locked or not. |
| Identifies if the repository is a mirror. |
| Identifies if the repository is private or internal. |
| Identifies if the repository is a template that can be used to generate new repositories. |
| The license associated with the repository. |
| The reason the repository has been locked. |
| The repository's original mirror URL. |
| The name of the repository. |
| The repository's name with owner. |
| The image used to represent this repository in Open Graph data. |
| The User owner of the repository. |
| Identifies the date and time when the repository was last pushed to. |
| The HTTP path for this repository. |
| A description of the repository, rendered to HTML without any links in it. Arguments for
|
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this repository. |
| Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. |
| Indicates the repository's visibility level. |
RepositoryNode
Represents a object that belongs to a repository.
RepositoryNode is implemented by
CommitCommentCommitCommentThreadDependabotUpdateRepositoryVulnerabilityAlertDiscussionDiscussionCategoryPinnedDiscussionIssueIssueCommentPullRequestPullRequestCommitCommentThreadPullRequestReviewPullRequestReviewComment
Fields for RepositoryNode
| Name | Description |
|---|---|
| The repository associated with this node. |
RepositoryOwner
Represents an owner of a Repository.
RepositoryOwner is implemented by
Fields for RepositoryOwner
| Name | Description |
|---|---|
| A URL pointing to the owner's public avatar. Arguments for
|
| The Node ID of the RepositoryOwner object. |
| The username used to login. |
| A list of repositories that the user owns. Arguments for
|
| Find Repository. |
| The HTTP URL for the owner. |
| The HTTP URL for the owner. |
Enums
CollaboratorAffiliation
Collaborators affiliation level with a subject.
Values for CollaboratorAffiliation
| Name | 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
The possible base permissions for repositories.
Values for DefaultRepositoryPermissionField
| Name | 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
Properties by which language connections can be ordered.
Values for LanguageOrderField
| Name | Description |
|---|---|
SIZE | Order languages by the size of all files containing the language. |
MergeCommitMessage
The possible default commit messages for merges.
Values for MergeCommitMessage
| Name | 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
The possible default commit titles for merges.
Values for MergeCommitTitle
| Name | 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
The privacy of a repository.
Values for RepoAccessAuditEntryVisibility
| Name | 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
The privacy of a repository.
Values for RepoAddMemberAuditEntryVisibility
| Name | 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
The privacy of a repository.
Values for RepoArchivedAuditEntryVisibility
| Name | 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
The merge options available for pull requests to this repository.
Values for RepoChangeMergeSettingAuditEntryMergeType
| Name | 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
The privacy of a repository.
Values for RepoCreateAuditEntryVisibility
| Name | 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
The privacy of a repository.
Values for RepoDestroyAuditEntryVisibility
| Name | 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
The privacy of a repository.
Values for RepoRemoveMemberAuditEntryVisibility
| Name | 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
The affiliation of a user to a repository.
Values for RepositoryAffiliation
| Name | 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
The reason a repository is listed as 'contributed'.
Values for RepositoryContributionType
| Name | 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
Properties by which repository invitation connections can be ordered.
Values for RepositoryInvitationOrderField
| Name | Description |
|---|---|
CREATED_AT | Order repository invitations by creation time. |
RepositoryLockReason
The possible reasons a given repository could be in a locked state.
Values for RepositoryLockReason
| Name | 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
Properties by which repository connections can be ordered.
Values for RepositoryOrderField
| Name | 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
The access level to a repository.
Values for RepositoryPermission
| Name | 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
The privacy of a repository.
Values for RepositoryPrivacy
| Name | Description |
|---|---|
PRIVATE | Private. |
PUBLIC | Public. |
RepositoryRuleOrderField
Properties by which repository rule connections can be ordered.
Values for RepositoryRuleOrderField
| Name | Description |
|---|---|
CREATED_AT | Order repository rules by created time. |
TYPE | Order repository rules by type. |
UPDATED_AT | Order repository rules by updated time. |
RepositoryRulesetBypassActorBypassMode
The bypass mode for a specific actor on a ruleset.
Values for RepositoryRulesetBypassActorBypassMode
| Name | Description |
|---|---|
ALWAYS | The actor can always bypass rules. |
PULL_REQUEST | The actor can only bypass rules via a pull request. |
RepositoryRulesetTarget
The targets supported for rulesets.
Values for RepositoryRulesetTarget
| Name | Description |
|---|---|
BRANCH | Branch. |
PUSH | Push. |
REPOSITORY | repository. |
TAG | Tag. |
RepositoryVisibility
The repository's visibility level.
Values for RepositoryVisibility
| Name | 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
The level of enforcement for a rule or ruleset.
Values for RuleEnforcement
| Name | 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 ( |
SquashMergeCommitMessage
The possible default commit messages for squash merges.
Values for SquashMergeCommitMessage
| Name | 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
The possible default commit titles for squash merges.
Values for SquashMergeCommitTitle
| Name | 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
Types that can represent a repository ruleset bypass actor.
Possible types for BypassActor
RuleSource
Types which can have RepositoryRule objects.
Possible types for RuleSource
Input objects
ArchiveRepositoryInput
Autogenerated input type of ArchiveRepository.
Input fields for ArchiveRepositoryInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the repository to mark as archived. |
CloneTemplateRepositoryInput
Autogenerated input type of CloneTemplateRepository.
Input fields for CloneTemplateRepositoryInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A short description of the new repository. |
| Whether to copy all branches from the template to the new repository. Defaults to copying only the default branch of the template. |
| The name of the new repository. |
| The ID of the owner for the new repository. |
| The Node ID of the template repository. |
| Indicates the repository's visibility level. |
CodeScanningParametersInput
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.
Input fields for CodeScanningParametersInput
| Name | Description |
|---|---|
| Tools that must provide code scanning results for this rule to pass. |
CodeScanningToolInput
A tool that must provide code scanning results for this rule to pass.
Input fields for CodeScanningToolInput
| Name | Description |
|---|---|
| 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.". |
| 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.". |
| The name of a code scanning tool. |
CreateRepositoryInput
Autogenerated input type of CreateRepository.
Input fields for CreateRepositoryInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A short description of the new repository. |
| Indicates if the repository should have the issues feature enabled. |
| Indicates if the repository should have the wiki feature enabled. |
| The URL for a web page about this repository. |
| The name of the new repository. |
| The ID of the owner for the new repository. |
| When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository. |
| 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. |
| Indicates the repository's visibility level. |
CreateRepositoryRulesetInput
Autogenerated input type of CreateRepositoryRuleset.
Input fields for CreateRepositoryRulesetInput
| Name | Description |
|---|---|
| A list of actors that are allowed to bypass rules in this ruleset. |
| A unique identifier for the client performing the mutation. |
| The set of conditions for this ruleset. |
| The enforcement level for this ruleset. |
| The name of the ruleset. |
| The list of rules for this ruleset. |
| The global relay id of the source in which a new ruleset should be created in. |
| The target of the ruleset. |
DeleteRepositoryRulesetInput
Autogenerated input type of DeleteRepositoryRuleset.
Input fields for DeleteRepositoryRulesetInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The global relay id of the repository ruleset to be deleted. |
FileExtensionRestrictionParametersInput
Prevent commits that include files with specified file extensions from being pushed to the commit graph.
Input fields for FileExtensionRestrictionParametersInput
| Name | Description |
|---|---|
| The file extensions that are restricted from being pushed to the commit graph. |
FilePathRestrictionParametersInput
Prevent commits that include changes in specified file paths from being pushed to the commit graph.
Input fields for FilePathRestrictionParametersInput
| Name | Description |
|---|---|
| The file paths that are restricted from being pushed to the commit graph. |
LanguageOrder
Ordering options for language connections.
Input fields for LanguageOrder
| Name | Description |
|---|---|
| The ordering direction. |
| The field to order languages by. |
MaxFilePathLengthParametersInput
Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.
Input fields for MaxFilePathLengthParametersInput
| Name | Description |
|---|---|
| The maximum amount of characters allowed in file paths. |
MaxFileSizeParametersInput
Prevent commits that exceed a specified file size limit from being pushed to the commit graph.
Input fields for MaxFileSizeParametersInput
| Name | Description |
|---|---|
| The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). |
PropertyTargetDefinitionInput
A property that must match.
Input fields for PropertyTargetDefinitionInput
| Name | Description |
|---|---|
| The name of the property. |
| The values to match for. |
| The source of the property. Choose |
RepositoryIdConditionTargetInput
Parameters to be used for the repository_id condition.
Input fields for RepositoryIdConditionTargetInput
| Name | Description |
|---|---|
| One of these repo IDs must match the repo. |
RepositoryInvitationOrder
Ordering options for repository invitation connections.
Input fields for RepositoryInvitationOrder
| Name | Description |
|---|---|
| The ordering direction. |
| The field to order repository invitations by. |
RepositoryNameConditionTargetInput
Parameters to be used for the repository_name condition.
Input fields for RepositoryNameConditionTargetInput
| Name | Description |
|---|---|
| Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. |
| Array of repository names or patterns to include. One of these patterns must
match for the condition to pass. Also accepts |
| Target changes that match these patterns will be prevented except by those with bypass permissions. |
RepositoryOrder
Ordering options for repository connections.
Input fields for RepositoryOrder
| Name | Description |
|---|---|
| The ordering direction. |
| The field to order repositories by. |
RepositoryPropertyConditionTargetInput
Parameters to be used for the repository_property condition.
Input fields for RepositoryPropertyConditionTargetInput
| Name | Description |
|---|---|
| Array of repository properties that must not match. |
| Array of repository properties that must match. |
RepositoryRuleConditionsInput
Specifies the conditions required for a ruleset to evaluate.
Input fields for RepositoryRuleConditionsInput
| Name | Description |
|---|---|
| Configuration for the ref_name condition. |
| Configuration for the repository_id condition. |
| Configuration for the repository_name condition. |
| Configuration for the repository_property condition. |
RepositoryRuleInput
Specifies the attributes for a new or updated rule.
Input fields for RepositoryRuleInput
| Name | Description |
|---|---|
| Optional ID of this rule when updating. |
| The parameters for the rule. |
| The type of rule to create. |
RepositoryRuleOrder
Ordering options for repository rules.
Input fields for RepositoryRuleOrder
| Name | Description |
|---|---|
| The ordering direction. |
| The field to order repository rules by. |
RepositoryRulesetBypassActorInput
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.
Input fields for RepositoryRulesetBypassActorInput
| Name | Description |
|---|---|
| For Team and Integration bypasses, the Team or Integration ID. |
| The bypass mode for this actor. |
| For deploy key bypasses, true. Can only use ALWAYS as the bypass mode. |
| For enterprise owner bypasses, true. |
| For organization owner bypasses, true. |
| For role bypasses, the role database ID. |
TagNamePatternParametersInput
Parameters to be used for the tag_name_pattern rule.
Input fields for TagNamePatternParametersInput
| Name | Description |
|---|---|
| How this rule will appear to users. |
| If true, the rule will fail if the pattern matches. |
| The operator to use for matching. |
| The pattern to match with. |
UnarchiveRepositoryInput
Autogenerated input type of UnarchiveRepository.
Input fields for UnarchiveRepositoryInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the repository to unarchive. |
UpdateParametersInput
Only allow users with bypass permission to update matching refs.
Input fields for UpdateParametersInput
| Name | Description |
|---|---|
| Branch can pull changes from its upstream repository. |
UpdateRepositoryInput
Autogenerated input type of UpdateRepository.
Input fields for UpdateRepositoryInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| A new description for the repository. Pass an empty string to erase the existing description. |
| Indicates if the repository should have the discussions feature enabled. |
| Indicates if the repository should have the issues feature enabled. |
| Indicates if the repository should have the project boards feature enabled. |
| Indicates if the repository should have the wiki feature enabled. |
| The URL for a web page about this repository. Pass an empty string to erase the existing URL. |
| The new name of the repository. |
| The ID of the repository to update. |
| 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
Autogenerated input type of UpdateRepositoryRuleset.
Input fields for UpdateRepositoryRulesetInput
| Name | Description |
|---|---|
| A list of actors that are allowed to bypass rules in this ruleset. |
| A unique identifier for the client performing the mutation. |
| The list of conditions for this ruleset. |
| The enforcement level for this ruleset. |
| The name of the ruleset. |
| The global relay id of the repository ruleset to be updated. |
| The list of rules for this ruleset. |
| The target of the ruleset. |
UpdateRepositoryWebCommitSignoffSettingInput
Autogenerated input type of UpdateRepositoryWebCommitSignoffSetting.
Input fields for UpdateRepositoryWebCommitSignoffSettingInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the repository to update. |
| Indicates if the repository should require signoff on web-based commits. |
UpdateTopicsInput
Autogenerated input type of UpdateTopics.
Input fields for UpdateTopicsInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the repository. |
| An array of topic names. |