Skip to content

Integrations

GitHub: Repos

203 GitHub SDK operations with complete input and response references.

Get started · Schemas

OperationTypeScriptPython
Accept a repository invitationrepos.reposAcceptInvitationForAuthenticatedUserrepos.repos_accept_invitation_for_authenticated_user
Add app access restrictionsrepos.reposAddAppAccessRestrictionsrepos.repos_add_app_access_restrictions
Add a repository collaboratorrepos.reposAddCollaboratorrepos.repos_add_collaborator
Add status check contextsrepos.reposAddStatusCheckContextsrepos.repos_add_status_check_contexts
Add team access restrictionsrepos.reposAddTeamAccessRestrictionsrepos.repos_add_team_access_restrictions
Add user access restrictionsrepos.reposAddUserAccessRestrictionsrepos.repos_add_user_access_restrictions
Cancel a GitHub Pages deploymentrepos.reposCancelPagesDeploymentrepos.repos_cancel_pages_deployment
Check if Dependabot security updates are enabled for a repositoryrepos.reposCheckAutomatedSecurityFixesrepos.repos_check_automated_security_fixes
Check if a user is a repository collaboratorrepos.reposCheckCollaboratorrepos.repos_check_collaborator
Check if immutable releases are enabled for a repositoryrepos.reposCheckImmutableReleasesrepos.repos_check_immutable_releases
Check if private vulnerability reporting is enabled for a repositoryrepos.reposCheckPrivateVulnerabilityReportingrepos.repos_check_private_vulnerability_reporting
Check if vulnerability alerts are enabled for a repositoryrepos.reposCheckVulnerabilityAlertsrepos.repos_check_vulnerability_alerts
List CODEOWNERS errorsrepos.reposCodeownersErrorsrepos.repos_codeowners_errors
Compare two commitsrepos.reposCompareCommitsrepos.repos_compare_commits
Create an attestationrepos.reposCreateAttestationrepos.repos_create_attestation
Create an autolink reference for a repositoryrepos.reposCreateAutolinkrepos.repos_create_autolink
Create a commit commentrepos.reposCreateCommitCommentrepos.repos_create_commit_comment
Create commit signature protectionrepos.reposCreateCommitSignatureProtectionrepos.repos_create_commit_signature_protection
Create a commit statusrepos.reposCreateCommitStatusrepos.repos_create_commit_status
Create a deploy keyrepos.reposCreateDeployKeyrepos.repos_create_deploy_key
Create a deploymentrepos.reposCreateDeploymentrepos.repos_create_deployment
Create a deployment branch policyrepos.reposCreateDeploymentBranchPolicyrepos.repos_create_deployment_branch_policy
Create a custom deployment protection rule on an environmentrepos.reposCreateDeploymentProtectionRulerepos.repos_create_deployment_protection_rule
Create a deployment statusrepos.reposCreateDeploymentStatusrepos.repos_create_deployment_status
Create a repository dispatch eventrepos.reposCreateDispatchEventrepos.repos_create_dispatch_event
Create a repository for the authenticated userrepos.reposCreateForAuthenticatedUserrepos.repos_create_for_authenticated_user
Create a forkrepos.reposCreateForkrepos.repos_create_fork
Create an organization repositoryrepos.reposCreateInOrgrepos.repos_create_in_org
Create or update an environmentrepos.reposCreateOrUpdateEnvironmentrepos.repos_create_or_update_environment
Create or update file contentsrepos.reposCreateOrUpdateFileContentsrepos.repos_create_or_update_file_contents
Create an organization repository rulesetrepos.reposCreateOrgRulesetrepos.repos_create_org_ruleset
Create a GitHub Pages deploymentrepos.reposCreatePagesDeploymentrepos.repos_create_pages_deployment
Create a GitHub Pages siterepos.reposCreatePagesSiterepos.repos_create_pages_site
Create a releaserepos.reposCreateReleaserepos.repos_create_release
Create a repository rulesetrepos.reposCreateRepoRulesetrepos.repos_create_repo_ruleset
Create a repository using a templaterepos.reposCreateUsingTemplaterepos.repos_create_using_template
Create a repository webhookrepos.reposCreateWebhookrepos.repos_create_webhook
Create or update custom property values for a repositoryrepos.reposCustomPropertiesForReposCreateOrUpdateRepositoryValuesrepos.repos_custom_properties_for_repos_create_or_update_repository_values
Get all custom property values for a repositoryrepos.reposCustomPropertiesForReposGetRepositoryValuesrepos.repos_custom_properties_for_repos_get_repository_values
Decline a repository invitationrepos.reposDeclineInvitationForAuthenticatedUserrepos.repos_decline_invitation_for_authenticated_user
Delete a repositoryrepos.reposDeleterepos.repos_delete
Delete access restrictionsrepos.reposDeleteAccessRestrictionsrepos.repos_delete_access_restrictions
Delete admin branch protectionrepos.reposDeleteAdminBranchProtectionrepos.repos_delete_admin_branch_protection
Delete an environmentrepos.reposDeleteAnEnvironmentrepos.repos_delete_an_environment
Delete an autolink reference from a repositoryrepos.reposDeleteAutolinkrepos.repos_delete_autolink
Delete branch protectionrepos.reposDeleteBranchProtectionrepos.repos_delete_branch_protection
Delete a commit commentrepos.reposDeleteCommitCommentrepos.repos_delete_commit_comment
Delete commit signature protectionrepos.reposDeleteCommitSignatureProtectionrepos.repos_delete_commit_signature_protection
Delete a deploy keyrepos.reposDeleteDeployKeyrepos.repos_delete_deploy_key
Delete a deploymentrepos.reposDeleteDeploymentrepos.repos_delete_deployment
Delete a deployment branch policyrepos.reposDeleteDeploymentBranchPolicyrepos.repos_delete_deployment_branch_policy
Delete a filerepos.reposDeleteFilerepos.repos_delete_file
Delete a repository invitationrepos.reposDeleteInvitationrepos.repos_delete_invitation
Delete an organization repository rulesetrepos.reposDeleteOrgRulesetrepos.repos_delete_org_ruleset
Delete a GitHub Pages siterepos.reposDeletePagesSiterepos.repos_delete_pages_site
Delete pull request review protectionrepos.reposDeletePullRequestReviewProtectionrepos.repos_delete_pull_request_review_protection
Delete a releaserepos.reposDeleteReleaserepos.repos_delete_release
Delete a release assetrepos.reposDeleteReleaseAssetrepos.repos_delete_release_asset
Delete a repository rulesetrepos.reposDeleteRepoRulesetrepos.repos_delete_repo_ruleset
Delete a repository webhookrepos.reposDeleteWebhookrepos.repos_delete_webhook
Disable Dependabot security updatesrepos.reposDisableAutomatedSecurityFixesrepos.repos_disable_automated_security_fixes
Disable a custom protection rule for an environmentrepos.reposDisableDeploymentProtectionRulerepos.repos_disable_deployment_protection_rule
Disable immutable releasesrepos.reposDisableImmutableReleasesrepos.repos_disable_immutable_releases
Disable private vulnerability reporting for a repositoryrepos.reposDisablePrivateVulnerabilityReportingrepos.repos_disable_private_vulnerability_reporting
Disable vulnerability alertsrepos.reposDisableVulnerabilityAlertsrepos.repos_disable_vulnerability_alerts
Download a repository archive (tar)repos.reposDownloadTarballArchiverepos.repos_download_tarball_archive
Download a repository archive (zip)repos.reposDownloadZipballArchiverepos.repos_download_zipball_archive
Enable Dependabot security updatesrepos.reposEnableAutomatedSecurityFixesrepos.repos_enable_automated_security_fixes
Enable immutable releasesrepos.reposEnableImmutableReleasesrepos.repos_enable_immutable_releases
Enable private vulnerability reporting for a repositoryrepos.reposEnablePrivateVulnerabilityReportingrepos.repos_enable_private_vulnerability_reporting
Enable vulnerability alertsrepos.reposEnableVulnerabilityAlertsrepos.repos_enable_vulnerability_alerts
Generate release notes content for a releaserepos.reposGenerateReleaseNotesrepos.repos_generate_release_notes
Get a repositoryrepos.reposGetrepos.repos_get
Get access restrictionsrepos.reposGetAccessRestrictionsrepos.repos_get_access_restrictions
Get admin branch protectionrepos.reposGetAdminBranchProtectionrepos.repos_get_admin_branch_protection
Get all deployment protection rules for an environmentrepos.reposGetAllDeploymentProtectionRulesrepos.repos_get_all_deployment_protection_rules
List environmentsrepos.reposGetAllEnvironmentsrepos.repos_get_all_environments
Get all status check contextsrepos.reposGetAllStatusCheckContextsrepos.repos_get_all_status_check_contexts
Get all repository topicsrepos.reposGetAllTopicsrepos.repos_get_all_topics
Get apps with access to the protected branchrepos.reposGetAppsWithAccessToProtectedBranchrepos.repos_get_apps_with_access_to_protected_branch
Get an autolink reference of a repositoryrepos.reposGetAutolinkrepos.repos_get_autolink
Get a branchrepos.reposGetBranchrepos.repos_get_branch
Get branch protectionrepos.reposGetBranchProtectionrepos.repos_get_branch_protection
Get rules for a branchrepos.reposGetBranchRulesrepos.repos_get_branch_rules
Get repository clonesrepos.reposGetClonesrepos.repos_get_clones
Get the weekly commit activityrepos.reposGetCodeFrequencyStatsrepos.repos_get_code_frequency_stats
Get repository permissions for a userrepos.reposGetCollaboratorPermissionLevelrepos.repos_get_collaborator_permission_level
Get the combined status for a specific referencerepos.reposGetCombinedStatusForRefrepos.repos_get_combined_status_for_ref
Get a commitrepos.reposGetCommitrepos.repos_get_commit
Get the last year of commit activityrepos.reposGetCommitActivityStatsrepos.repos_get_commit_activity_stats
Get a commit commentrepos.reposGetCommitCommentrepos.repos_get_commit_comment
Get commit signature protectionrepos.reposGetCommitSignatureProtectionrepos.repos_get_commit_signature_protection
Get community profile metricsrepos.reposGetCommunityProfileMetricsrepos.repos_get_community_profile_metrics
Get repository contentrepos.reposGetContentrepos.repos_get_content
Get all contributor commit activityrepos.reposGetContributorsStatsrepos.repos_get_contributors_stats
Get a custom deployment protection rulerepos.reposGetCustomDeploymentProtectionRulerepos.repos_get_custom_deployment_protection_rule
Get a deploy keyrepos.reposGetDeployKeyrepos.repos_get_deploy_key
Get a deploymentrepos.reposGetDeploymentrepos.repos_get_deployment
Get a deployment branch policyrepos.reposGetDeploymentBranchPolicyrepos.repos_get_deployment_branch_policy
Get a deployment statusrepos.reposGetDeploymentStatusrepos.repos_get_deployment_status
Get an environmentrepos.reposGetEnvironmentrepos.repos_get_environment
Get the hash algorithm for a repositoryrepos.reposGetHashAlgorithmrepos.repos_get_hash_algorithm
Get latest Pages buildrepos.reposGetLatestPagesBuildrepos.repos_get_latest_pages_build
Get the latest releaserepos.reposGetLatestReleaserepos.repos_get_latest_release
Get an organization rule suiterepos.reposGetOrgRuleSuiterepos.repos_get_org_rule_suite
List organization rule suitesrepos.reposGetOrgRuleSuitesrepos.repos_get_org_rule_suites
Get an organization repository rulesetrepos.reposGetOrgRulesetrepos.repos_get_org_ruleset
Get all organization repository rulesetsrepos.reposGetOrgRulesetsrepos.repos_get_org_rulesets
Get a GitHub Pages siterepos.reposGetPagesrepos.repos_get_pages
Get GitHub Pages buildrepos.reposGetPagesBuildrepos.repos_get_pages_build
Get the status of a GitHub Pages deploymentrepos.reposGetPagesDeploymentrepos.repos_get_pages_deployment
Get a DNS health check for GitHub Pagesrepos.reposGetPagesHealthCheckrepos.repos_get_pages_health_check
Get the weekly commit countrepos.reposGetParticipationStatsrepos.repos_get_participation_stats
Get pull request review protectionrepos.reposGetPullRequestReviewProtectionrepos.repos_get_pull_request_review_protection
Get the hourly commit count for each dayrepos.reposGetPunchCardStatsrepos.repos_get_punch_card_stats
Get a repository READMErepos.reposGetReadmerepos.repos_get_readme
Get a repository README for a directoryrepos.reposGetReadmeInDirectoryrepos.repos_get_readme_in_directory
Get a releaserepos.reposGetReleaserepos.repos_get_release
Get a release assetrepos.reposGetReleaseAssetrepos.repos_get_release_asset
Get a release by tag namerepos.reposGetReleaseByTagrepos.repos_get_release_by_tag
Get a repository rule suiterepos.reposGetRepoRuleSuiterepos.repos_get_repo_rule_suite
List repository rule suitesrepos.reposGetRepoRuleSuitesrepos.repos_get_repo_rule_suites
Get a repository rulesetrepos.reposGetRepoRulesetrepos.repos_get_repo_ruleset
Get repository ruleset historyrepos.reposGetRepoRulesetHistoryrepos.repos_get_repo_ruleset_history
Get repository ruleset versionrepos.reposGetRepoRulesetVersionrepos.repos_get_repo_ruleset_version
Get all repository rulesetsrepos.reposGetRepoRulesetsrepos.repos_get_repo_rulesets
Get status checks protectionrepos.reposGetStatusChecksProtectionrepos.repos_get_status_checks_protection
Get teams with access to the protected branchrepos.reposGetTeamsWithAccessToProtectedBranchrepos.repos_get_teams_with_access_to_protected_branch
Get top referral pathsrepos.reposGetTopPathsrepos.repos_get_top_paths
Get top referral sourcesrepos.reposGetTopReferrersrepos.repos_get_top_referrers
Get users with access to the protected branchrepos.reposGetUsersWithAccessToProtectedBranchrepos.repos_get_users_with_access_to_protected_branch
Get page viewsrepos.reposGetViewsrepos.repos_get_views
Get a repository webhookrepos.reposGetWebhookrepos.repos_get_webhook
Get a webhook configuration for a repositoryrepos.reposGetWebhookConfigForReporepos.repos_get_webhook_config_for_repo
Get a delivery for a repository webhookrepos.reposGetWebhookDeliveryrepos.repos_get_webhook_delivery
List repository activitiesrepos.reposListActivitiesrepos.repos_list_activities
List attestationsrepos.reposListAttestationsrepos.repos_list_attestations
Get all autolinks of a repositoryrepos.reposListAutolinksrepos.repos_list_autolinks
List branchesrepos.reposListBranchesrepos.repos_list_branches
List branches for HEAD commitrepos.reposListBranchesForHeadCommitrepos.repos_list_branches_for_head_commit
List repository collaboratorsrepos.reposListCollaboratorsrepos.repos_list_collaborators
List commit commentsrepos.reposListCommentsForCommitrepos.repos_list_comments_for_commit
List commit comments for a repositoryrepos.reposListCommitCommentsForReporepos.repos_list_commit_comments_for_repo
List commit statuses for a referencerepos.reposListCommitStatusesForRefrepos.repos_list_commit_statuses_for_ref
List commitsrepos.reposListCommitsrepos.repos_list_commits
List repository contributorsrepos.reposListContributorsrepos.repos_list_contributors
List custom deployment rule integrations available for an environmentrepos.reposListCustomDeploymentRuleIntegrationsrepos.repos_list_custom_deployment_rule_integrations
List deploy keysrepos.reposListDeployKeysrepos.repos_list_deploy_keys
List deployment branch policiesrepos.reposListDeploymentBranchPoliciesrepos.repos_list_deployment_branch_policies
List deployment statusesrepos.reposListDeploymentStatusesrepos.repos_list_deployment_statuses
List deploymentsrepos.reposListDeploymentsrepos.repos_list_deployments
List repositories for the authenticated userrepos.reposListForAuthenticatedUserrepos.repos_list_for_authenticated_user
List organization repositoriesrepos.reposListForOrgrepos.repos_list_for_org
List repositories for a userrepos.reposListForUserrepos.repos_list_for_user
List forksrepos.reposListForksrepos.repos_list_forks
List repository invitationsrepos.reposListInvitationsrepos.repos_list_invitations
List repository invitations for the authenticated userrepos.reposListInvitationsForAuthenticatedUserrepos.repos_list_invitations_for_authenticated_user
List issue types for a repositoryrepos.reposListIssueTypesrepos.repos_list_issue_types
List repository languagesrepos.reposListLanguagesrepos.repos_list_languages
List GitHub Pages buildsrepos.reposListPagesBuildsrepos.repos_list_pages_builds
List public repositoriesrepos.reposListPublicrepos.repos_list_public
List pull requests associated with a commitrepos.reposListPullRequestsAssociatedWithCommitrepos.repos_list_pull_requests_associated_with_commit
List release assetsrepos.reposListReleaseAssetsrepos.repos_list_release_assets
List releasesrepos.reposListReleasesrepos.repos_list_releases
List repository tagsrepos.reposListTagsrepos.repos_list_tags
List repository teamsrepos.reposListTeamsrepos.repos_list_teams
List deliveries for a repository webhookrepos.reposListWebhookDeliveriesrepos.repos_list_webhook_deliveries
List repository webhooksrepos.reposListWebhooksrepos.repos_list_webhooks
Merge a branchrepos.reposMergerepos.repos_merge
Sync a fork branch with the upstream repositoryrepos.reposMergeUpstreamrepos.repos_merge_upstream
Ping a repository webhookrepos.reposPingWebhookrepos.repos_ping_webhook
Redeliver a delivery for a repository webhookrepos.reposRedeliverWebhookDeliveryrepos.repos_redeliver_webhook_delivery
Remove app access restrictionsrepos.reposRemoveAppAccessRestrictionsrepos.repos_remove_app_access_restrictions
Remove a repository collaboratorrepos.reposRemoveCollaboratorrepos.repos_remove_collaborator
Remove status check contextsrepos.reposRemoveStatusCheckContextsrepos.repos_remove_status_check_contexts
Remove status check protectionrepos.reposRemoveStatusCheckProtectionrepos.repos_remove_status_check_protection
Remove team access restrictionsrepos.reposRemoveTeamAccessRestrictionsrepos.repos_remove_team_access_restrictions
Remove user access restrictionsrepos.reposRemoveUserAccessRestrictionsrepos.repos_remove_user_access_restrictions
Rename a branchrepos.reposRenameBranchrepos.repos_rename_branch
Replace all repository topicsrepos.reposReplaceAllTopicsrepos.repos_replace_all_topics
Request a GitHub Pages buildrepos.reposRequestPagesBuildrepos.repos_request_pages_build
Set admin branch protectionrepos.reposSetAdminBranchProtectionrepos.repos_set_admin_branch_protection
Set app access restrictionsrepos.reposSetAppAccessRestrictionsrepos.repos_set_app_access_restrictions
Set status check contextsrepos.reposSetStatusCheckContextsrepos.repos_set_status_check_contexts
Set team access restrictionsrepos.reposSetTeamAccessRestrictionsrepos.repos_set_team_access_restrictions
Set user access restrictionsrepos.reposSetUserAccessRestrictionsrepos.repos_set_user_access_restrictions
Test the push repository webhookrepos.reposTestPushWebhookrepos.repos_test_push_webhook
Transfer a repositoryrepos.reposTransferrepos.repos_transfer
Update a repositoryrepos.reposUpdaterepos.repos_update
Update branch protectionrepos.reposUpdateBranchProtectionrepos.repos_update_branch_protection
Update a commit commentrepos.reposUpdateCommitCommentrepos.repos_update_commit_comment
Update a deployment branch policyrepos.reposUpdateDeploymentBranchPolicyrepos.repos_update_deployment_branch_policy
Update information about a GitHub Pages siterepos.reposUpdateInformationAboutPagesSiterepos.repos_update_information_about_pages_site
Update a repository invitationrepos.reposUpdateInvitationrepos.repos_update_invitation
Update an organization repository rulesetrepos.reposUpdateOrgRulesetrepos.repos_update_org_ruleset
Update pull request review protectionrepos.reposUpdatePullRequestReviewProtectionrepos.repos_update_pull_request_review_protection
Update a releaserepos.reposUpdateReleaserepos.repos_update_release
Update a release assetrepos.reposUpdateReleaseAssetrepos.repos_update_release_asset
Update a repository rulesetrepos.reposUpdateRepoRulesetrepos.repos_update_repo_ruleset
Update status check protectionrepos.reposUpdateStatusCheckProtectionrepos.repos_update_status_check_protection
Update a repository webhookrepos.reposUpdateWebhookrepos.repos_update_webhook
Update a webhook configuration for a repositoryrepos.reposUpdateWebhookConfigForReporepos.repos_update_webhook_config_for_repo
Upload a release assetrepos.reposUploadReleaseAssetrepos.repos_upload_release_asset

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.