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