The identity and technical contract details declared by the specification.
hook
object
Webhooks for repositories.
13 properties
12 required
link
object
Hypermedia Link
1 property
1 required
push-rule-bypass-request
object
A bypass request made by a user asking to be exempted from a push rule in this repository.
15 properties
pages-source-hash
object
2 properties
2 required
deploy-key
object
An SSH key granting access to a single repository.
10 properties
7 required
contributor-activity
object
Contributor Activity
3 properties
3 required
deployment-status
object
The status of a deployment.
15 properties
11 required
nullable-git-user
objectnull
Metaproperties for Git author/committer information.
3 properties
repository-rule-license-compliance-scanning
object
Enforce any added or changed dependencies to comply with the organization's license policy.
1 property
1 required
repository-rule-copilot-code-review
object
Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and AI credits.
2 properties
1 required
page-build
object
Page Build
8 properties
8 required
branch-restriction-policy
object
Branch Restriction Policy
7 properties
7 required
branch-short
object
Branch Short
3 properties
3 required
webhook-config-content-type
string
The media type used to serialize the payloads. Supported values include json and form. The default is form.
page
object
The configuration for GitHub Pages for a repository.
12 properties
5 required
prevent-self-review
boolean
Whether or not a user who created the job is prevented from approving their own job.
verification
object
5 properties
5 required
ruleset-version-with-state
status-check-policy
object
Status Check Policy
5 properties
5 required
merged-upstream
object
Results of a successful merge upstream request
3 properties
protected-branch-required-status-check
object
Protected Branch Required Status Check
6 properties
2 required
participation-stats
object
2 properties
2 required
security-and-analysis
objectnull
11 properties
repository-rule-update
object
Only allow users with bypass permission to update matching refs.
2 properties
1 required
nullable-team-simple
objectnull
Groups of organization members that gives permissions on specified repositories.
16 properties
11 required
simple-commit-status
object
11 properties
10 required
repository-rule-required-status-checks
object
Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
2 properties
1 required
file-commit
object
File Commit
2 properties
2 required
repository-rule
object
A repository rule.
repository-rule-ruleset-info
object
User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
3 properties
rule-suite-required-status-checks
object
Metadata for a required status checks rule evaluation result.
1 property
hook-delivery-item
object
Delivery made by a webhook, without request and response information.
12 properties
11 required
repository-rule-code-quality
object
Choose which severity levels of code quality results should block pull request merges. When configured, a code quality analysis must be done on the pull reques…
2 properties
1 required
deployment-reviewer-type
string
The type of reviewer.
enterprise-ruleset-conditions-organization-name-target
object
Parameters for an organization name condition
1 property
1 required
content-tree
object
Content Tree
13 properties
10 required
repository-rule-required-signatures
object
Commits pushed to matching refs must have verified signatures.
1 property
1 required
nullable-simple-user
objectnull
A GitHub user.
22 properties
18 required
team
object
Groups of organization members that gives permissions on specified repositories.
18 properties
12 required
webhook-config
object
Configuration object of the webhook
4 properties
repository-rule-creation
object
Only allow users with bypass permission to create matching refs.
1 property
1 required
rule-suite-pull-request
object
Metadata for a pull request rule evaluation result.
1 property
issue-type
objectnull
The type assigned to the issue. This is only present for issues in repositories where issue types are supported.
8 properties
4 required
repository-rule-required-deployments
object
Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
2 properties
1 required
check-immutable-releases
object
Check immutable releases
2 properties
2 required
full-repository
object
Full Repository
105 properties
75 required
pull-request-stack
objectnull
The stack information associated with a pull request.
5 properties
1 required
environment
object
Details of a deployment environment
9 properties
7 required
enterprise-ruleset-conditions-organization-id-target
object
Parameters for an organization ID condition
1 property
1 required
repository-ruleset-conditions
object
Parameters for a repository ruleset ref name condition
1 property
protected-branch-admin-enforced
object
Protected Branch Admin Enforced
2 properties
2 required
deployment-protection-rule
object
Deployment protection rule
4 properties
4 required
repository-rule-params-code-scanning-tool
object
A tool that must provide code scanning results for this rule to pass.
3 properties
3 required
repository-rule-max-file-size
object
Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
2 properties
1 required
repository-rule-commit-author-email-pattern
object
Parameters to be used for the commitauthoremailpattern rule
2 properties
1 required
deployment
object
A request for a specific ref(branch,sha,tag) to be deployed
18 properties
14 required
auto-merge
objectnull
The status of auto merging a pull request.
4 properties
4 required
code-frequency-stat
array
Code Frequency Stat
combined-commit-status
object
Combined Commit Status
7 properties
7 required
branch-with-protection
object
Branch With Protection
8 properties
6 required
webhook-config-insecure-ssl
code-of-conduct
object
Code Of Conduct
5 properties
4 required
repository-rule-committer-email-pattern
object
Parameters to be used for the committeremailpattern rule
2 properties
1 required
contributor
object
Contributor
22 properties
2 required
release-asset
object
Data related to a release.
14 properties
14 required
validation-error
object
Validation Error
3 properties
2 required
repository-ruleset-conditions-repository-name-target
object
Parameters for a repository name condition
1 property
1 required
repository-ruleset-bypass-actor
object
An actor that can bypass rules in a ruleset
3 properties
1 required
repository-rule-detailed
object
A repository rule with ruleset details.
repository-rule-params-actor
object
An actor allowed to dismiss pull request reviews
2 properties
2 required
repository-rule-max-file-path-length
object
Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
2 properties
1 required
repository-invitation
object
Repository invitations let you manage who you collaborate with.
10 properties
9 required
enterprise-ruleset-conditions
object
Conditions for an enterprise ruleset. The conditions object supports either of the following combinations: - organizationid and repositoryname - organizationid…
commit-comparison
object
Commit Comparison
13 properties
12 required
repository-rule-file-path-restriction
object
Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file n…
2 properties
1 required
repository-ruleset-conditions-repository-property-target
object
Parameters for a repository property condition
1 property
1 required
view-traffic
object
View Traffic
3 properties
3 required
wait-timer
integer
The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).
repository-rule-code-coverage
object
Enforce minimum line coverage thresholds on pull requests. This rule evaluates uploaded coverage data but does not wait for coverage uploads. To ensure coverag…
2 properties
1 required
repository-ruleset-conditions-repository-property-spec
object
Parameters for a targeting a repository property
3 properties
2 required
secret-scanning-push-protection-bypass-placeholder-id
string
The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
codeowners-errors
object
A list of errors found in a repo's CODEOWNERS file
1 property
1 required
deployment-branch-policy-settings
objectnull
The type of deployment branch policy for this environment. To allow all branches to deploy, set to null.
2 properties
2 required
repository-hash-algorithm
object
Repository hash algorithm
1 property
1 required
org-ruleset-conditions
object
Conditions for an organization ruleset. The branch and tag rulesets conditions object should contain both repositoryname and refname properties, or both reposi…
deployment-branch-policy-name-pattern
object
1 property
1 required
pages-https-certificate
object
4 properties
3 required
release
object
A release.
25 properties
17 required
repository-rule-workflows
object
Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
2 properties
1 required
enterprise-rules
object
A repository rule.
repository
object
A repository on GitHub.
98 properties
73 required
repository-rule-commit-message-pattern
object
Parameters to be used for the commitmessagepattern rule
2 properties
1 required
repository-rule-branch-name-pattern
object
Parameters to be used for the branchnamepattern rule
2 properties
1 required
commit
object
Commit
11 properties
9 required
tag
object
Tag
5 properties
5 required
nullable-repository
objectnull
A repository on GitHub.
98 properties
73 required
nullable-community-health-file
objectnull
2 properties
2 required
repository-rule-code-scanning
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…
2 properties
1 required
branch-protection
object
Branch Protection
16 properties
nullable-milestone
objectnull
A collection of related issues and pull requests.
16 properties
16 required
simple-user
object
A GitHub user.
22 properties
18 required
nullable-integration
objectnull
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They…
14 properties
11 required
nullable-collaborator
objectnull
Collaborator
23 properties
19 required
nullable-license-simple
objectnull
License Simple
6 properties
5 required
author-association
string
How the author is associated with the repository.
repository-ruleset-conditions-repository-id-target
object
Parameters for a repository ID condition
1 property
1 required
hook-response
object
3 properties
3 required
hook-delivery
object
Delivery made by a webhook.
15 properties
13 required
community-profile
object
Community Profile
6 properties
5 required
activity
object
Activity
8 properties
8 required
webhook-config-secret
string
If provided, the secret will be used as the key to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud…
bypass-response
object
A response made by a delegated bypasser to a bypass request.
4 properties
webhook-config-url
string
The URL to which the payloads will be delivered.
status
object
The status of a commit.
11 properties
11 required
clone-traffic
object
Clone Traffic
3 properties
3 required
page-build-status
object
Page Build Status
2 properties
2 required
check-automated-security-fixes
object
Check Dependabot security updates
2 properties
2 required
repository-rule-params-workflow-file-reference
object
A workflow that must run for this rule to pass
4 properties
2 required
scim-error
object
Scim Error
6 properties
repository-rule-violation-error
object
Repository rule violation was detected
4 properties
topic
object
A topic aggregates entities that are related to a subject.
1 property
1 required
content-file
object
Content File
14 properties
12 required
release-notes-content
object
Generated name and body describing a release
2 properties
2 required
repository-rule-merge-queue
object
Merges must be performed via a merge queue.
2 properties
1 required
org-rules
object
A repository rule.
traffic
object
3 properties
3 required
repository-rule-params-status-check-configuration
object
Required status check
2 properties
1 required
nullable-code-of-conduct-simple
objectnull
Code of Conduct Simple
4 properties
4 required
diff-entry
object
Diff Entry
11 properties
9 required
minimal-repository
object
Minimal Repository
90 properties
46 required
short-branch
object
Short Branch
5 properties
3 required
repository-rule-params-required-reviewer-configuration
object
A reviewing team, and file patterns describing which files they must approve changes to.
3 properties
3 required
protected-branch-pull-request-review
object
Protected Branch Pull Request Review
7 properties
2 required
pages-health-check
object
Pages Health Check Status
2 properties
pages-deployment-status
object
1 property
enterprise-ruleset-conditions-organization-property-spec
object
Parameters for a targeting a organization property
2 properties
2 required
repository-rule-deletion
object
Only allow users with bypass permissions to delete matching refs.
1 property
1 required
deployment-branch-policy-name-pattern-with-type
object
2 properties
1 required
basic-error
object
Basic Error
4 properties
validation-error-simple
object
Validation Error Simple
3 properties
2 required
code-of-conduct-simple
object
Code of Conduct Simple
4 properties
4 required
rule-suites
array
Response
custom-property-value
object
Custom property name and associated value
2 properties
2 required
repository-rule-tag-name-pattern
object
Parameters to be used for the tagnamepattern rule
2 properties
1 required
integration
objectnull
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They…
14 properties
11 required
repository-rule-params-dismissal-restriction
object
Specify people, teams, or apps allowed to dismiss pull request reviews.
2 properties
1 required
repository-rule-params-reviewer
object
A required reviewing team
2 properties
2 required
protected-branch
object
Branch protections protect branches
13 properties
1 required
referrer-traffic
object
Referrer Traffic
3 properties
3 required
repository-rule-non-fast-forward
object
Prevent users with push access from force pushing to refs.
1 property
1 required
repository-rule-file-extension-restriction
object
Prevent commits that include files with specified file extensions from being pushed to the commit graph.
2 properties
1 required
repository-ruleset
object
A set of rules to apply when specified conditions are met.
14 properties
4 required
content-directory
array
A list of directory items
repository-collaborator-permission
object
Repository Collaborator Permission
3 properties
3 required
collaborator
object
Collaborator
23 properties
19 required
content-traffic
object
Content Traffic
4 properties
4 required
repository-rule-required-linear-history
object
Prevent merge commits from being pushed to matching refs.
1 property
1 required
deployment-branch-policy
object
Details of a deployment branch or tag policy.
4 properties
rule-suite
object
Response
12 properties
enterprise-ruleset-conditions-organization-property-target
object
Parameters for a organization property condition
1 property
1 required
empty-object
object
An object without any properties.
repository-rule-pull-request
object
Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
2 properties
1 required
custom-deployment-rule-app
object
A GitHub App that is providing a custom deployment protection rule.
4 properties
4 required
page-deployment
object
The GitHub Pages deployment status.
4 properties
3 required
content-submodule
object
An object describing a submodule
11 properties
11 required
content-symlink
object
An object describing a symlink
11 properties
11 required
repository-rule-enforcement
string
The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate…
commit-activity
object
Commit Activity
3 properties
3 required
pull-request-simple
object
Pull Request Simple
37 properties
31 required
enterprise
object
An enterprise on GitHub.
10 properties
8 required
ruleset-version
object
The historical version of a ruleset
3 properties
3 required
commit-comment
object
Commit Comment
14 properties
13 required
reaction-rollup
object
10 properties
10 required
autolink
object
An autolink reference.
5 properties
4 required
The full machine-readable OpenAPI contract behind this narrative.
Other APIs GitHub Enterprise publishes across the network.