github
v1.0.6Manage repositories, users, releases, and automate GitHub workflows
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_advisories List Global Advisories
Retrieve global security advisories filtered by various criteria such as identifier, type, ecosystem, and vulnerability metrics. By default, returns only GitHub-reviewed advisories excluding malware.
| Parameter | Type | Description |
|---|---|---|
affects | Filter results to advisories affecting specific packages, optionally with version constraints. Accepts comma-separated values or array format. Maximum 1000 packages per request; use package name alone… | |
cve_id | string | Filter results to a specific Common Vulnerabilities and Exposures (CVE) identifier. |
cwes | Filter results to advisories with specific Common Weakness Enumeration (CWE) identifiers. Accepts comma-separated values or array format. | |
direction | string | Sort results in ascending or descending order. |
ecosystem | string | Filter results to advisories affecting specific package ecosystems. |
epss_percentage | string | Filter results to advisories with an Exploit Prediction Scoring System (EPSS) percentage score matching the specified value, representing the likelihood of exploitation. |
epss_percentile | string | Filter results to advisories with an EPSS percentile score matching the specified value, representing the relative rank of exploitation likelihood compared to other CVEs. |
ghsa_id | string | Filter results to a specific GitHub Security Advisory (GHSA) identifier. |
is_withdrawn | boolean | Filter results to only withdrawn advisories when set to true. |
modified | string | Filter results to advisories updated or published within a specified date or date range using GitHub search syntax. |
type | string | Filter results by advisory type. Reviewed advisories are returned by default; use 'malware' to include malware advisories or 'unreviewed' for community-contributed advisories. |
get_authenticated_app Get Authenticated App
Retrieve the GitHub App associated with the current authentication credentials. Requires JWT authentication and returns app details including the count of associated installations.
get_webhook_config Get Webhook Configuration
Retrieve the webhook configuration for a GitHub App. Requires JWT authentication as the GitHub App to access this endpoint.
list_webhook_deliveries_app List Webhook Deliveries for App
Retrieve a list of webhook deliveries for a GitHub App's configured webhook. Requires JWT authentication as a GitHub App.
get_webhook_delivery_app Get Webhook Delivery
Retrieve a specific webhook delivery record for a GitHub App. Requires JWT authentication as the GitHub App.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the webhook delivery to retrieve. |
redeliver_webhook_delivery_app Redeliver Webhook Delivery
Redeliver a previously failed webhook delivery for a GitHub App. Requires JWT authentication as a GitHub App.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the webhook delivery attempt to redeliver. |
list_installation_requests List Installation Requests
Retrieves all pending installation requests for the authenticated GitHub App. This allows you to see which organizations or users have requested to install your app but haven't completed the installation yet.
list_app_installations List App Installations
Retrieve all installations of the authenticated GitHub App, including their assigned permissions. Requires JWT authentication as the GitHub App.
| Parameter | Type | Description |
|---|---|---|
since | string | Filter results to show only installations updated after the specified timestamp in ISO 8601 format. |
get_app_installation Get App Installation
Retrieve installation details for an authenticated GitHub App using the installation ID. Requires JWT authentication.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the GitHub App installation to retrieve. |
uninstall_app Uninstall App
Uninstall a GitHub App from a user, organization, or enterprise account. Requires JWT authentication as the GitHub App.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the app installation to uninstall. |
suspend_app_installation Suspend App Installation
Suspend a GitHub App installation on a user, organization, or enterprise account, blocking the app from accessing that account's resources and API/webhook events. Requires JWT authentication as the GitHub App.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the app installation to suspend. |
unsuspend_app_installation Unsuspend App Installation
Removes a suspension on a GitHub App installation, allowing it to resume normal operation. Requires JWT authentication as a GitHub App.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the GitHub App installation to unsuspend. |
revoke_app_authorization Revoke App Authorization
Revoke an OAuth or GitHub application's authorization for a specific user. This permanently deletes the application grant and all associated OAuth tokens, removing the application's access to the user's account.
| Parameter | Type | Description |
|---|---|---|
access_token * | string | The OAuth access token for the user whose authorization is being revoked. The grant associated with this token's owner will be deleted. |
client_id * | string | The client ID of the GitHub application whose authorization should be revoked. |
revoke_application_token Revoke Application Token
Revoke a single OAuth access token for a GitHub application. Only the application owner or the token holder can perform this action.
| Parameter | Type | Description |
|---|---|---|
access_token * | string | The OAuth access token to be revoked. This token must be valid and associated with the specified application. |
client_id * | string | The client ID of the GitHub application whose token should be revoked. |
create_scoped_token Create Scoped Token
Create a repository-scoped and/or permission-scoped access token from an existing non-scoped user access token. Specify which repositories the token can access and which permissions are granted.
get_assignment Get Assignment
Retrieve a specific GitHub Classroom assignment by its ID. Only administrators of the classroom containing the assignment can access this operation.
| Parameter | Type | Description |
|---|---|---|
assignment_id * | integer | The unique identifier of the classroom assignment to retrieve. |
list_accepted_assignments List Accepted Assignments
Retrieves all student assignment repositories created by accepting a GitHub Classroom assignment. Only accessible to administrators of the GitHub Classroom.
| Parameter | Type | Description |
|---|---|---|
assignment_id * | integer | The unique identifier of the classroom assignment for which to list accepted student repositories. |
list_assignment_grades List Assignment Grades
Retrieve all grades for a GitHub Classroom assignment. Only accessible to administrators of the GitHub Classroom that owns the assignment.
| Parameter | Type | Description |
|---|---|---|
assignment_id * | integer | The unique identifier of the classroom assignment for which to retrieve grades. |
list_classrooms List Classrooms
Retrieve all GitHub Classroom classrooms where the current user is an administrator. Only classrooms for which the user has admin privileges will be returned.
get_classroom Get Classroom
Retrieve a specific GitHub Classroom by ID. Only returns the classroom if the authenticated user is an administrator of that classroom.
| Parameter | Type | Description |
|---|---|---|
classroom_id * | integer | The unique identifier of the classroom to retrieve. |
list_assignments List Assignments
Retrieve all GitHub Classroom assignments for a specified classroom. Only administrators of the classroom can access this list.
| Parameter | Type | Description |
|---|---|---|
classroom_id * | integer | The unique identifier of the classroom for which to retrieve assignments. |
list_codes_of_conduct List Codes of Conduct
Retrieve all available GitHub codes of conduct. Returns a comprehensive array of conduct guidelines that can be applied to repositories.
get_conduct_code Get Conduct Code
Retrieve detailed information about a specific GitHub code of conduct. Use this to fetch the full content and metadata for a code of conduct by its unique identifier.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier or key of the code of conduct to retrieve. |
get_enterprise_actions_cache_storage_limit Get Enterprise Actions Cache Storage Limit
Retrieve the GitHub Actions cache storage limit for an enterprise. This limit applies to all organizations and repositories within the enterprise and cannot be exceeded by their individual cache storage configurations.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier used to reference the enterprise in API requests. |
list_oidc_custom_property_inclusions List OIDC Custom Property Inclusions for Enterprise
Lists the repository custom properties that are included in OIDC tokens for repository actions within an enterprise. Requires admin:enterprise scope for authentication.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier for the enterprise. |
add_oidc_custom_property Add OIDC Custom Property
Adds a repository custom property to be included in OIDC tokens issued for repository actions within an enterprise. Requires `admin:enterprise` scope.
| Parameter | Type | Description |
|---|---|---|
custom_property_name * | string | The name of the repository custom property to include in the OIDC token for repository actions. |
enterprise * | string | The enterprise slug identifier (URL-friendly name) for which to configure the OIDC custom property inclusion. |
list_code_security_configurations List Code Security Configurations
Lists all code security configurations available in an enterprise. The authenticated user must be an administrator of the enterprise to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier for the enterprise. |
list_enterprise_code_security_default_configurations List Enterprise Code Security Default Configurations
Retrieves the default code security configurations for an enterprise. The authenticated user must be an administrator of the enterprise to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (lowercase with hyphens). This is the URL-friendly version of the enterprise name. |
get_code_security_configuration_enterprise Get Code Security Configuration for Enterprise
Retrieve a specific code security configuration for an enterprise. The authenticated user must be an enterprise administrator to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique numeric identifier of the code security configuration to retrieve. |
enterprise * | string | The enterprise identifier in slug format (lowercase with hyphens). |
delete_code_security_configuration_enterprise Delete Code Security Configuration for Enterprise
Deletes a code security configuration from an enterprise. Repositories attached to the configuration will retain their settings but will no longer be associated with the configuration.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to delete. |
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier for the enterprise. |
attach_code_security_configuration Attach Code Security Configuration
Attach an enterprise code security configuration to repositories within the specified scope. Repositories already attached to a configuration will be re-attached to the provided configuration, with free features enabled if insufficient GHAS licenses are available.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to attach. |
enterprise * | string | The slug version of the enterprise name. |
scope * | string | The scope of repositories to attach the configuration to. Use 'all' to attach to all repositories, or 'all_without_configurations' to attach only to repositories not yet attached to any configuration. |
list_code_security_configuration_repositories List Code Security Configuration Repositories
Lists all repositories associated with a specific enterprise code security configuration. The authenticated user must be an enterprise administrator to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration. This ID specifies which configuration's associated repositories to retrieve. |
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier for the enterprise. |
list_dependabot_alerts List Dependabot Alerts for Enterprise
Lists Dependabot security alerts across repositories in an enterprise. Returns alerts only for organizations where you have owner or security manager permissions.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise slug identifier. |
direction | string | Sort results in ascending or descending order. |
ecosystem | string | Filter alerts by package ecosystem. Specify one or more comma-separated ecosystems to return only matching alerts. |
epss_percentage | string | Filter alerts by CVE Exploit Prediction Scoring System (EPSS) percentage. Supports exact values, comparators (>, <, >=, <=), or ranges (n..n) where n is between 0.0 and 1.0. |
has | Filter alerts by presence of specific attributes. Currently supports 'patch' to filter for alerts with available patches. Multiple filters can be combined to match all criteria. | |
package | string | Filter alerts by package name. Specify one or more comma-separated package names to return only matching alerts. |
scope | string | Filter alerts by dependency scope within the project. |
state | string | Filter alerts by state. Specify one or more comma-separated states to return only matching alerts. |
list_teams_enterprise List Enterprise Teams
Retrieve all teams within an enterprise that the authenticated user has access to. This operation returns a complete list of teams for the specified enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (lowercase, hyphen-separated). This uniquely identifies the enterprise whose teams should be listed. |
create_enterprise_team Create Enterprise Team
Create a new team within an enterprise. The authenticated user must be an owner of the enterprise to perform this action.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name that will contain the new team. |
name * | string | The name of the team to be created. |
description | string | An optional description providing details about the team's purpose or scope. |
group_id | string | The ID of the IdP group to assign team membership with. This enables automatic team membership provisioning through your identity provider. |
organization_selection_type | string | Specifies which organizations in the enterprise should have access to this team. Use 'disabled' to exclude the team from all organizations, 'selected' to assign it to specific organizations, or 'all'… |
list_enterprise_team_members List Enterprise Team Members
Retrieves all members belonging to a specific enterprise team. Use this to view the complete roster of team members within an enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (URL-friendly lowercase name). |
enterprise-team * | string | The enterprise team identifier in slug format (URL-friendly lowercase name) or the numeric team ID. |
add_team_members Add Team Members
Add multiple GitHub users to an enterprise team in bulk. Specify the enterprise and team by their slug identifiers, and provide a list of GitHub usernames to add.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier as a slug (URL-friendly name). |
enterprise-team * | string | The enterprise team identifier as a slug or numeric ID. |
usernames * | array | List of GitHub user handles to add to the team. Order is not significant. Each item should be a valid GitHub username. |
remove_team_members Remove Team Members
Remove multiple members from an enterprise team in a single operation. Specify the enterprise, team, and list of GitHub usernames to be removed.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier as a URL-friendly slug (lowercase, hyphens allowed). |
enterprise-team * | string | The enterprise team identifier as a URL-friendly slug or numeric team ID. |
usernames * | array | Array of GitHub user handles to remove from the team. Order is not significant. Each username should be a valid GitHub account handle. |
check_enterprise_team_membership Check Enterprise Team Membership
Check whether a user is a member of an enterprise team. Returns membership status for the specified user within the enterprise team.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. This is the URL-friendly identifier for the enterprise. |
enterprise-team * | string | The slug version of the enterprise team name, or alternatively the enterprise team ID. This uniquely identifies the team within the enterprise. |
username * | string | The GitHub username (handle) of the user to check membership for. |
add_team_member Add Team Member
Add a user to an enterprise team. The user will gain access to the team's resources and permissions within the enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug identifier for the enterprise organization. |
enterprise-team * | string | The slug identifier or numeric ID for the enterprise team. |
username * | string | The GitHub username handle for the user to add to the team. |
remove_team_member Remove Team Member
Remove a user's membership from an enterprise team. This operation revokes the user's access to the team and its associated resources.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (lowercase with hyphens). |
enterprise-team * | string | The enterprise team identifier in slug format or numeric team ID. |
username * | string | The GitHub username of the user whose team membership should be removed. |
list_organization_assignments List Organization Assignments
Retrieve all organizations assigned to a specific enterprise team. Use this to view which organizations are linked to a team within an enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (URL-friendly name). |
enterprise-team * | string | The enterprise team identifier in slug format or the numeric team ID. |
assign_team_to_organizations Assign Team to Organizations
Assign an enterprise team to multiple organizations. This operation enables bulk assignment of a single team across multiple organizations within an enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (URL-friendly name). |
enterprise-team * | string | The enterprise team identifier in slug format or the numeric team ID. |
organization_slugs * | array | List of organization slugs to assign the team to. Each slug should be the URL-friendly identifier for the target organization. |
unassign_team_from_organizations Unassign Team From Organizations
Remove an enterprise team's assignments from multiple organizations. This operation unassigns the specified team from all provided organizations.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (URL-friendly name). |
enterprise-team * | string | The enterprise team identifier in slug format or the numeric team ID. |
organization_slugs * | array | List of organization slugs to unassign the team from. Order is not significant. Each item should be the organization's slug identifier. |
verify_team_organization_assignment Verify Team Organization Assignment
Verify whether an enterprise team is assigned to a specific organization. Use this to check team-organization relationships within your enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (lowercase, hyphen-separated). This identifies the parent enterprise context. |
enterprise-team * | string | The enterprise team identifier in slug format or UUID. Can be provided as either the team's slug name or its unique identifier. |
org * | string | The organization name to check for team assignment. The lookup is case-insensitive. |
assign_team_to_organization Assign Team to Organization
Assign an enterprise team to an organization, enabling the team to access and manage resources within that organization.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (lowercase, hyphen-separated name). |
enterprise-team * | string | The enterprise team identifier in slug format or numeric ID. The slug is the lowercase, hyphen-separated team name. |
org * | string | The organization name to assign the team to. The name is case-insensitive. |
unassign_team_from_organization Unassign Team From Organization
Remove an enterprise team's assignment from an organization. This operation unlinks the team from the specified organization within the enterprise.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The enterprise identifier in slug format (URL-friendly name). |
enterprise-team * | string | The enterprise team identifier in slug format or the numeric team ID. |
org * | string | The organization name to unassign the team from. The name is case-insensitive. |
get_enterprise_team Get Enterprise Team
Retrieve a specific team within an enterprise using its slug identifier. The team slug is a normalized version of the team name with special characters removed, lowercase conversion, spaces replaced with hyphens, and prefixed with 'ent:'.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. This is the normalized identifier used in the enterprise URL. |
team_slug * | string | The slug of the team name. GitHub generates this by normalizing the team name: converting to lowercase, replacing spaces with hyphens, removing special characters, and prefixing with 'ent:'. |
update_enterprise_team Update Enterprise Team
Update an enterprise team's configuration including description, organization access scope, and IdP group assignment. Requires enterprise owner authentication.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug version of the enterprise name. |
team_slug * | string | The slug of the team name. |
description | string | A new description for the team. |
group_id | string | The ID of the IdP group to assign team membership with. Replaces any existing IdP group assignment or direct members if the team is not currently linked to an IdP group. |
organization_selection_type | string | Specifies which organizations in the enterprise should have access to this team. Use `disabled` to unassign from all organizations, `selected` to assign to specific organizations, or `all` to assign t… |
delete_enterprise_team Delete Enterprise Team
Delete an enterprise team and all associated IdP mappings. The authenticated user must be an enterprise owner to perform this action.
| Parameter | Type | Description |
|---|---|---|
enterprise * | string | The slug identifier for the enterprise containing the team to be deleted. |
team_slug * | string | The slug identifier for the team to be deleted. |
list_events List Public Events
Retrieve a list of public events. Note: This API is not optimized for real-time use cases; event data latency can range from 30 seconds to 6 hours depending on the time of day.
list_feeds List Feeds
Retrieve all available feeds for the authenticated user, including timeline feeds (global, user, organization) and security advisories. Each feed includes a URL that can be used to fetch its contents in JSON or Atom format.
list_gists List Gists
Retrieve gists for the authenticated user, or all public gists if called anonymously. Results can be filtered by last update time.
| Parameter | Type | Description |
|---|---|---|
since | string | Filter results to show only gists last updated after this timestamp in ISO 8601 format. |
create_gist Create Gist
Create a new gist with one or more files. A gist is a simple way to share code snippets and text with others.
| Parameter | Type | Description |
|---|---|---|
files * | object | An object mapping file names to their content. Each file must have a unique name and contain the file content as a string. |
description | string | A brief description of the gist's purpose or content. |
public | string | Whether the gist should be publicly accessible. Accepts boolean values or string representations of boolean values. |
list_public_gists List Public Gists
Retrieve a list of public gists sorted by most recently updated first. Supports pagination to fetch up to 3000 gists total.
| Parameter | Type | Description |
|---|---|---|
since | string | Filter results to show only gists updated after the specified timestamp in ISO 8601 format. |
list_starred_gists List Starred Gists
Retrieve all gists starred by the authenticated user. Results can be filtered to show only gists updated after a specified timestamp.
| Parameter | Type | Description |
|---|---|---|
since | string | Filter results to show only gists last updated after this timestamp in ISO 8601 format. |
get_gist Get Gist
Retrieve a specific gist by its unique identifier. Supports multiple response formats including raw markdown and base64-encoded content.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to retrieve. |
update_gist Update Gist
Update a gist's description and manage its files by updating content, renaming, or deleting files. At least one of description or files must be provided.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to update. |
description | string | A new description for the gist. |
files | object | A mapping of gist files to update, rename, or delete. Each key must match the current filename including extension. To delete a file, set its value to null. To rename a file, include a new filename in… |
delete_gist Delete Gist
Permanently delete a gist by its unique identifier. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to delete. |
list_gist_comments List Gist Comments
Retrieves all comments posted on a specific gist. Supports multiple response formats including raw markdown and base64-encoded content.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist for which to retrieve comments. |
create_gist_comment Create Gist Comment
Add a comment to a gist. The comment text supports markdown formatting and can be up to 65,535 characters.
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment text content. Supports markdown formatting. |
gist_id * | string | The unique identifier of the gist to comment on. |
get_gist_comment Get Gist Comment
Retrieve a specific comment from a gist. Supports multiple media types including raw markdown and base64-encoded content for handling special characters.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to retrieve. |
gist_id * | string | The unique identifier of the gist containing the comment. |
update_gist_comment Update Gist Comment
Updates an existing comment on a gist. The comment text can be up to 65,535 characters and supports markdown formatting.
| Parameter | Type | Description |
|---|---|---|
body * | string | The updated comment text. Supports markdown formatting and can be up to 65,535 characters. |
comment_id * | string | The unique identifier of the comment to update. |
gist_id * | string | The unique identifier of the gist containing the comment to update. |
delete_gist_comment Delete Gist Comment
Delete a specific comment from a gist. The authenticated user must have permission to delete the comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to delete. |
gist_id * | string | The unique identifier of the gist containing the comment to delete. |
list_gist_commits List Gist Commits
Retrieve the commit history for a specific gist, showing all revisions and changes made to the gist over time.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist whose commit history you want to retrieve. |
list_gist_forks List Gist Forks
Retrieve a list of all forks created from a specific gist. This allows you to discover derivative versions and track how a gist has been adapted by other users.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist for which to retrieve forks. |
fork_gist Fork Gist
Create a fork of an existing gist under your account. The forked gist will be an independent copy that you can modify without affecting the original.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to fork. |
check_gist_starred Check Gist Starred
Check whether a specific gist has been starred by the authenticated user. Returns a 204 status if starred, or 404 if not starred.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to check for starred status. |
star_gist Star Gist
Star a gist to save it for quick access. Requires setting the Content-Length header to zero.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to star. |
remove_gist_star Remove Gist Star
Remove a star from a gist, indicating you no longer want to mark it as a favorite. This action is only available for gists you have previously starred.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to unstar. |
get_gist_revision Get Gist Revision
Retrieve a specific revision of a gist by its SHA identifier. Supports multiple media types including raw markdown and base64-encoded content for handling special characters.
| Parameter | Type | Description |
|---|---|---|
gist_id * | string | The unique identifier of the gist to retrieve a revision from. |
sha * | string | The commit SHA that identifies the specific revision of the gist to retrieve. |
list_gitignore_templates List Gitignore Templates
Retrieve all available gitignore templates that can be used when creating a new repository. These templates provide pre-configured ignore patterns for common development environments and frameworks.
get_gitignore_template Get Gitignore Template
Retrieve the content of a gitignore template by name. Supports raw content retrieval via custom media type.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the gitignore template to retrieve (e.g., 'Python', 'Node', 'Java'). Template names are case-sensitive. |
list_installation_repositories List Installation Repositories
List all repositories that this app installation has access to. Returns repositories the authenticated app can interact with based on its installation permissions.
list_issues List Issues
Retrieve issues assigned to the authenticated user across all visible repositories, including owned, member, and organization repositories. Use the filter parameter to customize which issues are returned.
| Parameter | Type | Description |
|---|---|---|
collab | boolean | When enabled, includes issues from repositories where you are a collaborator. |
direction | string | Determines the sort order of results. Use 'asc' for ascending order or 'desc' for descending order. |
filter | string | Specifies which category of issues to return. Use 'assigned' for issues assigned to you, 'created' for issues you created, 'mentioned' for issues mentioning you, 'subscribed' for issues you're subscri… |
labels | string | Filters issues by one or more labels. Provide label names as a comma-separated list to match issues with any of the specified labels. |
orgs | boolean | When enabled, includes issues from organization repositories. |
owned | boolean | When enabled, includes issues from repositories you own. |
pulls | boolean | When enabled, includes pull requests in the results. Note that GitHub treats pull requests as issues in this endpoint. |
since | string | Returns only issues that were last updated after the specified timestamp. Provide the timestamp in ISO 8601 format. |
state | string | Filters issues by their current state. Use 'open' for active issues, 'closed' for resolved issues, or 'all' to include both. |
list_licenses List Licenses
Retrieve the most commonly used open source licenses on GitHub. This helps developers quickly find and apply standard licenses to their repositories.
| Parameter | Type | Description |
|---|---|---|
featured | boolean | Filter results to show only featured licenses. When enabled, returns a curated subset of the most popular licenses. |
get_license Get License
Retrieve detailed information about a specific open source license. This is useful for understanding license terms and requirements when licensing a repository.
| Parameter | Type | Description |
|---|---|---|
license * | string | The license identifier or SPDX license identifier to retrieve information for. |
get_subscription_plan Get Subscription Plan for Account
Retrieve the active subscription plan for a user or organization account on a GitHub App marketplace listing. Returns current subscription status and any pending plan changes scheduled for the next billing cycle.
| Parameter | Type | Description |
|---|---|---|
account_id * | integer | The unique identifier of the user or organization account to retrieve subscription information for. |
list_marketplace_plans List Marketplace Plans
Retrieve all plans associated with your GitHub Marketplace listing. Requires JWT authentication for GitHub Apps or basic authentication for OAuth apps.
get_subscription_plan_stubbed Get Subscription Plan for Account (Stubbed)
Retrieve the active subscription plan for a GitHub account. Returns the current subscription status and any pending plan changes scheduled for the next billing cycle.
| Parameter | Type | Description |
|---|---|---|
account_id * | integer | The unique identifier of the account (user or organization) to check subscription status for. |
list_marketplace_plans_stubbed List Marketplace Plans (Stubbed)
Retrieve all plans associated with your GitHub Marketplace listing. Requires JWT authentication for GitHub Apps or basic authentication with client credentials for OAuth apps.
list_network_events List Network Events
List public events for a network of repositories. Note: This API is not built to serve real-time use cases; event latency can range from 30 seconds to 6 hours depending on the time of day.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_notifications List Notifications
Retrieve all notifications for the authenticated user, sorted by most recent update. Use filters to show only unread notifications or those where you're directly participating.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include notifications marked as read in the results. By default, only unread notifications are returned. |
participating | boolean | Show only notifications where you are directly participating or mentioned, excluding notifications you're merely watching. |
since | string | Return only notifications last updated after this timestamp. Use ISO 8601 format. |
mark_notifications_as_read Mark Notifications as Read
Mark all notifications as read for the authenticated user. For large notification volumes, returns a 202 status and processes asynchronously; use the list notifications endpoint with `all=false` to verify completion.
| Parameter | Type | Description |
|---|---|---|
last_read_at | string | Timestamp marking the last point notifications were checked. Notifications updated after this time will not be marked as read. Omit to mark all notifications as read. Use ISO 8601 format. |
get_notification_thread Get Notification Thread
Retrieve detailed information about a specific notification thread. Use the thread ID from notification list operations to fetch thread-specific data.
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread to retrieve. This ID is returned in the `id` field when listing notifications. |
mark_notification_thread_as_read Mark Notification Thread as Read
Mark a notification thread as read, equivalent to dismissing a notification in your GitHub notification inbox. This updates the thread's read status without deleting it.
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread to mark as read. This ID corresponds to the `id` field returned when retrieving notifications. |
mark_notification_thread_as_done Mark Notification Thread as Done
Mark a notification thread as done, equivalent to archiving a notification in your GitHub notification inbox. This removes the thread from your active notifications.
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread to mark as done. This ID corresponds to the `id` field returned when retrieving notifications. |
get_thread_subscription Get Thread Subscription
Retrieve the subscription status of the authenticated user for a specific notification thread. Returns subscription details if the user is subscribed (e.g., through participation, mentions, or manual subscription).
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread to check subscription status for. |
configure_thread_notification Configure Thread Notification
Configure notification settings for a specific thread. Use this to ignore future notifications, subscribe to threads you're not currently watching, or unsubscribe from previously ignored threads.
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread returned in the `id` field from notification list operations. |
ignored | boolean | Set to true to block all notifications from this thread, or false to receive notifications normally. |
mute_thread_subscription Mute Thread Subscription
Mute all future notifications for a thread until you comment or receive an @mention. Repository watching settings remain unaffected by this operation.
| Parameter | Type | Description |
|---|---|---|
thread_id * | integer | The unique identifier of the notification thread, obtained from the `id` field when retrieving notifications. |
list_organizations List Organizations
Retrieve all organizations ordered by creation date. Pagination is cursor-based using the `since` parameter to fetch subsequent pages via Link headers.
| Parameter | Type | Description |
|---|---|---|
since | integer | Organization ID cursor for pagination. Returns only organizations with an ID greater than this value to fetch the next page of results. |
get_actions_cache_storage_limit Get Actions Cache Storage Limit for Organization
Retrieve the GitHub Actions cache storage limit for an organization. This limit applies to all repositories within the organization and cannot be exceeded by individual repository settings.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
list_dependabot_repository_access List Dependabot Repository Access
Lists repositories that Dependabot has been granted access to within an organization. This allows organization admins to view which repositories Dependabot can access when updating dependencies.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
update_dependabot_repository_access Update Dependabot Repository Access
Updates Dependabot's repository access permissions for an organization by adding and removing repositories from its authorized list. This operation allows organization admins to control which repositories Dependabot can access when managing dependencies.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
repository_ids_to_add | array | List of repository IDs to grant Dependabot access to. Each ID should be a valid repository identifier for the organization. |
repository_ids_to_remove | array | List of repository IDs to revoke Dependabot access from. Each ID should be a valid repository identifier currently in the access list. |
list_organization_budgets List Organization Budgets
Retrieve all budgets configured for an organization. The authenticated user must have organization admin or billing manager permissions. Results are paginated with up to 10 budgets per page.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
scope | string | Filter budgets by their scope type to narrow results to a specific budget category. |
get_budget Get Budget
Retrieve a specific budget for an organization by its ID. The authenticated user must have organization admin or billing manager permissions.
| Parameter | Type | Description |
|---|---|---|
budget_id * | string | The unique identifier of the budget to retrieve. |
org * | string | The organization name. Organization names are case-insensitive. |
update_budget Update Budget
Update an existing budget for an organization. The authenticated user must have organization admin or billing manager permissions.
| Parameter | Type | Description |
|---|---|---|
budget_id * | string | The unique identifier for the budget to update. |
org * | string | The organization name (case-insensitive). |
budget_amount | integer | The budget limit in whole dollars. For license-based products, this represents the number of licenses. |
budget_entity_name | string | The name of the specific entity (organization, repository, or cost center) to which the budget applies. |
budget_product_sku | string | A specific product or SKU identifier to include in the budget scope. |
budget_scope | string | The hierarchical level at which the budget applies. |
budget_type | string | The pricing model type covered by this budget. |
prevent_further_usage | boolean | Whether to block additional spending once the budget limit is exceeded. |
delete_budget Delete Budget
Deletes a budget for an organization. The authenticated user must have organization admin or billing manager permissions.
| Parameter | Type | Description |
|---|---|---|
budget_id * | string | The unique identifier of the budget to delete. |
org * | string | The organization name. Organization names are case-insensitive. |
get_organization_billing_usage Get Organization Billing Usage
Retrieve a detailed billing usage report for an organization. This endpoint requires administrator access and is only available to organizations with the enhanced billing platform enabled.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
day | integer | Filter results to a specific day within the specified or default year and month. Valid range is 1-31. |
month | integer | Filter results to a specific month within the specified or default year. Valid range is 1-12, where 1 represents January and 12 represents December. |
year | integer | Filter results to a specific year. Specify as a four-digit integer representing the year. Defaults to the current year if not provided. |
get_billing_usage_summary Get Billing Usage Summary Report
Retrieve a summary report of billing usage for an organization. This endpoint requires administrator privileges and provides access to usage data from the past 24 months.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
day | integer | Filter results to a specific day. Valid range is 1-31. Requires year and month to be specified or uses the default year and month. |
month | integer | Filter results to a specific month. Valid range is 1-12. Requires year to be specified or uses the default year. |
product | string | Filter results by product name. Case-insensitive. |
sku | string | Filter results by SKU identifier. |
year | integer | Filter results to a specific year. Specify as a four-digit integer representing the year. |
get_organization Get Organization
Retrieve detailed information about an organization, including its plan and security settings. Full details require organization owner privileges or appropriate OAuth/PAT scopes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name to retrieve. The name is case-insensitive. |
update_organization Update Organization
Update an organization's profile, settings, and member permissions. The authenticated user must be an organization owner. Requires `admin:org` or `repo` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
billing_email | string | Billing email address for the organization. This address is not publicly displayed. |
blog | string | The organization's blog or website URL. |
company | string | The company name associated with the organization. |
default_repository_permission | string | Default permission level that members have for organization repositories. |
deploy_keys_enabled_for_repositories | boolean | Whether deploy keys can be added and used for repositories in the organization. |
description | string | A description of the company. Maximum 160 characters. |
has_organization_projects | boolean | Whether the organization can use organization-level projects. |
has_repository_projects | boolean | Whether repositories in the organization can use repository-level projects. |
members_can_create_internal_repositories | boolean | Whether organization members can create internal repositories (visible to all enterprise members). Only applicable for organizations associated with GitHub Enterprise Cloud or GitHub Enterprise Server… |
members_can_create_private_pages | boolean | Whether organization members can create private GitHub Pages sites. Existing published sites are not affected. |
members_can_create_private_repositories | boolean | Whether organization members can create private repositories (visible to members with permission). |
members_can_create_public_pages | boolean | Whether organization members can create public GitHub Pages sites. Existing published sites are not affected. |
members_can_create_public_repositories | boolean | Whether organization members can create public repositories (visible to anyone). |
members_can_fork_private_repositories | boolean | Whether organization members can fork private organization repositories. |
secret_scanning_push_protection_custom_link | string | The URL displayed to contributors who are blocked from pushing a secret, when secret scanning push protection is enabled. |
twitter_username | string | The Twitter username of the company. |
web_commit_signoff_required | boolean | Whether contributors to organization repositories are required to sign off on commits made through GitHub's web interface. |
delete_organization Delete Organization
Permanently deletes an organization and all its associated repositories. The organization name will be unavailable for 90 days following deletion.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name to delete. The name is case-insensitive. |
get_actions_cache_usage_for_org Get Actions Cache Usage for Organization
Retrieve the total GitHub Actions cache usage for an organization. Cache usage data is refreshed approximately every 5 minutes, so values may take at least 5 minutes to reflect recent changes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_actions_cache_usage_by_repository List Actions Cache Usage by Repository
Retrieve GitHub Actions cache usage statistics for all repositories within an organization. Cache usage data is refreshed approximately every 5 minutes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
list_hosted_runners List Hosted Runners for Organization
Lists all GitHub-hosted runners configured in an organization. Requires `manage_runner:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
create_hosted_runner Create Hosted Runner for Organization
Creates a GitHub-hosted runner for an organization with configurable machine size, scaling limits, and optional static IP assignment. Requires `manage_runners:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the runner. Must be 1-64 characters containing only letters (a-z, A-Z), numbers (0-9), periods, hyphens, and underscores. |
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The ID of an existing runner group to add this runner to. |
size * | string | The machine size for the runner. Available sizes can be retrieved via the list hosted runner machine sizes operation. |
enable_static_ip | boolean | Whether to assign a static public IP to this runner. Note that account-level limits apply; check account limits via the get hosted runner limits operation. |
image_gen | boolean | Whether this runner should be used to generate custom images. |
maximum_runners | integer | The maximum number of runners to scale up to. Prevents auto-scaling beyond this limit to control costs. |
list_custom_runner_images List Custom Runner Images for Organization
Retrieve all custom images available for GitHub Actions hosted runners in an organization. Requires `manage_runners:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the custom images to a specific organization. |
get_custom_runner_image Get Custom Runner Image
Retrieve a custom image definition for GitHub Actions Hosted Runners. Requires `manage_runners:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
image_definition_id * | integer | The unique identifier of the custom image definition to retrieve. |
org * | string | The organization name. Case-insensitive identifier for the GitHub organization. |
delete_custom_runner_image Delete Custom Runner Image
Delete a custom image from the organization's hosted runners. Requires `manage_runners:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
image_definition_id * | integer | The unique identifier of the custom image definition to delete. |
org * | string | The organization name. Case-insensitive. |
list_custom_image_versions List Custom Image Versions
Retrieve all versions of a custom image for an organization. Requires `manage_runners:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
image_definition_id * | integer | The unique identifier of the custom image definition whose versions you want to list. |
org * | string | The organization name. The name is not case sensitive. |
get_custom_runner_image_version Get Custom Runner Image Version
Retrieve a specific version of a custom image for GitHub Actions Hosted Runners. Requires the `manage_runners:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
image_definition_id * | integer | The unique identifier of the custom image definition. |
org * | string | The organization name. Case-insensitive. |
version * | string | The semantic version of the custom image in major.minor.patch format. |
delete_custom_image_version Delete Custom Image Version
Delete a specific version of a custom image from an organization's hosted runners. Requires the `manage_runners:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
image_definition_id * | integer | The unique identifier of the custom image definition. |
org * | string | The organization name. Case-insensitive. |
version * | string | The version of the custom image to delete, specified in semantic versioning format (major.minor.patch). |
list_github_owned_runner_images List GitHub-Owned Runner Images
Retrieve the list of GitHub-owned images available for GitHub-hosted runners in an organization. Use this to see which runner images can be used for workflows in the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_partner_runner_images List Partner Runner Images
Retrieve the list of partner images available for GitHub-hosted runners in an organization. This allows you to see which pre-configured runner images are available for use.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
get_hosted_runners_limits Get Hosted Runners Limits
Retrieve the usage limits and quotas for GitHub-hosted runners available to an organization. This includes information about concurrent runner usage and other resource constraints.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_hosted_runner_machine_specs List Hosted Runner Machine Specs
Retrieve the available machine specifications for GitHub-hosted runners in an organization. This includes details about CPU, memory, and other hardware configurations supported for workflow runs.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_hosted_runner_platforms List Hosted Runner Platforms
Retrieve the list of available platforms for GitHub-hosted runners in an organization. Use this to determine which runner platforms can be used for workflows.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
get_hosted_runner Get Hosted Runner
Retrieve details for a specific GitHub-hosted runner configured in an organization. Requires the `manage_runners:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
hosted_runner_id * | integer | The unique identifier of the GitHub-hosted runner to retrieve. |
org * | string | The organization name. Case-insensitive. |
update_hosted_runner Update Hosted Runner
Updates configuration for a GitHub-hosted runner in an organization, including runner group assignment, scaling limits, static IP settings, and machine image specifications. Requires `manage_runners:org` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
hosted_runner_id * | integer | The unique identifier of the GitHub-hosted runner to update. |
org * | string | The organization name. Case-insensitive. |
enable_static_ip | boolean | Whether to assign a static public IP to this runner. Subject to account-level limits; check limits via the hosted-runners limits endpoint. |
image_id | string | The unique identifier of the runner image to deploy. Available images include GitHub-owned, partner, and custom images. |
image_version | string | The version of the runner image to deploy. Only applicable when using custom images. |
maximum_runners | integer | The maximum number of runners to scale up to. Prevents auto-scaling beyond this limit to control costs. |
runner_group_id | integer | The ID of an existing runner group to assign this runner to. |
size | string | The machine size for the runner. Available sizes can be retrieved from the hosted-runners machine-sizes endpoint. |
delete_hosted_runner Delete Hosted Runner
Deletes a GitHub-hosted runner from an organization. This action removes the runner and prevents it from accepting new jobs.
| Parameter | Type | Description |
|---|---|---|
hosted_runner_id * | integer | The unique identifier of the GitHub-hosted runner to delete. |
org * | string | The organization name. The name is not case sensitive. |
list_oidc_custom_property_inclusions_for_org List OIDC Custom Property Inclusions for Organization
Lists the repository custom properties that are included in the OIDC token issued for repository actions within an organization. Requires `read:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the OIDC custom property inclusions. |
add_oidc_custom_property_org Add OIDC Custom Property for Organization
Adds a repository custom property to be included in OIDC tokens issued for repository actions within an organization. Requires `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
custom_property_name * | string | The name of the custom property to include in the OIDC token for repository actions. |
org * | string | The organization name. Case-insensitive. |
list_organization_github_actions_repositories List Organization GitHub Actions Repositories
Lists the selected repositories that are enabled for GitHub Actions within an organization. This endpoint requires the organization's GitHub Actions permission policy to be configured for selected repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_organization_self_hosted_runner_repositories List Organization Self-Hosted Runner Repositories
Lists all repositories within an organization that are permitted to use self-hosted runners. Requires admin:org scope or Actions policies fine-grained permission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
remove_repository_from_self_hosted_runners Remove Repository From Self-Hosted Runners
Remove a repository from the list of repositories allowed to use self-hosted runners in an organization. This prevents the specified repository from accessing organization-level self-hosted runners.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
repository_id * | integer | The unique numeric identifier of the repository to remove from self-hosted runner access. |
list_runner_groups List Runner Groups
Lists all self-hosted runner groups configured in an organization, including those inherited from an enterprise. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
visible_to_repository | string | Filter to return only runner groups that are allowed to be used by a specific repository. |
create_runner_group Create Runner Group
Creates a new self-hosted runner group for an organization, allowing you to manage access to runners across repositories. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the runner group to create. |
org * | string | The organization name. Case-insensitive. |
allows_public_repositories | boolean | Whether public repositories can use runners in this group. |
network_configuration_id | string | The identifier of a hosted compute network configuration to associate with this runner group. |
runners | array | List of runner IDs to add to this runner group upon creation. |
selected_repository_ids | array | List of repository IDs that can access this runner group. Only applicable when visibility is set to 'selected'. |
visibility | string | Controls which repositories can access this runner group. 'all' allows all repositories, 'selected' restricts to specified repositories, and 'private' limits to private repositories only. |
get_runner_group Get Runner Group
Retrieve a specific self-hosted runner group for an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to retrieve. |
update_runner_group Update Runner Group
Update the name and visibility settings of a self-hosted runner group in an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
name * | string | The new name for the runner group. |
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to update. |
allows_public_repositories | boolean | Whether the runner group can be used by public repositories. |
network_configuration_id | string | The identifier of a hosted compute network configuration to associate with this runner group. |
visibility | string | The visibility level of the runner group, determining which repositories can access it. |
delete_runner_group Delete Runner Group
Delete a self-hosted runner group from an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization that owns the runner group. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to delete. |
list_github_hosted_runners_in_group List GitHub Hosted Runners in Group
Lists all GitHub-hosted runners assigned to a specific runner group within an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the runner group to retrieve hosted runners from. |
list_runner_group_repositories List Runner Group Repositories
Lists all repositories that have access to a self-hosted runner group within an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group. |
update_runner_group_repository_access Update Runner Group Repository Access
Updates which repositories in an organization can access a self-hosted runner group. This replaces the entire list of authorized repositories for the specified runner group.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to update. |
selected_repository_ids * | array | An array of repository IDs that should have access to this runner group. Providing an empty array removes access for all repositories. The order of IDs in the array is not significant. |
grant_runner_group_repository_access Grant Runner Group Repository Access
Grants a repository access to a self-hosted runner group in an organization. The runner group must have visibility set to 'selected'. Requires `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to grant access to the runner group. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group. |
revoke_runner_group_repository_access Revoke Runner Group Repository Access
Remove a repository from a self-hosted runner group's access list in an organization. The runner group must have visibility set to 'selected'. Requires `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from the runner group's access list. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group. |
list_runners_in_group List Runners in Group
Lists all self-hosted runners that belong to a specific runner group within an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. This value is case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group. |
update_runner_group_runners Update Runner Group Runners
Replace the list of self-hosted runners assigned to an organization runner group. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to update. |
runners * | array | List of self-hosted runner IDs to assign to the runner group. This replaces any previously assigned runners. Order is not significant. |
add_runner_to_group Add Runner to Group
Adds a self-hosted runner to a runner group within an organization. Requires `admin:org` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group to which the runner will be added. |
runner_id * | integer | The unique identifier of the self-hosted runner to add to the group. |
remove_runner_from_group Remove Runner from Group
Remove a self-hosted runner from an organization's runner group, returning it to the default group. Requires `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_group_id * | integer | The unique identifier of the self-hosted runner group. |
runner_id * | integer | The unique identifier of the self-hosted runner to remove from the group. |
list_organization_runners List Organization Runners
Retrieve all self-hosted runners configured for an organization. Requires admin access to the organization and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the runner list to a specific organization. |
list_runner_applications List Runner Applications for Organization
Lists available runner application binaries that can be downloaded and executed for an organization. Requires admin access to the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the runner applications to a specific organization. |
generate_runner_registration_token Generate Runner Registration Token
Generate a registration token for self-hosted runners in an organization. The token expires after one hour and is used to configure new runners via the config script.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the GitHub organization. |
generate_runner_removal_token Generate Runner Removal Token
Generate a short-lived token for removing a self-hosted runner from an organization. The token expires after one hour and is used with the config script to deregister the runner.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization where the runner will be removed. |
get_runner Get Runner
Retrieve details for a specific self-hosted runner in an organization. Requires admin access to the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to retrieve. |
remove_runner_from_organization Remove Runner from Organization
Permanently remove a self-hosted runner from an organization. Use this endpoint when the runner machine no longer exists or you need to completely deregister it from the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization that owns the runner. |
runner_id * | integer | The unique identifier of the self-hosted runner to remove from the organization. |
list_runner_labels List Runner Labels
Retrieve all labels assigned to a self-hosted runner in an organization. Requires admin access to the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner. |
add_labels_to_runner Add Labels to Self-Hosted Runner
Add custom labels to a self-hosted runner in an organization. Requires admin access to the organization and the `admin:org` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
labels * | array | An array of custom label names to add to the runner. Labels must be unique and non-empty. |
org * | string | The organization name. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to label. |
update_runner_labels Update Runner Labels
Replace all custom labels for a self-hosted runner in an organization. Requires admin access to the organization and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
labels * | array | An array of custom label names to assign to the runner. All previous labels will be replaced. Pass an empty array to remove all custom labels. |
org * | string | The organization name. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to update. |
remove_all_custom_labels_from_runner Remove All Custom Labels From Runner
Remove all custom labels from a self-hosted runner in an organization. The runner will retain its read-only labels after this operation. Requires admin access to the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization that owns the runner. |
runner_id * | integer | The unique identifier of the self-hosted runner from which to remove all custom labels. |
remove_custom_label_from_runner Remove Custom Label from Runner
Remove a custom label from a self-hosted runner in an organization. Returns the remaining labels on the runner after removal. Requires admin access to the organization.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the custom label to remove from the runner. |
org * | string | The organization name. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner. |
list_organization_secrets List Organization Secrets
Retrieve all secrets configured at the organization level without exposing their encrypted values. Requires appropriate authentication scopes and collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. This value is case-insensitive. |
get_organization_public_key Get Organization Public Key
Retrieves the public key for an organization, which is required to encrypt secrets before creating or updating them. The authenticated user must have the appropriate permissions (admin:org scope for OAuth/PAT, or repo scope for private repositories).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
get_organization_secret Get Organization Secret
Retrieve a single organization secret without revealing its encrypted value. The authenticated user must have collaborator access to the repository and appropriate OAuth scopes (admin:org for public repositories, repo for private repositories).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to retrieve. |
create_or_update_organization_secret Create or Update Organization Secret
Create or update an encrypted secret at the organization level, controlling which repositories can access it. The secret value must be encrypted using LibSodium before submission.
| Parameter | Type | Description |
|---|---|---|
key_id * | string | The ID of the public key used to encrypt the secret value. |
org * | string | The organization name (case-insensitive). |
secret_name * | string | The name of the secret to create or update. |
visibility * | string | Controls which organization repositories have access to this secret. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories. |
public_key | string | The base64-encoded public key retrieved from the Get a repository public key endpoint |
secret_value | string | The plaintext secret value to be encrypted |
selected_repository_ids | array | Array of repository IDs that can access the secret. Only applicable when visibility is set to 'selected'. Manage this list using the dedicated repository selection endpoints. |
delete_organization_secret Delete Organization Secret
Deletes a secret from an organization by its name. Requires admin:org scope for OAuth/PAT, or repo scope if the repository is private.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to delete. |
list_organization_secret_repositories List Organization Secret Repositories
Lists all repositories that have been granted access to an organization secret when visibility is set to selected. Requires collaborator access to the repository and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to retrieve repository access for. |
update_organization_secret_repositories Update Organization Secret Repositories
Replace all repositories that can access an organization secret when visibility is set to selected. This operation completely overwrites the existing repository list for the secret.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to update repository access for. |
selected_repository_ids * | array | An array of repository IDs that will have access to the organization secret. This replaces all previously selected repositories. Only applicable when the secret's visibility is set to selected. |
grant_repository_access_to_organization_secret Grant Repository Access to Organization Secret
Grants a repository access to an organization secret that is configured with selected repository visibility. This operation is used to expand which repositories can access a specific organization secret.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to grant access to the secret. |
secret_name * | string | The name of the organization secret to grant access to. |
remove_repository_from_organization_secret Remove Repository from Organization Secret
Remove a repository from an organization secret that has visibility restricted to selected repositories. This operation is used to revoke a repository's access to a shared organization secret.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from the secret's access list. |
secret_name * | string | The name of the organization secret to modify. |
list_organization_variables List Organization Variables
Retrieve all variables defined at the organization level. Authenticated users need collaborator access to manage variables, and the request requires appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is case-insensitive. |
create_organization_variable Create Organization Variable
Create an organization-level variable for use in GitHub Actions workflows. The variable's accessibility is controlled by visibility settings, allowing it to be shared across all repositories, private repositories only, or a specific subset of repositories.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable. This identifier is used to reference the variable in workflows. |
org * | string | The organization name (case-insensitive). |
value * | string | The value assigned to the variable. This can be any string content needed by your workflows. |
visibility * | string | Controls which repositories in the organization can access this variable. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific reposito… |
selected_repository_ids | array | An array of repository IDs that can access this variable. Only applicable when visibility is set to 'selected'. Omit this field for 'all' or 'private' visibility settings. |
get_organization_variable Get Organization Variable
Retrieve a specific variable from an organization. The authenticated user must have collaborator access to the repository, and appropriate OAuth scopes (admin:org for public repositories, repo for private repositories) are required.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable to retrieve. |
org * | string | The organization name. Case-insensitive. |
update_organization_variable Update Organization Variable
Update an organization variable that can be referenced in GitHub Actions workflows. Requires collaborator access to the repository and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable to update. |
org * | string | The organization name (case-insensitive). |
selected_repository_ids | array | An array of repository IDs that can access the variable. Only applicable when visibility is set to 'selected'. |
value | string | The new value for the variable. |
visibility | string | The visibility scope for the variable. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories. |
delete_organization_variable Delete Organization Variable
Delete an organization variable by name. Requires collaborator access to the organization and appropriate OAuth scopes (admin:org for public repositories, repo for private repositories).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the organization variable to delete. |
org * | string | The organization name. Organization names are case-insensitive. |
list_organization_variable_repositories List Organization Variable Repositories
Lists all repositories that have access to a specific organization variable. Use this to view which repositories can use a selected-repository organization variable.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the organization variable. Variable names are case-sensitive. |
org * | string | The organization name. Organization names are case-insensitive. |
update_org_variable_repositories Update Organization Variable Repositories
Replace all repositories that have access to an organization variable. This operation applies only to organization variables with visibility set to `selected`.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the organization variable to update. |
org * | string | The organization name. Case-insensitive. |
selected_repository_ids * | array | An array of repository IDs that will have access to this organization variable. The order of IDs is not significant. Replaces all previously selected repositories. |
add_repository_to_org_variable Add Repository to Organization Variable
Adds a repository to an organization variable that is available to selected repositories. The variable must have its visibility set to 'selected' to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the organization variable to which the repository will be added. |
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to add to the organization variable. |
remove_repository_from_org_variable Remove Repository from Organization Variable
Remove a repository from an organization variable that is available to selected repositories. This operation is used to restrict variable access by removing a specific repository from the variable's selected repositories list.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the organization variable from which to remove the repository. |
org * | string | The organization name. Organization names are case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from the organization variable. |
record_artifact_deployment Record Artifact Deployment
Record or update deployment information for an artifact within an organization. Deployment records are uniquely identified by the combination of logical environment, physical environment, cluster, and deployment name—successive requests with identical identifiers will update the existing record rather than create duplicates.
| Parameter | Type | Description |
|---|---|---|
deployment_name * | string | A unique identifier for this deployment within the cluster. Use the format {namespaceName}-{deploymentName}-{containerName} to distinguish between different namespaces and containers. |
digest * | string | The SHA256 digest of the artifact in hexadecimal format. |
logical_environment * | string | The deployment stage or environment tier (e.g., development, staging, production). |
name * | string | The name of the artifact being deployed. |
org * | string | The organization name that owns the artifact. |
status * | string | The current status of the artifact deployment. |
cluster | string | The Kubernetes cluster or deployment cluster identifier. |
github_repository | string | The GitHub repository name associated with the artifact. Used only when provenance attestations are unavailable; if attestations exist, repository information from the attestation takes precedence. |
physical_environment | string | The geographic region or physical location where the artifact is deployed. |
runtime_risks | array | A list of identified runtime risks or vulnerabilities associated with this deployment. |
tags | object | Key-value pairs for labeling and organizing the deployment record. |
record_cluster_deployments Record Cluster Deployments
Record or update deployment information for a cluster across logical and physical environments. Existing records matching the cluster, logical environment, physical environment, and deployment name are updated; non-matching records are created as new.
| Parameter | Type | Description |
|---|---|---|
cluster * | string | The cluster identifier. |
deployments * | array | An ordered list of deployment records to create or update. Each deployment must include cluster, logical_environment, physical_environment, and deployment_name fields for matching and identification. |
logical_environment * | string | The deployment stage or environment tier (e.g., development, staging, production). |
org * | string | The organization name (case-insensitive). |
physical_environment | string | The geographic region or physical location where the deployment resides. |
register_artifact_storage Register Artifact Storage
Register a metadata storage record for an artifact in an organization's registry. This creates a new storage record for artifacts matching the provided digest and associated with a repository owned by the organization.
| Parameter | Type | Description |
|---|---|---|
digest * | string | The digest of the artifact in the format algorithm:hex-encoded-digest (SHA256 only). |
name * | string | The name of the artifact. |
org * | string | The organization name (case-insensitive). |
registry_url * | string | The base URL of the artifact registry (must use HTTPS). |
github_repository | string | The GitHub repository name associated with the artifact. Use this when provenance attestations are unavailable. The repository must belong to the specified organization. If a provenance attestation ex… |
list_artifact_deployment_records List Artifact Deployment Records
Retrieve deployment records for an artifact's metadata within an organization. This shows the history of where and when the artifact has been deployed.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). This identifies which organization's artifact metadata to query. |
subject_digest * | string | The SHA256 digest of the artifact in the format `sha256:HEX_DIGEST`, where HEX_DIGEST is a 64-character hexadecimal string. |
list_artifact_storage_records List Artifact Storage Records
Retrieve storage records for an artifact by its subject digest within an organization. Results are filtered based on the authenticated user's repository access permissions.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
subject_digest * | string | The SHA256 digest of the artifact's subject in the format sha256:HEX_DIGEST, where HEX_DIGEST is a 64-character hexadecimal string. |
list_attestations_by_digests List Attestations by Digests
Retrieve artifact attestations for multiple subject digests owned by an organization. Results are filtered based on the authenticated user's repository permissions and require the `attestations:read` permission for fine-grained access tokens.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
subject_digests * | array | List of subject digests to fetch attestations for. Each digest identifies an artifact for which attestations will be retrieved. |
predicate_type | string | Optional filter to retrieve attestations matching a specific predicate type. Supports standard types (provenance, sbom, release) or custom freeform text for custom predicate types. |
delete_attestations Delete Attestations
Delete artifact attestations in bulk by specifying either subject digests or attestation IDs. Exactly one of these criteria must be provided in the request.
| Parameter | Type | Description |
|---|---|---|
body * | Request payload containing deletion criteria. Provide either subject_digests (array of digest strings in algorithm:hash format) or attestation_ids (array of numeric identifiers), but not both. | |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the attestations. |
delete_attestation_by_subject_digest Delete Attestation by Subject Digest
Delete an artifact attestation by its subject digest. This operation removes attestation records associated with a specific artifact digest within an organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
subject_digest * | string | The subject digest that uniquely identifies the artifact attestation to delete. |
list_attestation_repositories List Attestation Repositories
List repositories in an organization that have created at least one attested artifact. Results are sorted in ascending order by repository ID.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
predicate_type | string | Filter repositories by attestation predicate type. Accepts standard types (provenance, sbom, release) or custom freeform text for specialized predicate types. |
delete_attestation Delete Attestation
Delete an artifact attestation by ID from an organization's repository. This operation removes the attestation record permanently.
| Parameter | Type | Description |
|---|---|---|
attestation_id * | integer | The unique identifier of the attestation to delete. |
org * | string | The organization name. Organization names are case-insensitive. |
list_attestations_organization List Organization Attestations
Retrieve artifact attestations for a given subject digest across repositories owned by an organization. Results are filtered based on the authenticated user's repository access permissions.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
subject_digest * | string | The attestation subject's SHA256 digest in the format `sha256:HEX_DIGEST`. |
predicate_type | string | Filter attestations by predicate type. Accepts standard types (provenance, sbom, release) or custom freeform text. |
list_blocked_users List Blocked Users
Retrieve a list of all users blocked by an organization. This helps manage organization security and access control policies.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
check_blocked_user Check Blocked User
Check if a user is blocked by an organization. Returns a 204 status if the user is blocked, or 404 if the user is not blocked or has been identified as spam.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub user account handle to check for blocking status. |
unblock_user_organization Unblock User from Organization
Unblock a user from an organization, restoring their access and permissions within that organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
username * | string | The GitHub username handle to unblock from the organization. |
list_campaigns List Organization Campaigns
Retrieve all campaigns for an organization. The authenticated user must be an owner or security manager to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
direction | string | The sort direction for the returned campaigns. |
state | string | Filter campaigns by their current state. If omitted, campaigns in all states are returned. |
create_campaign Create Campaign
Create a security campaign for an organization to track and remediate code scanning alerts. The authenticated user must be an owner or security manager for the organization.
| Parameter | Type | Description |
|---|---|---|
description * | string | A description of the campaign's purpose and scope. |
ends_at * | string | The end date and time of the campaign in ISO 8601 format. The date must be in the future. |
name * | string | The name of the campaign. |
org * | string | The organization name (case-insensitive). |
code_scanning_alerts | array | An array of code scanning alert identifiers to include in this campaign. At least one alert is required if this field is provided. |
contact_link | string | A URI for users to contact regarding the campaign or request assistance. |
generate_issues | boolean | Whether to automatically generate issues for each code scanning alert included in the campaign. |
get_campaign Get Campaign Summary
Retrieve a specific campaign for an organization. The authenticated user must be an owner or security manager for the organization.
| Parameter | Type | Description |
|---|---|---|
campaign_number * | integer | The numeric identifier for the campaign to retrieve. |
org * | string | The organization name. Case-insensitive. |
update_campaign Update Campaign
Update an existing campaign within an organization. Requires owner or security manager permissions.
| Parameter | Type | Description |
|---|---|---|
campaign_number * | integer | The numeric identifier of the campaign to update. |
org * | string | The organization name (case-insensitive). |
contact_link | string | A URI pointing to contact information or resources related to the campaign. |
description | string | A brief description of the campaign. |
ends_at | string | The end date and time of the campaign in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). |
state | string | The campaign status indicating whether it is actively accepting reports or closed. |
delete_campaign Delete Campaign
Permanently delete a campaign from an organization. The authenticated user must have owner or security manager permissions for the organization.
| Parameter | Type | Description |
|---|---|---|
campaign_number * | integer | The numeric identifier of the campaign to delete. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the campaign. |
list_code_scanning_alerts List Code Scanning Alerts for Organization
Lists code scanning alerts for the default branch across all eligible repositories in an organization. Only organization owners and security managers can access this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
assignees | string | Filter alerts by assignees using a comma-separated list of user handles. Use `*` to include alerts with at least one assignee, or `none` for unassigned alerts. |
direction | string | The direction to sort results by. |
state | string | Filter alerts by their current state. Returns only alerts matching the specified state. |
list_code_security_configurations_for_org List Code Security Configurations for Organization
Lists all code security configurations available in an organization. The authenticated user must be an administrator or security manager for the organization to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
target_type | string | Filter configurations by target type. Use 'global' for organization-wide configurations or 'all' to include all configuration types. |
list_default_code_security_configurations List Default Code Security Configurations
Retrieves the default code security configurations for an organization. The authenticated user must be an administrator or security manager to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the request to a specific organization. |
detach_security_configurations Detach Security Configurations
Detach code security configurations from specified repositories. Repositories retain their current settings but are no longer managed by the configuration.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
selected_repository_ids | array | Repository IDs to detach from configurations. Provide an array of up to 250 repository IDs. |
get_code_security_configuration Get Code Security Configuration
Retrieve a specific code security configuration from an organization. The authenticated user must be an administrator or security manager for the organization.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to retrieve. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the code security configuration. |
update_code_security_configuration Update Code Security Configuration
Update a code security configuration for an organization. Allows administrators and security managers to modify enablement status of various security features and enforcement policies.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to update. |
org * | string | The organization name. Case-insensitive. |
code_scanning_default_setup | string | The enablement status of code scanning default setup. |
code_scanning_delegated_alert_dismissal | string | The enablement status of code scanning delegated alert dismissal. |
code_security | string | The enablement status of GitHub Code Security features. |
dependabot_alerts | string | The enablement status of Dependabot alerts. |
dependabot_delegated_alert_dismissal | string | The enablement status of Dependabot delegated alert dismissal. Requires Dependabot alerts to be enabled. |
dependabot_security_updates | string | The enablement status of Dependabot security updates. |
dependency_graph | string | The enablement status of Dependency Graph. |
dependency_graph_autosubmit_action | string | The enablement status of automatic dependency submission. |
description | string | A description of the code security configuration. |
enforcement | string | The enforcement status for the security configuration. Enforced configurations are applied to all repositories in the organization. |
private_vulnerability_reporting | string | The enablement status of private vulnerability reporting. |
reviewers | array | The bypass reviewers for secret scanning delegated bypass. Array of reviewer identifiers. |
secret_scanning | string | The enablement status of secret scanning. |
secret_scanning_delegated_alert_dismissal | string | The enablement status of secret scanning delegated alert dismissal. |
secret_scanning_delegated_bypass | string | The enablement status of secret scanning delegated bypass. |
secret_scanning_extended_metadata | string | The enablement status of secret scanning extended metadata. |
secret_scanning_generic_secrets | string | The enablement status of Copilot secret scanning for generic secrets. |
secret_scanning_non_provider_patterns | string | The enablement status of secret scanning non-provider patterns. |
secret_scanning_push_protection | string | The enablement status of secret scanning push protection. |
secret_scanning_validity_checks | string | The enablement status of secret scanning validity checks. |
delete_code_security_configuration Delete Code Security Configuration
Delete a code security configuration from an organization. Repositories currently attached to the configuration will retain their settings but will no longer be associated with it.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to delete. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the configuration. |
attach_security_configuration Attach Security Configuration
Attach a code security configuration to repositories in an organization. Repositories already attached to a configuration will be re-attached to the specified configuration, with only free features enabled if insufficient GHAS licenses are available.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to attach. |
org * | string | The organization name. Case-insensitive. |
scope * | string | The scope of repositories to attach the configuration to. Use 'selected' to attach only to specific repositories identified by their IDs. |
selected_repository_ids | array | An array of repository IDs to attach the configuration to. Required only when scope is set to 'selected'. Order is not significant. |
list_security_configuration_repositories List Security Configuration Repositories
Lists all repositories associated with a code security configuration within an organization. The authenticated user must have administrator or security manager permissions for the organization.
| Parameter | Type | Description |
|---|---|---|
configuration_id * | integer | The unique identifier of the code security configuration to retrieve associated repositories for. |
org * | string | The organization name. Case-insensitive identifier for the organization. |
list_organization_codespaces List Organization Codespaces
Lists all codespaces associated with a specified organization. Requires admin:org scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_organization_secrets_codespaces List Organization Codespaces Secrets
Lists all Codespaces development environment secrets available at the organization level without revealing their encrypted values. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
get_organization_secret_codespace Get Organization Codespace Secret
Retrieve an organization development environment secret without revealing its encrypted value. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to retrieve. |
create_or_update_organization_secret_codespaces Create or Update Organization Codespaces Secret
Creates or updates an organization development environment secret with an encrypted value. The secret value must be encrypted using LibSodium with the organization's public key before submission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
secret_name * | string | The name of the secret to create or update. |
visibility * | string | The access level for the secret. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories. |
encrypted_value | string | The encrypted secret value, encrypted using LibSodium with the public key from the Get organization public key endpoint. Must be base64-encoded. |
key_id | string | The ID of the public key used to encrypt the secret value. |
selected_repository_ids | array | An array of repository IDs that can access the secret. Only applicable when visibility is set to 'selected'. Order is not significant. |
delete_organization_secret_codespace Delete Organization Codespace Secret
Deletes a development environment secret from an organization by name. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to delete. |
list_organization_secret_repositories_codespaces List Organization Secret Repositories for Codespaces
Lists all repositories that have been granted access to an organization secret when visibility is restricted to selected repositories. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the organization secret for which to list authorized repositories. |
update_organization_secret_repositories_codespaces Update Organization Secret Repositories for Codespaces
Replace all repositories that can access an organization development environment secret. This operation applies only when the secret's visibility is set to 'selected'.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the organization secret to configure repository access for. |
selected_repository_ids * | array | An array of repository IDs that should have access to this organization secret. Only applicable when the secret's visibility is set to 'selected'. This replaces all previously authorized repositories. |
add_repository_to_organization_secret Add Repository to Organization Secret
Grants a repository access to an organization development environment secret when the secret's visibility is restricted to selected repositories. The repository must be within the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to add to the secret's access list. |
secret_name * | string | The name of the organization secret to which the repository will be granted access. |
remove_repository_from_organization_secret_codespaces Remove Repository from Organization Secret
Removes a repository from an organization Codespaces secret when repository access is restricted to selected repositories. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from the secret's access list. |
secret_name * | string | The name of the organization secret to modify. |
get_copilot_billing Get Copilot Billing
Retrieve Copilot subscription details for an organization, including seat allocation and feature policies. Only organization owners can access this information.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
list_copilot_seats List Copilot Seats
Retrieve all Copilot seat assignments currently being billed for an organization with a Copilot Business or Copilot Enterprise subscription. Only organization owners can access this information, which includes each user's most recent Copilot activity data.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the seat billing query to a specific organization. |
grant_copilot_seats_to_teams Grant Copilot Seats to Teams
Purchases GitHub Copilot seats for all users within specified teams in an organization. The organization will be billed per seat based on its Copilot plan.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
selected_teams * | array | List of team names within the organization to grant Copilot access to. Teams are processed in the order provided. |
revoke_copilot_access_from_teams Revoke Copilot Access From Teams
Remove teams from an organization's Copilot subscription, setting their members' seats to pending cancellation. Members will lose Copilot access at the end of the current billing cycle unless they retain access through another team.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
selected_teams * | array | The names of teams to revoke Copilot access from. Provide at least one team name. |
grant_copilot_seats_to_users Grant Copilot Seats to Users
Purchases GitHub Copilot seats for specified organization members. The organization will be billed based on its Copilot plan and must have a Business or Enterprise subscription with a configured suggestion matching policy.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
selected_usernames * | array | The usernames of organization members to grant Copilot access to. Provide at least one username. |
revoke_copilot_seat_assignments Revoke Copilot Seat Assignments
Remove specified users from the organization's Copilot subscription by setting their seats to pending cancellation. Users will lose Copilot access at the end of the current billing cycle unless they retain access through team membership.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
selected_usernames * | array | The usernames of organization members whose Copilot access should be revoked. Provide at least one username. |
list_copilot_coding_agent_permissions List Copilot Coding Agent Permissions
Retrieve the Copilot coding agent permission settings for an organization, showing which repositories have the agent enabled or disabled. Organization owners use this to view their current Copilot coding agent configuration across repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
list_copilot_coding_agent_repositories List Copilot Coding Agent Repositories
Lists repositories enabled for Copilot coding agent in an organization when the repository policy is set to selected. Organization owners can use this endpoint to view which repositories have Copilot coding agent access enabled.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
enable_copilot_coding_agent_for_repository Enable Copilot Coding Agent for Repository
Enable a repository for Copilot coding agent in an organization. This operation adds a repository to the list of selected repositories when the organization's coding agent repository policy is set to 'selected'.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
repository_id * | integer | The unique identifier of the repository to enable for Copilot coding agent. |
list_copilot_content_exclusions List Copilot Content Exclusions
Retrieve Copilot content exclusion path rules configured for an organization. This endpoint allows organization owners to view which paths are excluded from GitHub Copilot.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the content exclusion rules to a specific organization. |
get_copilot_metrics Get Copilot Metrics
Retrieve aggregated GitHub Copilot usage metrics for an organization over a specified date range. Metrics are available for up to 100 days prior and only include data when the organization had five or more active Copilot license holders.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
since | string | Start date for the metrics query in ISO 8601 format. Maximum lookback is 100 days ago. |
until | string | End date for the metrics query in ISO 8601 format. Must not precede the start date if provided. |
list_organization_dependabot_alerts List Organization Dependabot Alerts
Retrieve Dependabot security alerts for an organization with filtering options by state, ecosystem, package, and risk factors. Requires organization owner or security manager permissions.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
direction | string | Sort results in ascending or descending order. |
ecosystem | string | Filter alerts by package ecosystem. Specify as comma-separated values to return alerts for packages in any of the provided ecosystems. |
epss_percentage | string | Filter alerts by CVE Exploit Prediction Scoring System (EPSS) percentage. Supports exact values, comparison operators (>, <, >=, <=), or ranges (e.g., 0.5..0.9) with values between 0.0 and 1.0. |
has | Filter alerts based on specific attributes they possess. Multiple filters can be combined to return only alerts matching all specified criteria. | |
package | string | Filter alerts by package name. Specify as comma-separated values to return alerts for any of the provided packages. |
runtime_risk | string | Filter alerts by runtime risk level. Specify as comma-separated values to return alerts for repositories with deployment records matching any of the provided risk types. |
scope | string | Filter alerts by the scope of the vulnerable dependency (development or runtime dependencies). |
state | string | Filter alerts by their current state. Specify as comma-separated values to return alerts matching any of the provided states. |
list_organization_secrets_dependabot List Organization Secrets for Dependabot
Lists all secrets available in an organization without revealing their encrypted values. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
get_organization_dependabot_public_key Get Organization Dependabot Public Key
Retrieves the public key for an organization's Dependabot secrets. This key is required to encrypt secrets before creating or updating them in Dependabot configuration.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
get_organization_secret_dependabot Get Organization Secret (Dependabot)
Retrieve a single organization secret without revealing its encrypted value. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to retrieve. |
create_or_update_organization_secret_dependabot Create or Update Organization Dependabot Secret
Creates or updates an organization secret for Dependabot with an encrypted value. The secret value must be encrypted using LibSodium with the organization's public key before submission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the secret to create or update. |
visibility * | string | The visibility scope for the secret. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories. |
encrypted_value | string | The encrypted secret value, encrypted using LibSodium with the public key from the Get organization public key endpoint. Must be base64-encoded. |
key_id | string | The ID of the public key used to encrypt the secret value. |
selected_repository_ids | array | An array of repository IDs that can access the secret. Only applicable when visibility is set to 'selected'. Manage this list using the related repository selection endpoints. |
delete_organization_secret_dependabot Delete Organization Secret (Dependabot)
Deletes a Dependabot secret from an organization by its name. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the Dependabot secret to delete. |
list_organization_secret_repositories_dependabot List Organization Secret Repositories for Dependabot
Lists all repositories that have been granted access to an organization secret when visibility is set to selected. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the Dependabot secret for which to list authorized repositories. |
update_organization_secret_repositories_dependabot Update Organization Secret Repositories for Dependabot
Replace all repositories that can access an organization Dependabot secret. This operation applies only when the secret's visibility is set to 'selected'. Requires admin:org scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the Dependabot secret to configure repository access for. |
selected_repository_ids * | array | An array of repository IDs that should have access to this organization secret. Only applicable when secret visibility is set to 'selected'. This list completely replaces any previously configured rep… |
add_repository_to_organization_secret_dependabot Add Repository to Organization Secret for Dependabot
Grants a repository access to an organization secret when the secret's visibility is restricted to selected repositories. The repository must be granted access before it can use the secret in workflows.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to add to the organization secret. |
secret_name * | string | The name of the organization secret to grant repository access to. |
remove_repository_from_organization_secret_dependabot Remove Repository from Organization Secret (Dependabot)
Remove a repository from an organization Dependabot secret when visibility is set to selected repositories. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from the secret's access list. |
secret_name * | string | The name of the Dependabot secret to modify. |
list_docker_migration_conflicts List Docker Migration Conflicts
Retrieves all packages in an organization that encountered conflicts during Docker migration and are readable by the requesting user. Requires `read:packages` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization whose conflicting packages should be listed. |
list_organization_events List Organization Events
Retrieve a list of public events for an organization. Note: This API is not optimized for real-time use cases and may have latency ranging from 30 seconds to 6 hours depending on the time of day.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The lookup is case-insensitive. |
list_failed_invitations List Failed Invitations
Retrieve a list of failed organization invitations with details about when and why each invitation failed. Each result includes the failure timestamp and reason.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
list_webhooks List Organization Webhooks
Retrieve all webhooks configured for an organization. The authenticated user must be an organization owner, and OAuth tokens require the `admin:org_hook` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the webhook list to a specific organization. |
create_webhook Create Organization Webhook
Create a webhook for an organization that delivers JSON payloads to a specified URL. Requires organization owner permissions and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
name * | string | The webhook type. Must be set to 'web' for standard webhook delivery. |
org * | string | The organization name (case-insensitive). |
url * | string | The URL endpoint where webhook payloads will be delivered. |
active | boolean | Whether the webhook is active and will send notifications when triggered. Defaults to true. |
content_type | string | The serialization format for webhook payloads. Defaults to 'form' if not specified. |
secret | string | An optional secret used to generate HMAC signatures for verifying webhook authenticity in delivery headers. |
get_organization_webhook Get Organization Webhook
Retrieve a specific webhook configured in an organization. Requires organization owner permissions and appropriate OAuth scopes to access webhook details.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of webhook delivery payloads. |
org * | string | The organization name. Case-insensitive identifier used to scope the webhook lookup. |
update_webhook Update Webhook
Updates an organization webhook's configuration, including URL, content type, secret, and active status. The secret will be overwritten if provided; you must resubmit the existing secret or set a new one to avoid removal.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook, found in the X-GitHub-Hook-ID header of webhook deliveries. |
org * | string | The organization name (case-insensitive). |
url * | string | The URL where webhook payloads will be delivered. |
active | boolean | Whether to send notifications when the webhook is triggered. Set to `true` to enable. |
content_type | string | The media type for serializing payloads. Supported values are `json` and `form`. Defaults to `form`. |
secret | string | An optional secret used to generate HMAC hex digest values for delivery signature headers, enabling payload verification. |
delete_webhook Delete Webhook
Delete a webhook from an organization. The authenticated user must be an organization owner, and the request requires `admin:org_hook` scope.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook to delete. This value can be found in the `X-GitHub-Hook-ID` header of webhook delivery events. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the webhook. |
get_webhook_config_organization Get Webhook Configuration for Organization
Retrieve the webhook configuration for an organization, including URL, content type, and SSL verification settings. Requires organization owner permissions and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of webhook delivery payloads. |
org * | string | The organization name. Case-insensitive identifier used to scope the webhook configuration lookup. |
update_webhook_config Update Webhook Configuration
Updates the webhook configuration for an organization, including the delivery URL, payload format, and signature secret. Only organization owners can perform this operation.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook, found in the X-GitHub-Hook-ID header of webhook deliveries. |
org * | string | The organization name (case-insensitive). |
content_type | string | The media type for serializing payloads. Supported values are json and form, with form as the default. |
secret | string | A secret key used to generate HMAC hex digest values for delivery signature headers, enabling payload verification. |
url | string | The URL where webhook payloads will be delivered. |
list_webhook_deliveries_organization List Webhook Deliveries for Organization
Retrieve a list of webhook deliveries for an organization webhook. Returns delivery records including status, timestamps, and payload information for debugging webhook integrations.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of any webhook delivery from this hook. |
org * | string | The organization name. Case-insensitive identifier used to scope the webhook to a specific organization. |
get_webhook_delivery_organization Get Organization Webhook Delivery
Retrieve a specific webhook delivery for an organization webhook. Returns detailed information about a single webhook delivery event, including request and response data.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the specific webhook delivery to retrieve. |
hook_id * | integer | The unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of any webhook delivery from this hook. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the webhook. |
redeliver_webhook_delivery_organization Redeliver Organization Webhook Delivery
Redeliver a previously failed or missed webhook delivery for an organization webhook. Requires organization owner permissions and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the specific webhook delivery to redeliver. |
hook_id * | integer | The unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of any webhook delivery from this hook. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the webhook. |
list_api_request_stats List API Request Stats
Retrieve API request statistics for all subjects (users or GitHub Apps) within an organization during a specified time period. Use this to analyze API usage patterns and identify top consumers.
| Parameter | Type | Description |
|---|---|---|
min_timestamp * | string | The start of the time range for statistics. Specify as an ISO 8601 timestamp. |
org * | string | The organization name. Case-insensitive. |
direction | string | The sort order for results. |
max_timestamp | string | The end of the time range for statistics. Specify as an ISO 8601 timestamp. If not provided, defaults to 30 days before the minimum timestamp. |
subject_name_substring | string | Filter results to subjects whose names contain this substring. The search is case-insensitive. |
get_api_summary_stats Get API Summary Stats
Retrieve aggregated API request statistics for an organization across all users and applications within a specified time period.
| Parameter | Type | Description |
|---|---|---|
min_timestamp * | string | The start of the time range for statistics retrieval. Specify as an ISO 8601 formatted timestamp. |
org * | string | The organization identifier. Organization names are case-insensitive. |
max_timestamp | string | The end of the time range for statistics retrieval. Specify as an ISO 8601 formatted timestamp. If omitted, defaults to 30 days before the minimum timestamp. |
get_api_stats_by_actor Get API Stats by Actor
Retrieve API request statistics for a specific actor within an organization over a specified time period. Actors can be GitHub App installations, OAuth apps, or tokens acting on behalf of a user.
| Parameter | Type | Description |
|---|---|---|
actor_id * | integer | The unique identifier of the actor. |
actor_type * | string | The type of actor making the API requests. |
min_timestamp * | string | The start of the time range for statistics. Use ISO 8601 format. |
org * | string | The organization name. Case-insensitive. |
max_timestamp | string | The end of the time range for statistics. Use ISO 8601 format. If not provided, defaults to 30 days before the minimum timestamp. |
get_api_request_stats Get API Request Stats
Retrieve API request and rate-limit statistics for an organization over a specified time period, broken down by configurable time intervals.
| Parameter | Type | Description |
|---|---|---|
min_timestamp * | string | The start of the time range for statistics retrieval in ISO 8601 format. |
org * | string | The organization name (case-insensitive). |
timestamp_increment * | string | The time interval used to aggregate statistics (e.g., 5m, 10m, 1h). Determines the granularity of the returned data. |
max_timestamp | string | The end of the time range for statistics retrieval in ISO 8601 format. Defaults to 30 days before min_timestamp if not provided. |
get_user_api_time_stats Get User API Time Stats
Retrieve API request and rate-limit statistics for a specific user within an organization over a specified time period, broken down by configurable time increments.
| Parameter | Type | Description |
|---|---|---|
min_timestamp * | string | The start of the time range for querying statistics. Must be in ISO 8601 format. |
org * | string | The organization name. Case-insensitive. |
timestamp_increment * | string | The time interval used to aggregate statistics in the results (e.g., 5m, 10m, 1h). Determines the granularity of the breakdown. |
user_id * | string | The unique identifier of the user for which to retrieve API statistics. |
max_timestamp | string | The end of the time range for querying statistics. Defaults to 30 days before min_timestamp if not provided. Must be in ISO 8601 format. |
get_api_request_stats_by_actor Get API Request Stats by Actor
Retrieve API request and rate-limit statistics for a specific actor within an organization over a specified time period. Results can be broken down into configurable time intervals.
| Parameter | Type | Description |
|---|---|---|
actor_id * | integer | The unique identifier of the actor. |
actor_type * | string | The type of actor making the API requests. |
min_timestamp * | string | The start of the time range for querying statistics. Must be in ISO 8601 format. |
org * | string | The organization name. Case-insensitive. |
timestamp_increment * | string | The time interval used to aggregate statistics in the results (e.g., 5m, 10m, 1h). Determines the granularity of the breakdown. |
max_timestamp | string | The end of the time range for querying statistics. Defaults to 30 days before min_timestamp if not provided. Must be in ISO 8601 format. |
get_user_api_stats_by_access_type Get User API Stats by Access Type
Retrieve API usage statistics for a specific user within an organization, broken down by access type over a specified time period.
| Parameter | Type | Description |
|---|---|---|
min_timestamp * | string | The start of the time range for which to retrieve statistics. Must be in ISO 8601 format. |
org * | string | The organization name. Case-insensitive. |
user_id * | string | The unique identifier of the user whose API statistics should be retrieved. |
actor_name_substring | string | Filter results to include only records where the actor name contains this substring. The search is case-insensitive. |
direction | string | The sort order for results. |
max_timestamp | string | The end of the time range for which to retrieve statistics. Defaults to 30 days before the current time if not provided. Must be in ISO 8601 format. |
get_app_organization_installation Get App Organization Installation
Retrieve the installation details of an authenticated GitHub App within a specific organization. Requires JWT authentication as a GitHub App.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
list_app_installations_organization List App Installations for Organization
Lists all GitHub Apps installed in an organization, including those installed on repositories within the organization. The authenticated user must be an organization owner, and requires admin:read scope for OAuth or classic personal access tokens.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
get_organization_interaction_restrictions Get Organization Interaction Restrictions
Retrieve the current interaction restrictions for an organization, including which types of GitHub users can interact and when the restriction expires. Returns an empty response if no restrictions are active.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
list_pending_invitations List Pending Invitations
Retrieve all pending organization invitations with optional filtering by member role or invitation source. The response includes role information (direct_member, admin, billing_manager, or hiring_manager) and login details, which may be null for non-GitHub members.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
invitation_source | string | Filter invitations by their source (member-initiated or SCIM-provisioned). |
role | string | Filter invitations by the member role they were invited as. |
invite_organization_member Invite Organization Member
Invite a person to join an organization by their GitHub user ID or email address. Only organization owners can create invitations. Note that this operation triggers notifications and is subject to secondary rate limiting.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
role | string | The role to assign to the invited member. Use 'admin' for full administrative access, 'direct_member' for standard membership, 'billing_manager' for billing-only access, or 'reinstate' to restore a pr… |
team_ids | array | An array of team IDs to automatically add the invited member to upon acceptance. The order of IDs is not significant. |
cancel_invitation Cancel Invitation
Cancel a pending organization invitation. The authenticated user must be an organization owner to perform this action. This operation triggers notifications to relevant users.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the invitation to cancel. |
org * | string | The organization name. Case-insensitive identifier for the organization. |
list_invitation_teams List Invitation Teams
Retrieve all teams associated with an organization invitation. The authenticated user must be an organization owner to view invitation details.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the invitation to retrieve associated teams for. |
org * | string | The organization name. Case-insensitive identifier for the organization. |
list_issue_fields List Issue Fields
Retrieves all issue fields configured for an organization. Requires read:org scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
create_issue_field Create Issue Field
Creates a new custom issue field for an organization. The authenticated user must be an organization administrator with the `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
data_type * | string | The data type that determines what kind of values this field can store. |
name * | string | The name of the issue field. |
org * | string | The organization name (case-insensitive). |
description | string | A description of the issue field's purpose and usage. |
options | array | An array of predefined options for single select fields. Required when `data_type` is `single_select`. Each option should be a distinct value. |
visibility | string | Controls who can see this field. Defaults to `organization_members_only` if not specified. |
delete_issue_field Delete Issue Field
Deletes a custom issue field from an organization. The authenticated user must be an organization administrator with the `admin:org` scope to perform this action.
| Parameter | Type | Description |
|---|---|---|
issue_field_id * | integer | The unique identifier of the issue field to delete. |
org * | string | The organization name. Case-insensitive. |
list_issue_types List Issue Types
Retrieves all issue types configured for a specified organization. Requires read:org scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The lookup is case-insensitive. |
create_issue_type Create Issue Type
Create a new issue type for an organization. The authenticated user must be an organization administrator with the `admin:org` scope to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
is_enabled * | boolean | Whether the issue type is enabled and available for use at the organization level. |
name * | string | The name of the issue type to create. |
org * | string | The organization name. Case-insensitive. |
color | string | An optional color label for visual identification of the issue type. |
description | string | An optional description explaining the purpose or usage of the issue type. |
delete_issue_type Delete Issue Type
Deletes an issue type from an organization. The authenticated user must be an organization administrator with the `admin:org` scope to perform this action.
| Parameter | Type | Description |
|---|---|---|
issue_type_id * | integer | The unique identifier of the issue type to delete. |
org * | string | The organization name. Case-insensitive. |
list_organization_issues List Organization Issues
List issues and pull requests in an organization that are assigned to the authenticated user. Note that GitHub's REST API treats pull requests as issues; use the `pull_request` key to distinguish them.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
direction | string | Sort results in ascending or descending order. |
filter | string | Filter issues by type of involvement: assigned to you, created by you, mentioning you, subscribed to, or all visible issues. |
labels | string | Filter by one or more labels using comma-separated values. |
since | string | Only return issues last updated after this timestamp in ISO 8601 format. |
state | string | Filter issues by their current state: open, closed, or all states. |
type | string | Filter by issue type name. |
list_organization_members List Organization Members
Retrieve all members of an organization. Authenticated members can see both public and concealed members, while others see only public members. Results can be filtered by security status or role.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
filter | string | Filter members by two-factor authentication status. Use '2fa_disabled' to show members without 2FA enabled, '2fa_insecure' to show members with insecure 2FA methods, or 'all' for no filtering. Only av… |
role | string | Filter members by their role within the organization. |
check_organization_membership Check Organization Membership
Verify whether a user is a member of an organization, including both public and private membership status.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub username handle to check for membership. |
list_organization_member_codespaces List Organization Member Codespaces
Lists all codespaces that a member of an organization has for repositories within that organization. Requires admin:org scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub user account handle for the organization member. |
delete_codespace_from_organization Delete Codespace from Organization
Delete a user's codespace from the organization. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to delete. |
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub user account handle whose codespace will be deleted. |
stop_codespace Stop Codespace
Stop a running codespace for an organization member. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to stop. |
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub user account handle. |
get_copilot_seat_details Get Copilot Seat Details for User
Retrieve GitHub Copilot seat assignment details for an organization member, including their most recent activity data. Only organization owners can access this information.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the GitHub organization. |
username * | string | The GitHub user account handle. Identifies the organization member whose Copilot seat details should be retrieved. |
get_organization_membership Get Organization Membership
Retrieve a user's membership status within an organization. The authenticated user must be an organization member to access this information. The response includes the membership state (active, pending, etc.) to identify the user's current status.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
username * | string | The GitHub username (handle) of the user whose membership to retrieve. |
set_organization_membership Set Organization Membership
Set or update a user's membership in an organization. Only organization owners can add members or modify roles. New members receive an invitation email and have pending status until acceptance.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
username * | string | The GitHub user account handle to add or update in the organization. |
role | string | The role to assign the user in the organization. Use 'admin' to make the user an organization owner, or 'member' for a non-owner role. |
remove_organization_membership Remove Organization Membership
Remove a user's membership from an organization. The authenticated user must be an organization owner. This action removes active members or cancels pending invitations, and the affected user receives an email notification.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
username * | string | The GitHub username handle for the user whose membership will be removed. |
list_organization_migrations List Organization Migrations
Retrieve the most recent migrations for an organization, including both exports (startable via REST API) and imports (read-only). Repository details are only included for export migrations.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
get_migration_status Get Migration Status
Retrieve the current status of an organization migration. Returns the migration state (pending, exporting, exported, or failed) and associated metadata.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration to check status for. |
org * | string | The organization name. Case-insensitive. |
download_migration_archive Download Migration Archive
Downloads the migration archive for an organization. Returns a URL to access the exported migration data.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration. Used to specify which migration archive to download. |
org * | string | The organization name. Case-insensitive identifier for the organization. |
delete_migration_archive Delete Migration Archive
Deletes a previous migration archive for an organization. Migration archives are automatically deleted after seven days, but can be manually removed earlier using this operation.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration whose archive should be deleted. |
org * | string | The organization name. The name is not case sensitive. |
unlock_migration_repository Unlock Migration Repository
Unlock a repository that was locked during an organization migration. After unlocking, you can delete the repository when migration is complete and the source data is no longer needed.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration. |
org * | string | The organization name. Case-insensitive. |
repo_name * | string | The name of the repository to unlock. |
list_migration_repositories List Migration Repositories
List all repositories included in an organization migration. This retrieves the complete set of repositories that are part of the specified migration for the organization.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration. Used to specify which organization migration to retrieve repositories for. |
org * | string | The organization name. Case-insensitive identifier for the organization. |
list_organization_roles List Organization Roles
Lists all organization roles available in the specified organization. Requires administrator access or fine-grained `read_organization_custom_org_role` permission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
revoke_team_organization_roles Revoke Team Organization Roles
Remove all organization roles assigned to a team. The authenticated user must be an organization administrator to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
team_slug * | string | The slug identifier for the team from which to remove all organization roles. |
assign_organization_role_to_team Assign Organization Role to Team
Assigns an organization role to a team within an organization. The authenticated user must be an administrator for the organization to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
role_id * | integer | The unique identifier of the organization role to assign to the team. |
team_slug * | string | The slug identifier of the team to assign the role to. |
remove_organization_role_from_team Remove Organization Role from Team
Remove an organization role from a team. The authenticated user must be an administrator for the organization, and the request requires the `admin:org` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
role_id * | integer | The unique identifier of the organization role to remove from the team. |
team_slug * | string | The slug of the team name. |
revoke_all_organization_roles_from_user Revoke All Organization Roles From User
Remove all organization roles assigned to a user. The authenticated user must be an organization administrator to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The GitHub organization name. Case-insensitive. |
username * | string | The GitHub username handle for the user whose organization roles will be revoked. |
assign_organization_role_to_user Assign Organization Role to User
Assigns an organization role to a user within an organization. The authenticated user must be an administrator of the organization to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
role_id * | integer | The unique identifier of the organization role to assign to the user. |
username * | string | The GitHub username of the user to assign the role to. |
revoke_organization_role_from_user Revoke Organization Role from User
Remove an organization role from a user. The authenticated user must be an organization administrator to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
role_id * | integer | The unique identifier of the organization role to remove from the user. |
username * | string | The GitHub user account handle from which to remove the organization role. |
get_organization_role Get Organization Role
Retrieve a specific organization role by its unique identifier. Requires administrator access or the fine-grained `read_organization_custom_org_role` permission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
role_id * | integer | The unique identifier of the organization role to retrieve. |
list_organization_role_teams List Organization Role Teams
Lists all teams assigned to a specific organization role. Requires administrator privileges for the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
role_id * | integer | The unique identifier of the organization role. |
list_organization_role_users List Organization Role Users
Lists organization members assigned to a specific organization role. Requires administrator privileges for the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
role_id * | integer | The unique identifier of the organization role. |
list_outside_collaborators List Outside Collaborators
List all outside collaborators for an organization, with optional filtering by two-factor authentication status. Outside collaborators are users who have access to organization repositories but are not members of the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
filter | string | Filter outside collaborators by two-factor authentication status. Use '2fa_disabled' to show only those without 2FA enabled, '2fa_insecure' to show only those with insecure 2FA methods, or 'all' to sh… |
convert_member_to_outside_collaborator Convert Member to Outside Collaborator
Convert an organization member to an outside collaborator, restricting their access to only repositories their team membership allows. The user will no longer be an organization member.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
username * | string | The GitHub user account handle to convert. |
async | boolean | When true, the request executes asynchronously and returns a 202 status code when the job is queued. |
remove_outside_collaborator Remove Outside Collaborator
Remove an outside collaborator from an organization, which automatically revokes their access to all organization repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
username * | string | The GitHub username handle for the outside collaborator to remove. |
list_organization_packages List Organization Packages
List all packages in an organization that are readable by the authenticated user. Requires `read:packages` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
package_type * | string | The package registry type to filter by. Gradle packages use `maven`, Docker images in the Container registry use `container`, and `docker` finds images in the legacy Docker registry. |
visibility | string | Filter results by package visibility level. The `internal` visibility is only supported for registries with granular permissions; for other ecosystems it is treated as `private`. |
get_organization_package Get Organization Package
Retrieve a specific package from an organization's registry. Requires `read:packages` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
package_name * | string | The name of the package to retrieve. |
package_type * | string | The package registry type. Gradle packages use `maven`, container images pushed to ghcr.io use `container`, and `docker` finds images in the legacy Docker registry (docker.pkg.github.com). |
delete_organization_package Delete Organization Package
Permanently delete an entire package from an organization. Public packages with more than 5,000 downloads cannot be deleted; contact GitHub support in such cases.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
package_name * | string | The name of the package to delete. |
package_type * | string | The package registry type. Gradle packages use 'maven', Docker images pushed to ghcr.io use 'container', and 'docker' finds images in the legacy Docker registry. |
restore_organization_package Restore Organization Package
Restore a deleted package in an organization. The package must have been deleted within the last 30 days and the same package namespace and version must still be available.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
package_name * | string | The name of the package to restore. |
package_type * | string | The package type to restore. Different registries support different types: npm, maven, and rubygems are language-specific registries; docker and container are image registries; nuget is for .NET packa… |
list_organization_package_versions List Organization Package Versions
Retrieve all versions of a package owned by an organization. Requires `read:packages` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
package_name * | string | The name of the package to retrieve versions for. |
package_type * | string | The package type (e.g., npm, maven, docker, container). Docker images in GitHub's Container registry use 'container'; use 'docker' to find images in the legacy Docker registry. |
state | string | Filter versions by state: active for current versions or deleted for removed versions. |
get_organization_package_version Get Organization Package Version
Retrieve a specific package version from an organization's package registry. Requires `read:packages` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
package_name * | string | The name of the package to retrieve. Package names are case-sensitive identifiers within the registry. |
package_type * | string | The package type determines which registry to query. Maven packages are used in Gradle registries, while container images can be pushed to GitHub's Container registry (ghcr.io) or Docker registry (doc… |
package_version_id * | integer | The unique numeric identifier for the specific package version to retrieve. |
delete_package_version Delete Package Version
Delete a specific package version from an organization's package registry. Note that public packages with over 5,000 downloads cannot be deleted; contact GitHub support in such cases.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
package_name * | string | The name of the package to delete a version from. |
package_type * | string | The package registry type. Gradle packages use 'maven', Docker images pushed to ghcr.io use 'container', and 'docker' finds images in the legacy Docker registry. |
package_version_id * | integer | The unique identifier of the package version to delete. |
restore_package_version Restore Package Version
Restore a deleted package version in an organization. The package must have been deleted within the last 30 days and the same package namespace and version must still be available.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
package_name * | string | The name of the package to restore. |
package_type * | string | The type of package registry. Gradle packages use 'maven', container images use 'container', and 'docker' finds images in the legacy Docker registry. |
package_version_id * | integer | The unique identifier of the package version to restore. |
list_pat_grant_requests List PAT Grant Requests
Lists pending requests from organization members to access organization resources using fine-grained personal access tokens. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
direction | string | The direction to sort results by. |
permission | string | Filter results by the specific permission required by the token request. |
token_id | array | Filter results by one or more token IDs. Accepts up to 50 IDs as a comma-separated array. |
review_pat_grant_requests Review Personal Access Token Grant Requests
Review and approve or deny multiple pending requests for fine-grained personal access token access to organization resources. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
action * | string | The action to apply to all specified requests: approve to grant access or deny to reject access. |
org * | string | The organization name. Case-insensitive. |
pat_request_ids | array | Unique identifiers of the personal access token requests to review. Accepts between 1 and 100 request IDs. |
reason | string | Optional reason for the approval or denial decision. Maximum 1024 characters. |
review_pat_grant_request Review Personal Access Token Grant Request
Review and approve or deny a pending request for fine-grained personal access token access to organization resources. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
action * | string | The action to take on the request: approve to grant access or deny to reject it. |
org * | string | The organization name. Case-insensitive. |
pat_request_id * | integer | The unique identifier of the personal access token request to review. |
reason | string | Optional reason for the approval or denial decision. Maximum 1024 characters. |
list_pat_request_repositories List PAT Request Repositories
Lists the repositories that a fine-grained personal access token request is requesting access to. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
pat_request_id * | integer | The unique identifier of the fine-grained personal access token request. |
list_organization_pat_grants List Organization Personal Access Token Grants
Lists fine-grained personal access tokens owned by organization members that have been approved to access organization resources. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
direction | string | The direction to sort the results by. |
permission | string | Filter results by the specific permission granted to the token. |
token_id | array | Filter results by one or more token IDs. Provide as a comma-separated list of numeric token identifiers. |
revoke_organization_pat_access Revoke Organization PAT Access
Revoke organization members' access to organization resources via fine-grained personal access tokens. This operation is restricted to GitHub Apps and supports revoking access for multiple tokens in a single request.
| Parameter | Type | Description |
|---|---|---|
action * | string | The action to apply to the fine-grained personal access tokens. |
org * | string | The organization name. Case-insensitive. |
pat_ids * | array | The IDs of the fine-grained personal access tokens to revoke. Accepts 1 to 100 token IDs per request. |
revoke_org_pat_access Revoke Organization Personal Access Token
Revoke a fine-grained personal access token's access to organization resources. Only GitHub Apps can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
action * | string | The action to apply to the fine-grained personal access token. |
org * | string | The organization name. Case-insensitive. |
pat_id * | integer | The unique identifier of the fine-grained personal access token to revoke. |
list_pat_repositories List PAT Repositories
Lists all repositories that a fine-grained personal access token has access to within an organization. This endpoint is only available to GitHub Apps.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
pat_id * | integer | The unique identifier of the fine-grained personal access token. |
list_organization_private_registries List Organization Private Registries
Retrieve all private registry configurations for an organization. Encrypted credential values are not included in the response. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the private registries query. |
create_organization_private_registry Create Organization Private Registry
Creates a private registry configuration for an organization with encrypted credentials. The encrypted secret must be generated using LibSodium with the public key retrieved from the organization's private registries endpoint.
| Parameter | Type | Description |
|---|---|---|
encrypted_value * | string | The encrypted secret value generated using LibSodium with the organization's public key. Must be base64-encoded. |
key_id * | string | The ID of the public key used to encrypt the secret value. |
org * | string | The organization name (case-insensitive). |
registry_type * | string | The type of package registry being configured. |
url * | string | The URL endpoint of the private registry. |
visibility * | string | The access scope for the private registry. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories. |
replaces_base | boolean | Whether this registry should replace the base public registry. When true, Dependabot uses only this registry without fallback to public registries. When false (default), Dependabot uses this registry… |
selected_repository_ids | array | Array of repository IDs that can access this private registry. Required only when visibility is set to 'selected'. Omit this field when visibility is 'all' or 'private'. |
get_private_registry_public_key Get Private Registry Public Key
Retrieves the public key for an organization's private registries, which is required to encrypt secrets before creating or updating them. Requires `admin:org` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
get_private_registry Get Private Registry
Retrieve the configuration details of a private registry for an organization, excluding its encrypted credential value. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the private registry secret to retrieve. |
update_organization_private_registry Update Organization Private Registry
Updates a private registry configuration for an organization, allowing you to manage Dependabot's access to private package repositories. Requires encrypting sensitive credentials using LibSodium before submission.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
secret_name * | string | The name of the private registry secret to update. |
key_id | string | The ID of the encryption key used to encrypt the secret value. |
public_key | string | The base64-encoded public key retrieved from the Get a repository public key endpoint |
registry_type | string | The type of package registry being configured. |
replaces_base | boolean | When true, this registry replaces the default public registry and Dependabot will not fall back to public sources. When false (default), Dependabot uses this registry for scoped packages but may fall… |
secret_value | string | The plaintext secret value to be encrypted |
selected_repository_ids | array | Array of repository IDs that can access this private registry. Only provide this when visibility is set to 'selected'; omit for 'all' or 'private' visibility. |
url | string | The URL endpoint of the private registry. |
visibility | string | Controls which organization repositories can access this private registry. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to specify individual repositories. |
delete_org_private_registry Delete Organization Private Registry
Delete a private registry configuration for an organization. Requires `admin:org` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
secret_name * | string | The name of the private registry secret to delete. |
list_organization_projects List Organization Projects
Retrieve all projects owned by an organization that are accessible to the authenticated user. Results can be filtered by project type using the optional query parameter.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
q | string | Filter results to projects of a specified type. |
get_organization_project Get Organization Project
Retrieve a specific project owned by an organization using its project number. This operation fetches detailed information about a single organization-level project.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization that owns the project. Organization names are case-insensitive. |
project_number * | integer | The unique numeric identifier for the project within the organization. |
create_draft_item Create Draft Item
Create a draft issue item in an organization-owned project. Draft items can be converted to full issues later.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
project_number * | integer | The project number that uniquely identifies the project within the organization. |
title * | string | The title of the draft issue item. This is the primary heading for the draft. |
body | string | The body content of the draft issue item. Supports markdown formatting for rich text content. |
list_project_fields List Project Fields
Retrieve all fields configured for a specific organization-owned project. Fields define the custom properties and metadata available for project items.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization that owns the project. Organization names are case-insensitive. |
project_number * | integer | The numeric identifier of the project. This uniquely identifies the project within the organization. |
add_project_field Add Project Field
Add a custom field to an organization-owned project. Fields can be of various types including text, number, date, single select, and iteration to support project tracking and management.
| Parameter | Type | Description |
|---|---|---|
body * | Field configuration object specifying the field name, data type, and type-specific options. Supported data types include text, number, date, single_select, and iteration. | |
org * | string | The organization name. Organization names are case-insensitive. |
project_number * | integer | The project number that uniquely identifies the project within the organization. |
get_project_field Get Project Field
Retrieve a specific field from an organization-owned project. Fields define custom properties and data types for project items.
| Parameter | Type | Description |
|---|---|---|
field_id * | integer | The unique identifier of the field to retrieve. |
org * | string | The organization name. Organization names are case-insensitive. |
project_number * | integer | The project's unique number identifier within the organization. |
list_project_items List Project Items
List all items in an organization-owned project. Retrieve project items with optional filtering by search query and field selection.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
project_number * | integer | The project's unique number identifier. |
fields | Comma-separated or repeated field IDs to include in results. If not specified, only the title field is returned. | |
q | string | Search query to filter items by their properties and values. |
add_item_to_project Add Item to Project
Add an issue or pull request to an organization's project. This operation allows you to associate existing GitHub items with a specific project for tracking and organization purposes.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
project_number * | integer | The project's unique number identifier within the organization. |
type * | string | The type of item being added to the project. |
get_project_item Get Project Item
Retrieve a specific item from an organization-owned project. Returns the item's details, including selected fields or the title field by default.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The unique identifier of the project item to retrieve. |
org * | string | The organization name. Case-insensitive. |
project_number * | integer | The project's unique number identifier. |
fields | Comma-separated or repeated field IDs to include in the response. If not specified, only the title field is returned. |
update_project_item Update Project Item
Update a specific item in an organization-owned project by applying field changes. Modify item properties such as status, assignees, or custom fields.
| Parameter | Type | Description |
|---|---|---|
fields * | array | An ordered list of field updates to apply to the item. Each entry specifies a field and its new value. |
item_id * | integer | The unique identifier of the project item to update. |
org * | string | The organization name. The name is not case sensitive. |
project_number * | integer | The project's unique number identifier within the organization. |
delete_project_item Delete Project Item
Delete a specific item from an organization-owned project. This operation permanently removes the item from the project.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The unique identifier of the project item to delete. |
org * | string | The organization name. Organization names are case-insensitive. |
project_number * | integer | The project's unique number identifier within the organization. |
create_project_view Create Project View
Create a new view in an organization-owned project to customize how items are displayed and filtered. Views support different layouts (table, board, roadmap) and can include optional filtering and field visibility settings.
| Parameter | Type | Description |
|---|---|---|
layout * | string | The layout type that determines how project items are displayed. |
name * | string | The name of the view. |
org * | string | The organization name (case-insensitive). |
project_number * | integer | The project's number identifier. |
filter | string | Optional filter query to control which items appear in the view. Use standard project filtering syntax to narrow results by status, type, assignee, and other criteria. |
visible_fields | array | Optional array of field IDs to display in the view. Not applicable for roadmap layouts. If omitted, default visible fields will be used. Field order in the array determines display order. |
list_project_view_items List Project View Items
List items in an organization project view with the view's saved filters applied. Returns project items matching the specified view's configuration.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
project_number * | integer | The project's number that identifies which project to query. |
view_number * | integer | The number that identifies the project view within the project. |
fields | Limit results to specific fields by their IDs. If not specified, only the title field will be returned. Accepts multiple field IDs as a comma-separated list or repeated query parameters. |
list_organization_custom_property_definitions List Organization Custom Property Definitions
Retrieve all custom property definitions configured for an organization. Organization members can access these property schemas to understand available custom properties.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the custom property definitions. |
get_organization_custom_property Get Organization Custom Property
Retrieve a custom property definition for an organization. Organization members can access these property definitions to understand custom metadata configured for the organization.
| Parameter | Type | Description |
|---|---|---|
custom_property_name * | string | The name of the custom property to retrieve. Must match an existing custom property defined for the organization. |
org * | string | The organization name. Case-insensitive identifier used to scope the custom property lookup. |
list_organization_repository_custom_properties List Organization Repository Custom Properties
Retrieve all repositories in an organization along with their custom property values. Organization members can access this information to view how custom properties are applied across repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The lookup is case-insensitive. |
repository_query | string | Search query to filter repositories by keywords and qualifiers. Supports the same search syntax as the GitHub web interface for repository discovery and filtering. |
batch_update_repository_custom_properties Batch Update Repository Custom Properties
Update custom property values for multiple repositories in an organization. Apply the same custom property values across up to 30 repositories in a single batch operation, with support for unsetting properties using null values.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization that owns the repositories. |
properties * | array | Custom properties and their values to apply to the repositories. Each property entry specifies a property name and its value. Use null to remove or unset a property value from the repositories. |
repository_names * | array | The names of repositories to update. Each repository must belong to the organization. Order is not significant. |
list_organization_public_members List Organization Public Members
List all members of an organization whose membership is publicly visible. Organization members can choose whether their membership is public or private.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The lookup is case-insensitive. |
check_public_organization_membership Check Public Organization Membership
Verify whether a user is a public member of the specified organization. Public membership is visible to anyone, unlike concealed membership.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
username * | string | The GitHub username handle to check for public membership in the organization. |
publicize_organization_membership Publicize Organization Membership
Publicize your own membership in an organization. This makes your membership visible to others, and can only be performed by the authenticated user for their own membership.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
username * | string | The GitHub username of the authenticated user whose membership will be publicized. |
remove_public_organization_membership Remove Public Organization Membership
Remove your public membership from an organization. This action makes your membership private unless the organization enforces public visibility by default.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
username * | string | The GitHub username of the account whose public membership should be removed. |
list_organization_repositories List Organization Repositories
Retrieves repositories for the specified organization. Supports filtering by repository type and sorting results in ascending or descending order.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
direction | string | The sort order for results. Use 'asc' for ascending order or 'desc' for descending order. Defaults to 'asc' when sorting by full name, otherwise 'desc'. |
type | string | Filters repositories by type. Use 'all' to include all repository types, 'public' for publicly accessible repositories, 'private' for private repositories, 'forks' for forked repositories, 'sources' f… |
create_organization_repository Create Organization Repository
Creates a new repository in the specified organization. The authenticated user must be a member of the organization with appropriate OAuth scopes (`public_repo` or `repo` for public repositories, `repo` for private repositories).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new repository. |
org * | string | The organization name where the repository will be created. Organization names are case-insensitive. |
allow_auto_merge | boolean | Allow pull requests to be automatically merged when all required conditions are met. |
allow_merge_commit | boolean | Allow pull requests to be merged using a merge commit strategy. |
allow_rebase_merge | boolean | Allow pull requests to be merged using the rebase-merge strategy. |
allow_squash_merge | boolean | Allow pull requests to be merged using the squash-merge strategy. |
auto_init | boolean | Create an initial commit with an empty README file to initialize the repository. |
custom_properties | object | Custom properties for the repository as key-value pairs, where keys are custom property names and values are their corresponding values. |
delete_branch_on_merge | boolean | Automatically delete the head branch when a pull request is merged. Only organization owners can set this to true. |
description | string | A short description of the repository's purpose or content. |
gitignore_template | string | Apply a .gitignore template for the specified language or platform. Use the template name without the file extension (e.g., 'Haskell', 'Python'). |
has_issues | boolean | Enable or disable GitHub Issues for this repository. |
has_projects | boolean | Enable or disable GitHub Projects for this repository. Note: If the organization has disabled repository projects, this defaults to false and passing true will return an error. |
has_wiki | boolean | Enable or disable the wiki feature for this repository. |
homepage | string | A URL with more information about the repository, such as project documentation or homepage. |
is_template | boolean | Make this repository available as a template that others can use to generate new repositories. |
license_template | string | Apply an open source license template to the repository. Use the license keyword identifier (e.g., 'mit', 'mpl-2.0', 'apache-2.0'). |
merge_commit_message | string | The default message content for merge commits, determining whether to use the pull request title, body, or a blank message. |
merge_commit_title | string | The default title format for merge commits. Required when using merge_commit_message. |
squash_merge_commit_message | string | The default message content for squash merge commits, determining whether to use the pull request body, branch commit messages, or a blank message. |
squash_merge_commit_title | string | The default title format for squash merge commits. Required when using squash_merge_commit_message. |
team_id | integer | The ID of the team that will be granted access to this repository. Only valid when creating a repository in an organization. |
visibility | string | The visibility level of the repository, determining who can access it. |
list_organization_rulesets List Organization Rulesets
Retrieve all repository rulesets configured for an organization. Optionally filter rulesets by their target types (branch, tag, push, etc.).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
targets | string | Filter rulesets by target types using a comma-separated list. Only rulesets applying to the specified targets will be returned. |
list_organization_rule_suites List Organization Rule Suites
Lists suites of rule evaluations at the organization level to view insights and compliance results for repository rulesets. Filter by repository, time period, actor, or result status.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
actor_name | string | Filter results to rule evaluations triggered by a specific GitHub user account handle. |
repository_name | string | Filter results to a specific repository by name. |
rule_suite_result | string | Filter results by rule suite outcome. Use 'pass' for successful evaluations, 'fail' for failed evaluations, 'bypass' for bypassed evaluations, or 'all' to include all outcomes. |
time_period | string | Filter results by time period. Use 'hour' for the past 24 hours, 'day' for the past 24 hours, 'week' for the past 7 days, or 'month' for the past 30 days. |
get_organization_rule_suite Get Organization Rule Suite
Retrieve detailed information about a specific rule suite evaluation within an organization. Use this to view insights and results from ruleset evaluations applied across your organization's repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
rule_suite_id * | integer | The unique identifier of the rule suite result. Retrieve this ID from the organization or repository rule suites list endpoints. |
get_organization_ruleset Get Organization Ruleset
Retrieve a specific repository ruleset for an organization. Note that the bypass_actors property is only returned if the requester has write access to the ruleset.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
ruleset_id * | integer | The unique identifier of the ruleset to retrieve. |
delete_organization_ruleset Delete Organization Ruleset
Delete a repository ruleset for an organization. This removes the ruleset and all its associated rules from the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
ruleset_id * | integer | The unique identifier of the ruleset to delete. |
list_ruleset_history List Ruleset History
Retrieve the complete history of changes for an organization ruleset, including all modifications and their timestamps.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
ruleset_id * | integer | The unique identifier of the ruleset. |
get_ruleset_version Get Ruleset Version
Retrieve a specific version of an organization ruleset. Use this to view the configuration and rules that were active at a particular point in the ruleset's history.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Organization names are case-insensitive. |
ruleset_id * | integer | The unique identifier of the ruleset. |
version_id * | integer | The unique identifier of the ruleset version to retrieve. |
list_secret_scanning_alerts List Secret Scanning Alerts for Organization
Lists secret scanning alerts for an organization across eligible repositories, ordered from newest to oldest. The authenticated user must be an administrator or security manager for the organization.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
direction | string | Sort direction for the results. |
hide_secret | boolean | When true, redacts literal secret values from the response results. |
is_multi_repo | boolean | When true, only returns alerts that appear across multiple repositories. |
is_publicly_leaked | boolean | When true, only returns alerts that have been publicly leaked. |
resolution | string | Filter by one or more resolution statuses using comma-separated values. |
secret_type | string | Filter by one or more secret types using comma-separated values. Supports both default secret patterns and generic token names. |
state | string | Filter alerts by their current state. |
validity | string | Filter by validity status using comma-separated values. Indicates whether a secret is currently active, inactive, or of unknown status. |
list_secret_scanning_patterns List Secret Scanning Patterns
Lists all secret scanning pattern configurations for an organization. These patterns define custom rules used to detect secrets during scanning.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier used to scope the pattern configurations to a specific organization. |
list_organization_security_advisories List Organization Security Advisories
Retrieve all repository security advisories for an organization. The authenticated user must be an owner or security manager to access this endpoint.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
direction | string | Sort direction for the results. |
state | string | Filter advisories by their current state. Only advisories matching the specified state will be returned. |
list_immutable_release_repositories List Immutable Release Repositories
List all repositories in an organization that have been selected for immutable releases enforcement. Requires admin:org scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
enable_repository_immutable_releases Enable Repository Immutable Releases
Adds a repository to the organization's list of selected repositories enforced for immutable releases. This endpoint requires the organization's immutable releases policy to be configured for selected repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to enable for immutable releases. |
remove_repository_from_immutable_releases Remove Repository from Immutable Releases
Remove a repository from the organization's immutable releases enforcement list. This endpoint is only available when the organization's immutable releases policy is configured to enforce selected repositories.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
repository_id * | integer | The unique identifier of the repository to remove from immutable releases enforcement. |
list_network_configurations List Network Configurations for Organization
Retrieve all hosted compute network configurations for an organization. Requires `read:network_configurations` scope.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization. |
get_network_configuration Get Network Configuration
Retrieves a specific hosted compute network configuration for an organization. Requires `read:network_configurations` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
network_configuration_id * | string | The unique identifier of the hosted compute network configuration to retrieve. |
org * | string | The organization name. Case-insensitive. |
update_network_configuration Update Network Configuration
Updates a hosted compute network configuration for an organization. Requires the `write:network_configurations` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
network_configuration_id * | string | The unique identifier of the hosted compute network configuration to update. |
org * | string | The organization name. Case-insensitive. |
compute_service | string | The hosted compute service to use for this network configuration. |
network_settings_ids | array | A list of network settings resource identifiers to associate with this configuration. Exactly one identifier must be provided if specified. |
delete_network_configuration Delete Network Configuration
Deletes a hosted compute network configuration from an organization. Requires the `write:network_configurations` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
network_configuration_id * | string | The unique identifier of the hosted compute network configuration to delete. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the network configuration. |
get_network_settings Get Network Settings
Retrieve a hosted compute network settings resource for an organization. Requires `read:network_configurations` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
network_settings_id * | string | The unique identifier of the hosted compute network settings resource to retrieve. |
org * | string | The organization name. Case-insensitive identifier for the organization that owns the network settings. |
get_team_copilot_metrics Get Team Copilot Metrics
Retrieve aggregated GitHub Copilot usage metrics for a team over a specified date range. Returns metrics for up to 100 days of historical data, with results only available for days when the team had five or more active Copilot license holders.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). Used to identify which organization's Copilot metrics to retrieve. |
team_slug * | string | The team slug (URL-friendly identifier). Used to specify which team within the organization to retrieve metrics for. |
since | string | Start date for the metrics query in ISO 8601 format. Limits results to metrics from this date onward. Maximum lookback is 100 days ago. |
until | string | End date for the metrics query in ISO 8601 format. Limits results to metrics up to this date. Must not precede the since date if both are provided. |
list_teams List Teams
Retrieve all teams in an organization that are visible to the authenticated user. Optionally filter results by team type (all, enterprise, or organization).
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
team_type | string | Filter team results by their type. Use 'all' to include all teams, 'enterprise' for enterprise-managed teams, or 'organization' for organization-managed teams. |
create_team Create Team
Create a new team within an organization. The authenticated user must be a member or owner of the organization, and will automatically become a team maintainer.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the team. |
org * | string | The organization name (case-insensitive). |
description | string | A brief description of the team's purpose or focus. |
maintainers | array | GitHub usernames of organization members to designate as team maintainers. Order is not significant. |
notification_setting | string | Whether team members receive notifications when the team is mentioned. 'notifications_enabled' sends notifications, 'notifications_disabled' suppresses them. |
parent_team_id | integer | The team ID to set as the parent team, creating a nested team hierarchy. |
permission | string | The default permission level for new repositories added to the team when no specific permission is provided. |
privacy | string | The privacy level for the team. For non-nested teams: 'secret' restricts visibility to organization owners and team members, 'closed' is visible to all organization members. For parent or child teams:… |
repo_names | array | Full repository names (format: organization-name/repository-name) to add the team to. Order is not significant. |
get_team Get Team
Retrieve a team by its slug within an organization. The team slug is a URL-friendly identifier derived from the team name by converting to lowercase and replacing spaces with hyphens.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. This parameter is case-insensitive. |
team_slug * | string | The slug of the team name. This is a URL-friendly identifier created by converting the team name to lowercase and replacing spaces with hyphens. |
update_team Update Team
Update an organization team's settings including name, description, privacy level, and notification preferences. The authenticated user must be an organization owner or team maintainer.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
team_slug * | string | The slug identifier for the team name. |
description | string | The description of the team. |
notification_setting | string | Whether team members receive notifications when the team is @mentioned. Choose notifications_enabled to send notifications or notifications_disabled to disable them. |
parent_team_id | integer | The ID of a team to set as the parent team, establishing a nested team hierarchy. |
permission | string | The default permission level for new repositories added to the team when no permission is explicitly specified. |
privacy | string | The privacy level for the team. For non-nested teams, choose between secret (visible only to owners and members) or closed (visible to all organization members). For nested teams, only closed is allow… |
delete_team Delete Team
Delete a team from an organization. The authenticated user must be an organization owner or team maintainer. Deleting a parent team will also delete all of its child teams.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the organization that owns the team. |
team_slug * | string | The slug of the team name. A URL-friendly identifier for the team within the organization. |
list_team_invitations List Team Invitations
List all pending invitations for a team within an organization. Returns invitation details including the invitee's login (null if not a GitHub member) and their assigned role.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
team_slug * | string | The slug identifier for the team name. |
list_team_members List Team Members
List all members of a team in an organization, including members from child teams. The team must be visible to the authenticated user.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
team_slug * | string | The slug identifier for the team name. |
role | string | Filter members by their role within the team. |
get_team_membership Get Team Membership
Retrieve a user's membership status and role within a specific team. The response includes the membership state and the user's role, with organization owners shown as maintainers.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the GitHub organization. |
team_slug * | string | The URL-friendly slug identifier for the team within the organization. |
username * | string | The GitHub username handle for the user whose team membership is being retrieved. |
add_or_update_team_membership Add or Update Team Membership
Add an organization member to a team or update their existing team role. An authenticated organization owner or team maintainer can manage team membership, with automatic email invitations sent to non-members.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name (case-insensitive). |
team_slug * | string | The slug identifier for the team. |
username * | string | The GitHub username handle for the user being added or updated. |
role | string | The role to assign the user within the team. |
remove_team_member_org Remove Team Member from Organization
Remove a user's membership from a team. The authenticated user must have admin permissions to the team or be an organization owner. This action does not delete the user account, only removes their team membership.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive identifier for the GitHub organization. |
team_slug * | string | The slug of the team name. This is the URL-friendly identifier for the team within the organization. |
username * | string | The GitHub username handle for the user whose team membership will be removed. |
list_team_repositories List Team Repositories
Lists all repositories that are visible to the authenticated user and associated with a specific team within an organization. This includes repositories the team has access to through various permission levels.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
team_slug * | string | The URL-friendly slug identifier for the team name within the organization. |
verify_team_repository_permissions Verify Team Repository Permissions
Verify whether a team has a specific permission level for a repository, including permissions inherited through parent teams. Returns repository details if the team has access, or 404 if the team lacks permission or lacks read access to a private repository.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
team_slug * | string | The slug of the team name. Case-insensitive. |
set_team_repository_permission Set Team Repository Permission
Grant or update a team's permission level on a repository owned by the organization. The authenticated user must have admin access to the repository and visibility of the team.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
team_slug * | string | The slug identifier for the team within the organization. |
permission | string | The permission level to grant the team on this repository. If not specified, the team's existing permission will be used. Accepts standard permission levels or custom repository role names defined by… |
remove_repository_from_team Remove Repository from Team
Remove a repository from a team within an organization. This action does not delete the repository, only removes the team's access to it. Requires organization owner, team maintainer, or admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. Case-insensitive. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
team_slug * | string | The slug identifier for the team name. Case-insensitive. |
list_child_teams List Child Teams
Lists all child teams nested under a specified team within an organization. This operation retrieves the direct child teams only, not grandchild teams.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name. The name is not case sensitive. |
team_slug * | string | The slug of the team name, used to identify the parent team whose child teams should be listed. |
get_repository Get Repository
Retrieve detailed information about a specific repository, including fork relationships and security settings. Admin or security manager permissions are required to view security and analysis data.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
update_repository Update Repository
Update repository settings including visibility, features, merge strategies, and metadata. Note: Use the dedicated endpoint to manage repository topics.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
allow_auto_merge | boolean | Allow auto-merge on pull requests. |
allow_forking | boolean | Allow private forks of this repository. |
allow_merge_commit | boolean | Allow merge commits when merging pull requests. |
allow_rebase_merge | boolean | Allow rebase-merging of pull requests. |
allow_squash_merge | boolean | Allow squash-merging of pull requests. |
allow_update_branch | boolean | Allow pull request head branches to be updated even if behind the base branch and not required to be up to date before merging. |
archived | boolean | Archive or unarchive this repository. |
default_branch | string | The default branch for this repository. |
delete_branch_on_merge | boolean | Automatically delete head branches when pull requests are merged. |
description | string | A short description of the repository. |
has_issues | boolean | Enable or disable issues for this repository. |
has_projects | boolean | Enable or disable projects for this repository. Note: Defaults to false if the organization has disabled repository projects. |
has_wiki | boolean | Enable or disable the wiki for this repository. |
homepage | string | A URL with more information about the repository. |
is_template | boolean | Make this repository available as a template for others to use. |
merge_commit_message | string | The default message content for merge commits. |
merge_commit_title | string | The default title format for merge commits. Required when using merge_commit_message. |
reviewers | array | List of users who can bypass secret scanning reviews. If omitted, existing reviewers remain unchanged. |
squash_merge_commit_message | string | The default message content for squash merge commits. |
squash_merge_commit_title | string | The default title format for squash merge commits. Required when using squash_merge_commit_message. |
visibility | string | The visibility level of the repository. |
web_commit_signoff_required | boolean | Require contributors to sign off on web-based commits. |
delete_repository Delete Repository
Permanently delete a repository. Requires admin access to the repository, and organization owners may restrict this action for organization-owned repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_artifacts List Artifacts for Repository
Lists all artifacts for a repository. Anyone with read access can use this endpoint; OAuth apps and personal access tokens need the `repo` scope for private repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_artifact Get Artifact
Retrieve a specific artifact from a workflow run. Accessible to anyone with read access to the repository; private repositories require the `repo` scope for OAuth tokens and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
artifact_id * | integer | The unique identifier of the artifact to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_artifact Delete Artifact
Permanently delete a workflow artifact from a repository. Requires `repo` scope authentication.
| Parameter | Type | Description |
|---|---|---|
artifact_id * | integer | The unique identifier of the artifact to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
download_artifact Download Artifact
Download a repository artifact as a ZIP archive. Returns a redirect URL in the response header that expires after 1 minute.
| Parameter | Type | Description |
|---|---|---|
archive_format * | string | The archive format for the downloaded artifact. Must be `zip`. |
artifact_id * | integer | The unique identifier of the artifact to download. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_cache_retention_limit Get Cache Retention Limit
Retrieves the GitHub Actions cache retention limit for a repository, which determines how long cached artifacts are retained before automatic eviction due to age or size constraints.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_actions_cache_storage_limit_repository Get Actions Cache Storage Limit for Repository
Retrieve the GitHub Actions cache storage limit for a repository, which determines the maximum size of caches before eviction occurs. Requires admin:repository scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
get_actions_cache_usage Get Actions Cache Usage
Retrieve GitHub Actions cache usage statistics for a repository. Data is refreshed approximately every 5 minutes, so values may take at least 5 minutes to reflect recent changes.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_caches List Actions Caches
Lists all GitHub Actions caches for a repository. Requires `repo` scope authentication to access cache metadata and management information.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
direction | string | The direction to sort the results by. |
key | string | Filter caches by an explicit key or key prefix to narrow results to specific cache entries. |
delete_actions_cache_by_key Delete Actions Cache by Key
Delete GitHub Actions caches for a repository by cache key. Optionally restrict deletions to caches matching both the provided key and a specific Git ref.
| Parameter | Type | Description |
|---|---|---|
key * | string | A cache key used to identify and delete matching caches. All caches with this key will be deleted unless filtered by a Git ref. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_actions_cache Delete Actions Cache
Delete a GitHub Actions cache for a repository by its cache ID. Requires `repo` scope authentication.
| Parameter | Type | Description |
|---|---|---|
cache_id * | integer | The unique identifier of the GitHub Actions cache to delete. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_workflow_job Get Workflow Job
Retrieve details for a specific job within a workflow run. Anyone with read access to the repository can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | The unique identifier of the job to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_workflow_job_logs Get Workflow Job Logs
Retrieve a download URL for workflow job logs as plain text. The returned redirect URL expires after 1 minute and is found in the `Location` response header.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | The unique identifier of the job to retrieve logs for. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
rerun_workflow_job Rerun Workflow Job
Re-run a job and its dependent jobs in a workflow run. Requires `repo` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | The unique identifier of the job to re-run. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
enable_debug_logging | boolean | Whether to enable debug logging for the re-run. |
get_oidc_subject_claim_customization Get OIDC Subject Claim Customization
Retrieve the customization template for an OpenID Connect (OIDC) subject claim in a repository. This template defines how the OIDC subject claim is formatted for GitHub Actions workflows.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_organization_secrets_available_to_repository List Organization Secrets Available to Repository
Retrieve all organization secrets shared with a repository, displaying metadata without revealing encrypted values. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_runners List Runners
Lists all self-hosted runners configured in a repository. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_runner_downloads List Runner Downloads
Lists available runner application binaries that can be downloaded and executed for a repository. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
generate_runner_removal_token_repository Generate Runner Removal Token for Repository
Generate a removal token for a self-hosted runner in a repository. The token expires after one hour and can be used with the config script to remove the runner.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_runner_repo Get Repository Runner
Retrieve details for a specific self-hosted runner configured in a repository. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to retrieve. |
remove_runner_from_repository Remove Runner From Repository
Permanently remove a self-hosted runner from a repository. Use this endpoint when the runner machine no longer exists or you need to completely deregister it from the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to remove. |
list_runner_labels_for_repo List Runner Labels for Repository
Retrieve all labels assigned to a self-hosted runner in a repository. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner. |
add_labels_to_runner_for_repo Add Labels to Runner for Repo
Add custom labels to a self-hosted runner in a repository. Requires admin access to the organization and `repo` scope for authentication.
| Parameter | Type | Description |
|---|---|---|
labels * | array | An array of custom label names to add to the runner. Each label is a string identifier. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to add labels to. |
update_runner_labels_repo Update Runner Labels for Repository
Replace all custom labels for a self-hosted runner in a repository. Requires admin access to the repository and appropriate OAuth or personal access token permissions.
| Parameter | Type | Description |
|---|---|---|
labels * | array | An array of custom label names to assign to the runner. Pass an empty array to remove all custom labels. Labels are unordered. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner to update. |
remove_all_custom_labels_from_runner_for_repo Remove All Custom Labels From Runner for Repo
Remove all custom labels from a self-hosted runner in a repository, returning only the read-only labels that remain. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner. |
remove_runner_label Remove Runner Label
Remove a custom label from a self-hosted runner in a repository. Returns the remaining labels after removal. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the custom label to remove from the runner. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
runner_id * | integer | The unique identifier of the self-hosted runner. |
list_workflow_runs List Workflow Runs
Retrieve all workflow runs for a repository with optional filtering by actor, branch, date range, and other criteria. Anyone with read access can use this endpoint; up to 1,000 results are returned per search when using certain filter parameters.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
actor | string | Filter results to workflow runs created by a specific user. Use the login name of the user who created the associated push or check suite. |
branch | string | Filter results to workflow runs associated with a specific branch. Use the branch name from the push event. |
check_suite_id | integer | Filter results to workflow runs associated with a specific check suite ID. |
created | string | Filter results to workflow runs created within a specified date-time range using GitHub search syntax (e.g., `>2023-01-01`, `2023-01-01..2023-12-31`). |
exclude_pull_requests | boolean | Exclude pull request workflow runs from the response when set to true. |
head_sha | string | Filter results to workflow runs associated with a specific commit SHA. |
get_workflow_run Get Workflow Run
Retrieve details about a specific workflow run in a repository. Anyone with read access can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run. |
exclude_pull_requests | boolean | If true, pull requests are omitted from the response as an empty array. |
delete_workflow_run Delete Workflow Run
Delete a specific workflow run from a repository. Requires write access to the repository; private repositories need the `repo` scope for OAuth tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to delete. |
list_workflow_run_approvals List Workflow Run Approvals
Retrieve the review and approval history for a specific workflow run. Anyone with read access to the repository can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
run_id * | integer | The unique identifier of the workflow run to retrieve approvals for. |
approve_workflow_run Approve Workflow Run
Approve a workflow run for a pull request from a public fork of a first-time contributor. This allows the workflow to proceed after security review. Requires `repo` scope authentication.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
run_id * | integer | The unique identifier of the workflow run to approve. |
list_workflow_run_artifacts List Workflow Run Artifacts
Lists all artifacts generated by a specific workflow run. Requires read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run. |
direction | string | The direction to sort the results by. |
get_workflow_run_attempt Get Workflow Run Attempt
Retrieve details about a specific workflow run attempt. Anyone with read access to the repository can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
attempt_number * | integer | The attempt number of the workflow run. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run. |
exclude_pull_requests | boolean | If true, pull requests are omitted from the response as an empty array. |
list_workflow_run_attempt_jobs List Workflow Run Attempt Jobs
Lists all jobs for a specific workflow run attempt. Use this endpoint to retrieve job details and status for a particular attempt of a workflow run.
| Parameter | Type | Description |
|---|---|---|
attempt_number * | integer | The attempt number of the workflow run, used to identify a specific retry or re-run of the workflow. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run. |
download_workflow_run_attempt_logs Download Workflow Run Attempt Logs
Retrieves a redirect URL to download an archive of log files for a specific workflow run attempt. The download link expires after 1 minute, so check the `Location` response header for the actual download URL.
| Parameter | Type | Description |
|---|---|---|
attempt_number * | integer | The attempt number of the workflow run, indicating which retry or re-run of the workflow to retrieve logs for. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run. |
cancel_workflow_run Cancel Workflow Run
Cancel an in-progress workflow run by its unique identifier. Requires `repo` scope authorization.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to cancel. |
review_deployment_protection_rule Review Deployment Protection Rule
Approve or reject custom deployment protection rules for a workflow run. This allows GitHub Apps to review their own deployment protection rules before allowing a workflow to proceed to a specified environment.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment for which to approve or reject the deployment protection rule. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to review protection rules for. |
comment | string | Optional comment to associate with the deployment protection rule review. Required if state is not provided. |
state | string | The decision for the deployment protection rule: approve to allow deployment or reject to block it. |
force_cancel_workflow_run Force Cancel Workflow Run
Force cancel a workflow run, bypassing conditions like `always()` that would normally allow execution to continue. Use this only when the standard cancel endpoint is unresponsive.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to force cancel. |
list_workflow_run_jobs List Workflow Run Jobs
Retrieve all jobs associated with a specific workflow run, with optional filtering to show only the latest execution or all historical executions. Requires read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to retrieve jobs for. |
filter | string | Filter jobs by execution recency. Use `latest` to return jobs from the most recent execution, or `all` to return jobs from all historical executions of the workflow run. |
get_workflow_run_logs_download_url Get Workflow Run Logs Download URL
Retrieves a temporary download URL for workflow run logs archive. The returned redirect URL expires after 1 minute and is found in the Location response header.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to download logs for. |
delete_workflow_run_logs Delete Workflow Run Logs
Permanently delete all logs associated with a specific workflow run. Requires `repo` scope authentication.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
run_id * | integer | The unique identifier of the workflow run whose logs should be deleted. |
list_pending_deployments List Pending Deployments
Retrieve all deployment environments for a workflow run that are awaiting protection rule approval. This endpoint helps identify which deployments are blocked and require manual or automated approval to proceed.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
run_id * | integer | The unique identifier of the workflow run to retrieve pending deployments for. |
review_pending_deployments Review Pending Deployments
Approve or reject pending deployments awaiting reviewer approval for a workflow run. Required reviewers with repository access can use this endpoint to gate deployments to specified environments.
| Parameter | Type | Description |
|---|---|---|
comment * | string | A comment to accompany the deployment review, providing context for the approval or rejection decision. |
environment_ids * | array | The list of environment IDs to approve or reject. Order is not significant. Each ID must be a valid environment identifier. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to review pending deployments for. |
state * | string | Whether to approve or reject deployment to the specified environments. |
rerun_workflow Rerun Workflow
Re-run a workflow by its run ID. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
run_id * | integer | The unique identifier of the workflow run to re-run. |
enable_debug_logging | boolean | Enable debug logging for the workflow re-run to capture additional diagnostic information. |
rerun_workflow_failed_jobs Rerun Workflow Failed Jobs
Re-run all failed jobs and their dependent jobs in a workflow run. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to re-run failed jobs from. |
enable_debug_logging | boolean | Whether to enable debug logging for the re-run. |
get_workflow_run_usage Get Workflow Run Usage
Retrieve billable minutes and total execution time for a specific workflow run. This endpoint is deprecated and will be shut down; refer to GitHub's official announcement for migration guidance.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
run_id * | integer | The unique identifier of the workflow run to retrieve usage metrics for. |
list_repository_secrets List Repository Secrets
Retrieve all secrets configured in a repository without exposing their encrypted values. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner account of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_repository_public_key Get Repository Public Key
Retrieves the public key for a repository, which is required to encrypt secrets before creating or updating them. Read access to the repository is sufficient to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_repository_secret Get Repository Secret
Retrieve metadata for a specific repository secret without exposing its encrypted value. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner account of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
secret_name * | string | The name of the secret to retrieve. |
delete_repository_secret Delete Repository Secret
Delete a secret from a repository by name. Requires collaborator access and appropriate authentication scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository, excluding the `.git` extension. Case-insensitive. |
secret_name * | string | The name of the secret to delete. |
list_repository_variables List Repository Variables
Retrieve all variables configured for a repository. Authenticated users must have collaborator access to read variables.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
create_repository_variable Create Repository Variable
Create a repository variable for use in GitHub Actions workflows. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable. Used as the identifier for referencing this variable in workflows. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
value * | string | The value assigned to the variable. This is the data that will be available in GitHub Actions workflows. |
get_repository_variable Get Repository Variable
Retrieve a specific variable from a repository. The authenticated user must have collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_repository_variable Update Repository Variable
Update a repository variable that can be referenced in GitHub Actions workflows. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
value | string | The new value for the variable. |
delete_repository_variable Delete Repository Variable
Delete a repository variable by name. Requires collaborator access to the repository and appropriate OAuth or personal access token permissions.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the variable to delete. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_workflows List Workflows
Lists all workflows in a repository. Anyone with read access can use this endpoint; private repositories require the `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_workflow Get Workflow
Retrieve a specific workflow by its ID or file name. Anyone with read access to the repository can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
workflow_id * | string | The ID of the workflow or the workflow file name (e.g., `main.yaml`). Accepts integer ID or string file name. |
disable_workflow Disable Workflow
Disable a workflow and set its state to `disabled_manually`. You can reference the workflow by its ID or file name (e.g., `main.yaml`).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
workflow_id * | string | The ID of the workflow or the workflow file name as a string identifier. |
trigger_workflow Trigger Workflow
Manually trigger a GitHub Actions workflow run by dispatching a workflow_dispatch event. The workflow must be configured to respond to workflow_dispatch events, and you can optionally provide input values that are defined in the workflow file.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The git reference (branch or tag name) where the workflow should run. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
workflow_id * | string | The ID of the workflow. You can also pass the workflow file name as a string. |
inputs | object | Input keys and values configured in the workflow file. Maximum of 25 properties. Default values from the workflow file are used if inputs are omitted. |
return_run_details | boolean | Whether the response should include the workflow run ID and URLs. |
enable_workflow Enable Workflow
Activates a workflow by setting its state to active. You can reference the workflow by its ID or file name (e.g., main.yaml).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the .git extension. The name is case-insensitive. |
workflow_id * | string | The workflow identifier, which can be either the numeric ID or the workflow file name (e.g., main.yaml). |
list_workflow_runs_for_workflow List Workflow Runs
List all workflow runs for a specific workflow in a repository. You can filter results by actor, branch, date range, and other criteria to narrow down the results.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
workflow_id * | string | The ID of the workflow or the workflow file name (e.g., `main.yaml`). Accepts both string and integer formats. |
actor | string | Filter results to show workflow runs created by a specific user. Use the login name of the user who created the associated push. |
branch | string | Filter results to show workflow runs associated with a specific branch. Use the branch name from the push event. |
check_suite_id | integer | Filter results to show workflow runs associated with a specific check suite ID. |
created | string | Filter results to show workflow runs created within a specified date-time range. Use standard search syntax for date queries. |
exclude_pull_requests | boolean | If true, pull request workflow runs are excluded from the response. |
head_sha | string | Filter results to show only workflow runs associated with the specified commit SHA. |
list_repository_activities List Repository Activities
Retrieve a detailed history of repository changes including pushes, merges, force pushes, and branch modifications, with associations to commits and users. Use filters to narrow results by actor, time period, or activity type.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
activity_type | string | Filter activities by type (e.g., `force_push` to show only force pushes, `pr_merge` to show pull request merges). |
actor | string | Filter activities by the GitHub username of the user who performed the action. |
direction | string | The sort order for results. |
time_period | string | Filter activities by the time window in which they occurred (e.g., `day` for the past 24 hours, `week` for the past 7 days). |
list_assignees List Assignees
Retrieves the list of available assignees for issues and pull requests in a repository. Use this to discover which users can be assigned to work items.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
verify_assignee_permission Verify Assignee Permission
Verify whether a user has permission to be assigned to issues in a repository. Returns a 204 status if the user can be assigned, or 404 if they cannot.
| Parameter | Type | Description |
|---|---|---|
assignee * | string | The username of the user to check for assignment permission. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_attestation Create Attestation
Store an artifact attestation and associate it with a repository. The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
dsseEnvelope | object | The DSSE (Dead Simple Signing Envelope) containing the signed attestation statement and signature. |
mediaType | string | The media type that specifies the format of the attestation payload being submitted. |
verificationMaterial | object | The verification material containing cryptographic proof and supporting evidence for the attestation. |
list_attestations List Attestations
Retrieve artifact attestations for a given subject digest in a repository. The authenticated user must have read access to the repository and the `attestations:read` permission when using fine-grained access tokens. Attestations should be cryptographically verified using GitHub CLI before relying on them for security decisions.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
subject_digest * | string | The attestation subject's SHA256 digest in the format `sha256:HEX_DIGEST`. |
predicate_type | string | Optional filter to retrieve attestations matching a specific predicate type. Supports standard types like provenance and sbom, or custom freeform text for user-defined predicates. |
list_autolinks List Autolinks
Retrieve all autolinks configured for a repository. This operation is only available to repository administrators and returns autolink configurations that automatically convert references to external URLs.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_autolink Create Autolink
Create an autolink reference for a repository to automatically generate links when a key prefix is found in issues, pull requests, or commits. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
key_prefix * | string | The prefix that triggers autolink generation when found in issues, pull requests, or commits. The prefix is appended by certain characters to create the link. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
url_template * | string | The URL template for the generated link. Must contain `<num>` as a placeholder for the reference number, which matches alphanumeric or numeric characters depending on the `is_alphanumeric` setting. |
is_alphanumeric | boolean | Whether the autolink matches alphanumeric characters (A-Z case-insensitive, 0-9, and hyphen) or only numeric characters. |
get_autolink Get Autolink
Retrieve a specific autolink reference configured for a repository by its unique identifier. Only repository administrators can access autolink information.
| Parameter | Type | Description |
|---|---|---|
autolink_id * | integer | The unique identifier of the autolink to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_autolink Delete Autolink
Delete an autolink reference from a repository by its unique identifier. Only repository administrators can perform this action.
| Parameter | Type | Description |
|---|---|---|
autolink_id * | integer | The unique identifier of the autolink to delete. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_automated_security_fixes_status Get Automated Security Fixes Status
Retrieve the Dependabot security updates configuration status for a repository. Returns whether security updates are enabled, disabled, or paused. Requires admin read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
enable_automated_security_fixes Enable Automated Security Fixes
Enable Dependabot security updates for a repository to automatically detect and fix vulnerable dependencies. The authenticated user must have admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
disable_automated_security_fixes Disable Automated Security Fixes
Disable Dependabot security updates for a repository. The authenticated user must have admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_branches List Branches
Retrieve a list of branches in a repository, with optional filtering by protection status. Use the protected parameter to filter for branches with active branch protections or rulesets.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
protected | boolean | Filter branches by protection status. Set to `true` to return only branches protected by branch protections or rulesets, or `false` to return only unprotected branches. Omit to return all branches. |
get_branch Get Branch
Retrieve detailed information about a specific branch in a repository, including its commit reference and protection status.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard-based branch queries. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_branch_protection Get Branch Protection
Retrieve branch protection rules for a specific branch. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
configure_branch_protection Configure Branch Protection
Configure comprehensive protection rules for a repository branch, including status checks, pull request reviews, push restrictions, and merge requirements. Requires admin or owner permissions.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch name to protect. Wildcard characters are not supported; use GraphQL API for pattern-based protection. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
restrictionsTeams * | array | Team slugs with push access to the branch. Order is not significant. |
restrictionsUsers * | array | User logins with push access to the branch. Order is not significant. |
strict * | boolean | Require branches to be up to date with the base branch before merging. |
allow_deletions | boolean | Allow deletion of the protected branch by users with write access. |
allow_force_pushes | boolean | Allow force pushes to the protected branch for users with write access. Set to `null` to block force pushes. |
allow_fork_syncing | boolean | Allow users to pull changes from upstream when the branch is locked, enabling fork synchronization. |
block_creations | boolean | Block creation of new branches when push restrictions are enabled, unless the push is from an authorized user, team, or app. |
bypass_pull_request_allowancesApps | array | App slugs allowed to bypass pull request review requirements. Order is not significant. |
bypass_pull_request_allowancesTeams | array | Team slugs allowed to bypass pull request review requirements. Order is not significant. |
bypass_pull_request_allowancesUsers | array | User logins allowed to bypass pull request review requirements. Order is not significant. |
checks | array | List of status checks that must pass before merging. Order is not significant. |
dismiss_stale_reviews | boolean | Automatically dismiss approving reviews when new commits are pushed. |
dismissal_restrictionsApps | array | App slugs with permission to dismiss pull request reviews. Order is not significant. |
dismissal_restrictionsTeams | array | Team slugs with permission to dismiss pull request reviews. Order is not significant. |
dismissal_restrictionsUsers | array | User logins with permission to dismiss pull request reviews. Order is not significant. |
enforce_admins | boolean | Enforce all configured restrictions for administrators. Set to `true` to apply required status checks to admins, or `null` to disable enforcement. |
lock_branch | boolean | Set the branch as read-only, preventing all pushes. Users cannot push to a locked branch. |
require_code_owner_reviews | boolean | Require code owners to review pull requests before merging. |
require_last_push_approval | boolean | Require the most recent push to be approved by someone other than the person who pushed it. |
required_approving_review_count | integer | Number of reviewers required to approve pull requests. Valid range is 0 to 6, where 0 means no reviewer approval required. |
required_conversation_resolution | boolean | Require all conversations on code to be resolved before merging pull requests. |
required_linear_history | boolean | Enforce a linear commit history by preventing merge commits. Requires squash or rebase merging to be enabled. |
restrictionsApps | array | App slugs with push access to the branch. Order is not significant. |
remove_branch_protection Remove Branch Protection
Remove branch protection rules from a specified branch. Branch protection is available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to remove protection from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_branch_admin_protection Get Branch Admin Protection
Retrieve whether admin enforcement is enabled for a protected branch. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, Team, Enterprise Cloud, and Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
enforce_admin_branch_protection Enforce Admin Branch Protection
Enforce admin branch protection on a protected branch, requiring administrators to follow branch protection rules. This action requires admin or owner permissions and branch protection to be already enabled.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to enforce admin protection on. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
disable_admin_branch_protection Disable Admin Branch Protection
Disable admin enforcement on a protected branch. Requires admin or owner permissions and branch protection must already be enabled.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to modify. Cannot contain wildcard characters. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
check_branch_signature_protection Check Branch Signature Protection
Check whether a branch requires signed commits. Returns the signature protection status for a protected branch when you have admin or owner permissions to the repository.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to check for signature protection requirements. Cannot contain wildcard characters. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
disable_branch_signature_protection Disable Branch Signature Protection
Disable required commit signature protection on a branch. Requires admin or owner permissions to the repository and branch protection must already be enabled.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
get_branch_status_checks_protection Get Branch Status Checks Protection
Retrieve the required status checks protection rules for a branch. Status checks must pass before pull requests can be merged into the protected branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
disable_branch_status_check_protection Disable Branch Status Check Protection
Remove status check protection requirements from a branch. This allows commits to be merged without passing required status checks. Status check protection is available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to remove status check protection from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_status_check_contexts List Status Check Contexts
Retrieve all required status check contexts for a protected branch. Status checks must pass before merging is allowed on the specified branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to retrieve status check contexts for. Cannot contain wildcard characters; use GraphQL API for wildcard support. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
remove_branch_protection_status_check_contexts Remove Branch Protection Status Check Contexts
Remove specific status check contexts from a protected branch's required status checks. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | An array of status check context strings to remove from the branch's required status checks. Each context identifies a specific status check (e.g., a CI/CD service). |
list_branch_access_restrictions List Branch Access Restrictions
List users, teams, and apps with access to a protected branch. Access restrictions are only available for organization-owned repositories.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use GraphQL API for wildcard support. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
remove_branch_protection_restrictions Remove Branch Protection Restrictions
Remove access restrictions from a protected branch, allowing anyone with push access to the repository to push to this branch. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to remove restrictions from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_apps_with_protected_branch_access List Apps with Protected Branch Access
Lists the GitHub Apps that have push access to a protected branch. Only GitHub Apps installed on the repository with write access to repository contents can be authorized on a protected branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_branch_protection_app_restrictions Update Branch Protection App Restrictions
Replace the list of GitHub Apps with push access to a protected branch. This operation removes all previously authorized apps and grants push access only to the newly specified apps. Only GitHub Apps installed on the repository with write access to repository contents can be authorized.
| Parameter | Type | Description |
|---|---|---|
apps * | array | The GitHub Apps that have push access to this branch, specified using the slugified version of each app name. The total number of users, apps, and teams combined cannot exceed 100 items. |
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
revoke_app_branch_push_access Revoke App Branch Push Access
Revoke push access permissions for GitHub Apps on a protected branch. This operation removes the ability of specified apps to push to the branch; only apps installed on the repository with write access can be managed.
| Parameter | Type | Description |
|---|---|---|
apps * | array | Array of GitHub App slugified names to revoke push access from. The combined total of users, apps, and teams cannot exceed 100 items. Order is not significant. |
branch * | string | The branch name. Wildcard characters are not supported; use GraphQL API for wildcard branch operations. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
list_teams_with_branch_access List Teams with Branch Access
List teams with push access to a protected branch, including child teams. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
grant_team_branch_push_access Grant Team Branch Push Access
Grant specified teams push access to a protected branch. This operation allows you to add team-level access restrictions, including child teams, to control who can push to the branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to restrict. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | List of team slugs to grant push access to this branch. Teams can include child teams. |
replace_branch_protection_team_restrictions Replace Branch Protection Team Restrictions
Replace the list of teams with push access to a protected branch. This operation removes all previously granted team access and applies the new team list, including child teams.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to protect. Cannot contain wildcard characters; use GraphQL API for wildcard support. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | Array of team slugs to grant push access to the protected branch. Replaces all existing team restrictions. |
revoke_team_branch_push_access Revoke Team Branch Push Access
Revoke a team's ability to push to a protected branch. This removes push access for the specified team and its child teams. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to modify protection restrictions for. Cannot contain wildcard characters. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | List of team slugs to remove push access from the branch. |
list_branch_protection_users List Branch Protection Users
List users with push access to a protected branch. Protected branches are available in public repositories with GitHub Free and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard support. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
grant_user_push_access Grant User Push Access
Grant push access to specified users on a protected branch. The total number of users, apps, and teams combined cannot exceed 100 items.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch. Cannot contain wildcard characters. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
users * | array | List of usernames to grant push access. Order is not significant. The combined total of users, apps, and teams cannot exceed 100 items. |
revoke_user_branch_access Revoke User Branch Access
Revoke push access to a protected branch for specified users. This operation removes the ability for one or more users to push commits to the branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to modify protection restrictions for. Cannot contain wildcard characters. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
users * | array | Array of usernames to revoke push access from. The combined total of users, apps, and teams cannot exceed 100 items. |
rename_branch Rename Branch
Rename a branch in a repository. The authenticated user must have push access to the branch, and admin/owner permissions if renaming the default branch. Note that the rename process may take time to complete in the background.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The current name of the branch. Cannot contain wildcard characters. |
new_name * | string | The new name for the branch. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
create_check_run Create Check Run
Creates a new check run for a specific commit in a repository. Requires a GitHub App and enforces a limit of 1000 check runs with the same name per check suite.
| Parameter | Type | Description |
|---|---|---|
body * | Check run configuration including the commit SHA, status, conclusion, output details with annotations and images, and optional actions. Supports both in-progress and completed states. | |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_check_run Get Check Run
Retrieve a single check run by its unique identifier. Returns detailed information about the check run's status, conclusion, and associated metadata.
| Parameter | Type | Description |
|---|---|---|
check_run_id * | integer | The unique identifier of the check run to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_check_run Update Check Run
Update the status, conclusion, and output details of a check run for a specific commit. This allows you to report test results, annotations, and other check metadata back to GitHub.
| Parameter | Type | Description |
|---|---|---|
body * | The check run update payload containing status, conclusion, output details, and optional annotations. Supports structured output with title, summary, text, and file-level annotations with severity lev… | |
check_run_id * | integer | The unique identifier of the check run to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_check_run_annotations List Check Run Annotations
Lists all annotations for a specific check run. Requires `repo` scope for private repositories when using OAuth app tokens or personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
check_run_id * | integer | The unique identifier of the check run for which to retrieve annotations. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
trigger_check_run_recheck Trigger Check Run Recheck
Trigger a recheck of an existing check run without requiring new code to be pushed. This action resets the associated check suite status to queued and clears its conclusion, allowing GitHub Apps to decide whether to update the check run via the update endpoint.
| Parameter | Type | Description |
|---|---|---|
check_run_id * | integer | The unique identifier of the check run to recheck. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_check_suite Create Check Suite
Manually create a check suite for a repository commit. Use this endpoint only when automatic check suite creation has been disabled via repository preferences.
| Parameter | Type | Description |
|---|---|---|
head_sha * | string | The commit SHA (hash) that identifies the head commit for which to create the check suite. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_check_suite Get Check Suite
Retrieve a single check suite by its unique identifier. Returns detailed information about the check suite including its status, conclusion, and associated check runs.
| Parameter | Type | Description |
|---|---|---|
check_suite_id * | integer | The unique identifier of the check suite to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_check_runs List Check Runs for Suite
Lists all check runs for a specific check suite. Use this to retrieve detailed results of checks that ran as part of a suite.
| Parameter | Type | Description |
|---|---|---|
check_suite_id * | integer | The unique identifier of the check suite to retrieve check runs from. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
check_name | string | Filter results to return only check runs with the specified name. |
filter | string | Filter check runs by their completion status. Use `latest` to return only the most recent check runs, or `all` to return all check runs. |
rerun_check_suite Rerun Check Suite
Rerun a check suite without pushing new code to the repository. This triggers the check_suite webhook event with the `rerequested` action, resetting the suite's status to `queued` and clearing its conclusion.
| Parameter | Type | Description |
|---|---|---|
check_suite_id * | integer | The unique identifier of the check suite to rerun. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_code_scanning_alerts_repository List Code Scanning Alerts for Repository
Lists code scanning alerts for a repository, including details of the most recent instance on the default branch or specified Git reference. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
assignees | string | Filter alerts by assignees using a comma-separated list of user handles. Use `*` to include alerts with at least one assignee or `none` to include alerts with no assignees. |
direction | string | The direction to sort the results by. |
state | string | Filter alerts by their current state. Only alerts matching the specified state will be returned. |
get_code_scanning_alert Get Code Scanning Alert
Retrieve a specific code scanning alert by its number. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_code_scanning_alert Update Code Scanning Alert
Update the status and metadata of a code scanning alert, including dismissal state, reason, and assignees. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
assignees | array | A list of users to assign to the alert. Provide an empty array to unassign all previous assignees. |
create_request | boolean | If `true`, attempt to create an alert dismissal request alongside the status update. |
dismissed_comment | string | An optional comment explaining the dismissal decision, up to 280 characters. |
dismissed_reason | string | The reason for dismissing the alert. Required when `state` is set to `dismissed`. |
state | string | The desired state of the code scanning alert. When set to `dismissed`, you must provide a `dismissed_reason`. |
get_autofix_status Get Autofix Status
Retrieve the status and description of an autofix for a code scanning alert. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_code_scanning_autofix Create Code Scanning Autofix
Initiates autofix generation for a code scanning alert. Returns 202 Accepted if a new autofix is being created, or 200 OK if one already exists for the alert.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
commit_code_scanning_autofix Commit Code Scanning Autofix
Commits an autofix for a code scanning alert to a specified branch. Returns a 201 Created response if the autofix is successfully committed.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
message | string | Custom commit message for the autofix. If not provided, a default message will be used. |
target_ref | string | The Git reference (branch name) where the autofix commit will be created. The branch must already exist. |
list_code_scanning_alert_instances List Code Scanning Alert Instances
Lists all instances of a specified code scanning alert within a repository. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_code_scanning_analyses List Code Scanning Analyses
Retrieve code scanning analyses for a repository, ordered by most recent first. Results are paginated with 30 analyses per page by default.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
direction | string | Sort direction for the analyses list. |
sarif_id | string | Filter analyses to those belonging to a specific SARIF upload batch. |
get_code_scanning_analysis Get Code Scanning Analysis
Retrieve a specific code scanning analysis for a repository, including details about the scan results, tool used, and alert counts. Supports SARIF format output for detailed analysis data.
| Parameter | Type | Description |
|---|---|---|
analysis_id * | integer | The unique identifier of the code scanning analysis to retrieve, as returned from the list analyses operation. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_code_scanning_analysis Delete Code Scanning Analysis
Delete a code scanning analysis from a repository. Only the most recent analysis in a set (determined by unique ref, tool, and category combinations) can be deleted. Use the returned URLs to delete subsequent analyses in the set or confirm deletion of the final analysis.
| Parameter | Type | Description |
|---|---|---|
analysis_id * | integer | The ID of the analysis to delete, as returned from the list code scanning analyses operation. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
confirm_delete | string | Set to `true` to allow deletion of the final analysis in a set. Required when deleting the last analysis to prevent accidental loss of historical alert data. |
list_codeql_databases List CodeQL Databases
Lists all CodeQL databases available in a repository. Requires `repo` scope for private repositories or `public_repo` scope for public repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_codeql_database Get CodeQL Database
Retrieve a CodeQL database for a specific language in a repository. Returns JSON metadata by default; set Accept header to application/zip to download the binary database file.
| Parameter | Type | Description |
|---|---|---|
language * | string | The programming language for which to retrieve the CodeQL database. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the .git extension. Case-insensitive. |
delete_codeql_database Delete CodeQL Database
Delete a CodeQL database for a specific language from a repository. Requires `repo` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
language * | string | The programming language of the CodeQL database to delete. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_variant_analysis Create Variant Analysis
Create a new CodeQL variant analysis to run a CodeQL query against one or more repositories. The analysis will execute within the specified controller repository using GitHub Actions workflows and store results there.
| Parameter | Type | Description |
|---|---|---|
language * | string | The programming language targeted by the CodeQL query. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
query_pack * | string | A Base64-encoded tarball containing a CodeQL query and all its dependencies. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_variant_analysis Get Variant Analysis
Retrieve the summary of a CodeQL variant analysis by its unique identifier. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
codeql_variant_analysis_id * | integer | The unique identifier of the CodeQL variant analysis to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_variant_analysis_repository_status Get Variant Analysis Repository Status
Retrieve the analysis status and results of a specific repository within a CodeQL variant analysis. Requires `security_events` scope for private/public repositories or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
codeql_variant_analysis_id * | integer | The unique identifier of the CodeQL variant analysis. |
owner * | string | The account owner of the controller repository. Case-insensitive. |
repo * | string | The name of the controller repository. |
repo_name * | string | The name of the repository being analyzed in the variant analysis. |
repo_owner * | string | The account owner of the repository being analyzed in the variant analysis. Case-insensitive. |
get_code_scanning_default_setup Get Code Scanning Default Setup
Retrieves the default setup configuration for code scanning in a repository. Requires `repo` scope for private repositories or `public_repo` scope for public repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
upload_sarif Upload SARIF
Upload SARIF-formatted code scanning analysis results to a repository. Results can be mapped to pull requests for check annotations or to branches for the Security tab, with automatic prioritization when data exceeds platform limits.
| Parameter | Type | Description |
|---|---|---|
commit_sha * | string | The 40-character SHA hash of the commit associated with this analysis. |
owner * | string | The account owner of the repository. |
ref * | string | The full Git reference where results will be associated. Use refs/heads/<branch> for branches, refs/tags/<tag> for tags, or refs/pull/<number>/merge or refs/pull/<number>/head for pull requests. |
repo * | string | The name of the repository (without the .git extension). |
sarif * | string | The SARIF file compressed with gzip and encoded as Base64. Compress your SARIF file first, then encode the binary output to Base64 format. |
checkout_uri | string | The base directory used during analysis (as it appears in the SARIF file). Used to convert absolute file paths to repository-relative paths for accurate alert mapping. |
validate | boolean | Whether to validate the SARIF file against code scanning specifications. Useful for integrators to verify correct rendering before production use. |
get_sarif_upload Get SARIF Upload
Retrieve details about a SARIF upload including its processing status and the URL to access the uploaded analysis results. Use this to check the status of a code scanning analysis that was previously uploaded.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
sarif_id * | string | The unique identifier of the SARIF upload, obtained when the SARIF file was initially uploaded. |
get_repository_code_security_configuration Get Repository Code Security Configuration
Retrieve the code security configuration that manages a repository's security settings. The authenticated user must be an administrator or security manager for the organization.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
list_codeowners_errors List Codeowners Errors
List any syntax errors detected in the repository's CODEOWNERS file. Use this to validate CODEOWNERS syntax and identify issues that need correction.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_codespaces_in_repository List Codespaces in Repository
Lists all codespaces associated with a specified repository for the authenticated user. Requires the `codespace` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_codespace Create Codespace
Create a new codespace in a repository for the authenticated user. Requires the `codespace` OAuth scope or personal access token (classic) scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
devcontainer_path | string | Path to the devcontainer.json configuration file within the repository to use for this codespace. |
display_name | string | A human-readable display name for this codespace. |
geo | string | The geographic region where the codespace will be hosted. If not specified, the region is determined by the user's IP address. |
idle_timeout_minutes | integer | Time in minutes before the codespace automatically stops due to inactivity. |
machine | string | The machine type to use for this codespace, determining compute resources and performance characteristics. |
multi_repo_permissions_opt_out | boolean | Whether to opt out of authorizing permissions requested in the devcontainer.json configuration. |
retention_period_minutes | integer | Duration in minutes after the codespace becomes idle before it is automatically deleted. Must be between 0 and 43200 minutes (30 days). |
working_directory | string | The default working directory to open when the codespace starts. |
list_devcontainers List Dev Containers in Repository
Lists all devcontainer.json configuration files in a repository that are accessible to the authenticated user. These configurations define the development environment setup for codespaces created from this repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the .git extension. The name is case-insensitive. |
list_codespace_machines List Codespace Machines
List the machine types available for a repository based on its configuration. Use this to determine which machine specifications can be used when creating or updating a codespace for the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_codespace_defaults Get Codespace Defaults
Retrieve the default configuration attributes for creating a new codespace in a repository. This includes machine types, regions, and other preset values based on the repository's codespace settings.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
list_codespace_secrets List Codespace Secrets
Lists all development environment secrets available in a repository without revealing their encrypted values. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_codespace_public_key Get Codespace Public Key
Retrieve the public key for a repository, which is required to encrypt secrets before creating or updating them in Codespaces. For private repositories, the request requires the `repo` scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_codespace_secret Get Codespace Secret
Retrieve a repository development environment secret without revealing its encrypted value. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
secret_name * | string | The name of the secret to retrieve. |
create_or_update_codespace_secret_repository Create or Update Codespace Repository Secret
Create or update an encrypted repository secret for GitHub Codespaces. The secret value must be encrypted using LibSodium with the repository's public key before submission.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
secret_name * | string | The name of the secret to create or update. |
encrypted_value | string | The encrypted value for the secret. Must be encrypted using LibSodium with the public key retrieved from the Get repository public key endpoint. The encrypted value must be base64-encoded. |
key_id | string | The ID of the public key used to encrypt the secret. Retrieve this from the Get repository public key endpoint. |
delete_codespace_secret Delete Codespace Secret
Delete a development environment secret from a repository. Requires repository admin access and the `repo` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
secret_name * | string | The name of the secret to delete. |
list_collaborators List Repository Collaborators
List all collaborators on a repository, including outside collaborators, organization members, and team members. The authenticated user must have write, maintain, or admin privileges to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
affiliation | string | Filter collaborators by their affiliation type. Use 'outside' for external collaborators only, 'direct' for all collaborators regardless of organization membership, or 'all' to include all visible col… |
permission | string | Filter collaborators by the permissions they have on the repository. If not specified, all collaborators are returned regardless of permission level. |
verify_repository_collaborator Verify Repository Collaborator
Verify whether a user has collaborator access to a repository. For organization-owned repositories, this includes outside collaborators, direct organization members, members with team-based access, and owners.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
username * | string | The GitHub username to check for collaborator access. The name is not case sensitive. |
add_collaborator Add Collaborator
Add a user to a repository with a specified permission level. The user will receive an invitation notification that they must accept or decline, unless they are an Enterprise Managed User who will be automatically added.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
username * | string | The GitHub user account handle to add as a collaborator. |
permission | string | The permission level to grant the collaborator. Valid values are `pull`, `triage`, `push`, `maintain`, `admin`, or a custom repository role name if defined by the organization. Only applicable to orga… |
remove_collaborator Remove Collaborator
Remove a collaborator from a repository. The authenticated user must be a repository administrator or the target user being removed. This action cancels pending invitations, unassigns the user from issues, removes project access, and has cascading effects on forks.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
username * | string | The GitHub user account handle to remove as a collaborator. |
get_collaborator_permission Get Collaborator Permission Level
Retrieve the repository permission level and role assigned to a collaborator. Returns the highest permission across all sources (repository, team, organization, and enterprise grants).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
username * | string | The GitHub username handle for the collaborator whose permissions you want to check. |
list_commit_comments List Commit Comments
Retrieve all commit comments for a repository, ordered by ascending ID. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_commit_comment Get Commit Comment
Retrieve a specific commit comment by its ID. Supports multiple response formats including raw markdown, plain text, HTML, or a combination of all three representations.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the commit comment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_commit_comment Update Commit Comment
Update the contents of a commit comment. Supports multiple response formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
body * | string | The new contents of the comment. Supports markdown formatting. |
comment_id * | string | The unique identifier of the commit comment to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_commit_comment Delete Commit Comment
Delete a commit comment from a repository. This permanently removes the specified comment from a commit.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the commit comment to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_commit_comment_reactions List Commit Comment Reactions
List all reactions or filter by a specific reaction type for a commit comment. Reactions allow users to express sentiment on commit comments using emoji.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the commit comment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content | string | Filter results to a single reaction type. Omit this parameter to list all reactions to the commit comment. |
add_commit_comment_reaction Add Commit Comment Reaction
Add an emoji reaction to a commit comment. Returns HTTP 200 if the reaction type was already added by the authenticated user.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the commit comment to react to. |
content * | string | The emoji reaction type to add to the commit comment. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
remove_commit_comment_reaction Remove Commit Comment Reaction
Remove a reaction from a commit comment. This operation deletes a specific reaction that was previously added to a commit comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the commit comment from which to remove the reaction. |
owner * | string | The owner of the repository. This is case-insensitive. |
reaction_id * | integer | The unique identifier of the reaction to remove. |
repo * | string | The name of the repository, without the `.git` extension. This is case-insensitive. |
list_commits List Commits
Retrieve a list of commits from a repository, with optional filtering by author, committer, or date range. The response includes signature verification details for each commit.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
author | string | Filter commits by the GitHub username or email address of the commit author. |
committer | string | Filter commits by the GitHub username or email address of the commit committer. |
sha | string | SHA or branch name to start listing commits from. Defaults to the repository's default branch if not specified. |
since | string | Only return commits that were last updated after this timestamp. Must be between 1970-01-01 and 2099-12-31. |
until | string | Only return commits before this timestamp. Must be between 1970-01-01 and 2099-12-31. |
list_branches_for_commit List Branches for Commit
List all branches where the given commit SHA is the HEAD (latest commit). Available for public repositories with GitHub Free and in public/private repositories with GitHub Pro or higher plans.
| Parameter | Type | Description |
|---|---|---|
commit_sha * | string | The SHA (commit hash) to find as the HEAD of branches. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_commit_comments_by_sha List Commit Comments by SHA
Retrieve all comments for a specific commit in a repository. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
commit_sha * | string | The commit SHA identifier for which to retrieve comments. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
create_commit_comment Create Commit Comment
Add a comment to a specific commit in a repository. This endpoint triggers notifications and is subject to secondary rate limiting when used rapidly.
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment text content. Supports markdown formatting. |
commit_sha * | string | The commit SHA identifier to comment on. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
position | integer | Optional line index in the diff to attach the comment to. If omitted, the comment is added to the general commit discussion. |
list_pull_requests_for_commit List Pull Requests for Commit
List pull requests associated with a commit. Returns the merged pull request that introduced the commit to the default branch, or both merged and open pull requests if the commit is not in the default branch. You can also use a branch name as the commit_sha parameter to list pull requests associated with that branch.
| Parameter | Type | Description |
|---|---|---|
commit_sha * | string | The SHA of the commit, or alternatively a branch name to list pull requests associated with that branch. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_commit Get Commit
Retrieve detailed information about a specific commit, including file changes, diff, or patch data. Requires read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The commit reference to retrieve. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`). Refer to Git References documentation for valid reference formats. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_check_runs_for_ref List Check Runs for Ref
Lists check runs for a commit reference (SHA, branch, or tag). The endpoint returns up to 1000 most recent check runs; use check suite endpoints for comprehensive iteration.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
ref * | string | The commit reference to query. Can be a commit SHA, branch name (format: `heads/BRANCH_NAME`), or tag name (format: `tags/TAG_NAME`). |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
check_name | string | Filters results to return only check runs with the specified name. |
filter | string | Filters check runs by completion status. Use `latest` for the most recent check runs or `all` to include all check runs. |
list_check_suites List Check Suites for Ref
Lists all check suites for a commit reference (SHA, branch, or tag). The ref can be a commit SHA, branch name with `heads/` prefix, or tag name with `tags/` prefix.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The commit reference to list check suites for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`). |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
check_name | string | Filters results to return only check suites with the specified name. |
get_commit_status Get Commit Status
Retrieve the combined status for a commit reference. Users with pull access can view an aggregated status across all contexts for a given SHA, branch, or tag, with an overall state indicating success, pending, or failure.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
ref * | string | The commit reference to check status for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`). |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_commit_statuses List Commit Statuses
Retrieve commit statuses for a given reference in reverse chronological order, with the latest status appearing first. Requires pull access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
ref * | string | The commit reference to query statuses for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`). |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_repository_community_profile Get Repository Community Profile
Retrieve community health metrics for a repository, including health score, documentation presence, code of conduct, license, and standard community files. The repository cannot be a fork.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
compare_commits Compare Commits
Compare two commits to identify differences between them. Supports comparing branches, tags, and commit SHAs within the same repository or across repositories in the same network, returning a chronologically ordered list of commits and changed files.
| Parameter | Type | Description |
|---|---|---|
basehead * | string | The base and head references to compare, specified as `BASE...HEAD` where both are branch names in the repository. To compare across repositories in the same network, use the format `USERNAME:BASE...U… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_repository_content Get Repository Content
Retrieve the contents of a file or directory in a repository. Supports multiple response formats including raw file content, HTML rendering, and structured object format. Directories return up to 1,000 items; use the Git Trees API for larger directories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
path * | string | The file or directory path within the repository. Omit to retrieve the root directory contents. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
create_or_update_file Create or Update File
Create a new file or update an existing file in a repository. Note: Do not use this endpoint in parallel with the delete file endpoint, as concurrent requests will conflict.
| Parameter | Type | Description |
|---|---|---|
authorEmail * | string | The email address of the author. Required; omitting will result in a 422 error. |
authorName * | string | The name of the author. Required; omitting will result in a 422 error. |
committerEmail * | string | The email address of the committer. Required; omitting will result in a 422 error. |
committerName * | string | The name of the committer. Required; omitting will result in a 422 error. |
content * | string | The new file content encoded in Base64 format. |
message * | string | The commit message describing the change. |
owner * | string | The account owner of the repository. Case-insensitive. |
path * | string | The file path within the repository where the file will be created or updated. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
branch | string | The branch name where the file will be created or updated. Defaults to the repository's default branch if not specified. |
sha | string | The blob SHA of the file being replaced. Required when updating an existing file; omit when creating a new file. |
delete_file Delete File
Delete a file from a repository by providing the file path and commit SHA. The authenticated user or specified committer information will be used for the commit.
| Parameter | Type | Description |
|---|---|---|
message * | string | The commit message describing the deletion. |
owner * | string | The account owner of the repository. Case-insensitive. |
path * | string | The file path within the repository to delete. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
sha * | string | The blob SHA of the file being deleted. Used to prevent concurrent modification conflicts. |
branch | string | The branch name where the file will be deleted. If not specified, defaults to the repository's default branch. |
email | string | The email address of the committer. Required if committer information is provided; must be paired with committer name. |
name | string | The name of the committer. Required if committer information is provided; must be paired with committer email. |
list_contributors List Contributors
Retrieves a list of contributors to a repository, sorted by commit count in descending order. Contributor data may be cached and up to a few hours old, and only the first 500 email addresses are linked to GitHub user accounts.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
anon | string | Include anonymous contributors (those without associated GitHub user accounts) in the results. |
list_dependabot_alerts_repository List Dependabot Alerts for Repository
Retrieve Dependabot security alerts for a repository with optional filtering by state, ecosystem, package, and vulnerability metrics. Requires `security_events` scope or `public_repo` scope for public repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
direction | string | Sort results in ascending or descending order. |
ecosystem | string | Filter alerts by one or more package ecosystems. Specify as comma-separated values to return only alerts for these ecosystems. |
epss_percentage | string | Filter alerts by CVE Exploit Prediction Scoring System (EPSS) percentage. Supports exact values, comparison operators (>, <, >=, <=), or ranges (e.g., 0.5..0.9) with values from 0.0 to 1.0. |
has | Filter alerts based on specific attributes. Multiple filters can be combined to match alerts with all specified attributes. Currently supports `patch` to filter for alerts with available patches. | |
manifest | string | Filter alerts by one or more manifest file paths. Specify as comma-separated values to return only alerts for these manifests. |
package | string | Filter alerts by one or more package names. Specify as comma-separated values to return only alerts for these packages. |
scope | string | Filter alerts by dependency scope within the project. |
state | string | Filter alerts by one or more states. Specify as comma-separated values to return only alerts matching these states. |
get_dependabot_alert Get Dependabot Alert
Retrieve a specific Dependabot security alert for a repository. Requires `security_events` scope for OAuth apps and personal access tokens, or `public_repo` scope for public repositories only.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies a Dependabot alert in its repository. You can find this at the end of the URL for a Dependabot alert within GitHub, or in `number` fields in the response from the `GET /repo… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_dependabot_alert Update Dependabot Alert
Update the state, dismissal reason, and assignees of a Dependabot security alert. The authenticated user must have access to security alerts for the repository.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies a Dependabot alert in its repository. You can find this at the end of the URL for a Dependabot alert within GitHub, or in `number` fields in the response from the `GET /repo… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
assignees | array | GitHub usernames to assign to this alert. Pass one or more logins to replace the current assignees, or an empty array to clear all assignees. |
dismissed_comment | string | An optional comment associated with dismissing the alert. Maximum 280 characters. |
dismissed_reason | string | A reason for dismissing the alert. Required when `state` is set to `dismissed`. |
state | string | The state of the Dependabot alert. When setting to `dismissed`, a `dismissed_reason` must be provided. |
list_dependabot_secrets List Dependabot Secrets
Lists all Dependabot secrets configured for a repository without revealing their encrypted values. Requires `repo` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_dependabot_public_key Get Dependabot Public Key
Retrieves the public key for a repository, which is required to encrypt secrets before creating or updating Dependabot secrets. This endpoint is accessible to anyone with read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_dependabot_secret Get Dependabot Secret
Retrieve a single Dependabot repository secret without revealing its encrypted value. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
secret_name * | string | The name of the Dependabot secret to retrieve. |
create_or_update_dependabot_secret Create or Update Dependabot Secret
Create or update a repository secret for Dependabot with an encrypted value. The secret must be encrypted using LibSodium before submission.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
secret_name * | string | The name of the secret to create or update. |
key_id | string | The ID of the public key used to encrypt the secret. If not provided, the default key for the repository will be used. |
public_key | string | The base64-encoded public key retrieved from the Get a repository public key endpoint |
secret_value | string | The plaintext secret value to be encrypted |
delete_dependabot_secret Delete Dependabot Secret
Delete a Dependabot secret from a repository by its name. Requires `repo` scope authentication.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
secret_name * | string | The name of the Dependabot secret to delete. |
compare_dependency_changes Compare Dependency Changes
Retrieve a detailed diff of dependency changes between two commits by analyzing modifications to dependency manifests. This helps identify what dependencies were added, removed, or updated between specified Git revisions.
| Parameter | Type | Description |
|---|---|---|
basehead * | string | The base and head Git revisions to compare, specified in the format `{base}...{head}`. Git revisions are resolved to commit SHAs, and named revisions (like branch names) are resolved to their correspo… |
owner * | string | The owner account of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
export_sbom Export SBOM
Export the software bill of materials (SBOM) for a repository in SPDX JSON format. This provides a comprehensive inventory of all dependencies and components used in the project.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
submit_dependency_snapshot Submit Dependency Snapshot
Submit a snapshot of a repository's dependencies for a specific commit. This enables dependency tracking and vulnerability analysis by recording the detected dependencies at a point in time.
| Parameter | Type | Description |
|---|---|---|
correlator * | string | A key that groups snapshots submitted over time for the same detector and workflow. Only the latest snapshot for each correlator-detector combination is used for dependency calculation. Should uniquel… |
detectorVersion * | string | The version of the dependency detector tool that generated this snapshot. |
id * | string | A unique external identifier for this detection job run. |
name * | string | The name of the dependency detector tool used to generate this snapshot. |
owner * | string | The account owner of the repository. Case-insensitive. |
ref * | string | The repository branch reference that triggered this snapshot. Must be a full ref path. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
scanned * | string | The timestamp when the dependency snapshot was scanned. |
sha * | string | The commit SHA associated with this dependency snapshot. |
url * | string | The URL or documentation link for the detector tool used. |
version * | integer | The version number of the snapshot submission format being used. |
manifests | object | Optional collection of package manifests representing detected dependencies, organized by logical groups or declaration files. |
metadata | object | Optional user-defined metadata for storing domain-specific information. Limited to 8 keys with scalar values. |
list_deployments List Deployments
Retrieve a list of deployments for a repository with optional filtering by commit SHA, task name, or target environment.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
environment | string | Filter deployments by the target environment name (e.g., `staging` or `production`). |
sha | string | Filter deployments by the commit SHA recorded at creation time. |
task | string | Filter deployments by task name (e.g., `deploy` or `deploy:migrations`). |
create_deployment Create Deployment
Create a deployment for a repository ref (branch, tag, or SHA) to a specified environment. Supports automatic merging, commit status verification, and custom deployment payloads.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. |
ref * | string | The ref to deploy, which can be a branch name, tag, or commit SHA. |
repo * | string | The name of the repository (without the .git extension). |
auto_merge | boolean | Whether to automatically merge the default branch into the requested ref if it's behind. |
description | string | A short description of the deployment. |
environment | string | The target deployment environment name, such as production, staging, or qa. |
payload | A JSON object containing extra information for the deployment system, such as configuration or metadata. | |
production_environment | boolean | Whether the environment is directly used by end-users. Defaults to true for production environments, false otherwise. |
required_contexts | array | An array of commit status context names that must be in success state before deployment. Omit to verify all contexts, or pass an empty array to bypass checks entirely. |
task | string | The task to execute during deployment, such as deploy or deploy:migrations. |
transient_environment | boolean | Whether the environment is temporary and will no longer exist after the deployment completes. |
get_deployment Get Deployment
Retrieve detailed information about a specific deployment in a repository. Returns the deployment's current status, environment, and associated metadata.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | The unique identifier of the deployment to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_deployment Delete Deployment
Delete a deployment from a repository. You can delete any deployment if the repository has only one, but can only delete inactive deployments if multiple exist. To deactivate a deployment, create a new active deployment or add a non-successful deployment status to the current one.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | The unique identifier of the deployment to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_deployment_statuses List Deployment Statuses
Retrieve all deployment statuses for a specific deployment. Users with pull access can view the status history and details of a deployment.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | The unique identifier of the deployment for which to retrieve statuses. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_deployment_status Create Deployment Status
Create a deployment status for a given deployment. Users with push access can report the progress and outcome of a deployment by setting its state, environment, and associated metadata.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | The unique identifier of the deployment for which to create a status. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
state * | string | The state of the deployment status. When set to `inactive` on a transient deployment, it will be displayed as `destroyed` in GitHub. |
auto_inactive | boolean | When true, automatically marks all prior successful non-transient, non-production environment deployments with the same repository and environment name as inactive. |
description | string | A short description of the deployment status. Maximum length is 140 characters. |
environment | string | Name of the target deployment environment (e.g., `production`, `staging`, `qa`). If not specified, the environment from the previous deployment status or the deployment itself will be used. |
environment_url | string | The URL for accessing the deployed environment. |
log_url | string | The full URL of the deployment's output logs. This parameter replaces `target_url` and is the recommended field to use. |
get_deployment_status Get Deployment Status
Retrieve a specific deployment status for a deployment. Users with pull access can view deployment status details to monitor deployment progress and outcomes.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | integer | The unique identifier of the deployment for which to retrieve the status. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
status_id * | integer | The unique identifier of the specific deployment status to retrieve. |
list_environments List Environments
List all environments configured for a repository. Accessible to anyone with read access; private repositories require the `repo` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
get_environment Get Environment
Retrieve detailed information about a specific deployment environment in a repository. Requires read access to the repository; use the `repo` OAuth scope for private repositories.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with forward slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
configure_environment Configure Environment
Create or update a deployment environment with protection rules, including required reviewers and branch policies. This controls which branches can deploy and who must approve deployments to this environment.
| Parameter | Type | Description |
|---|---|---|
custom_branch_policies * | boolean | Whether only branches matching specified name patterns can deploy to this environment. If true, `protected_branches` must be false. |
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
protected_branches * | boolean | Whether only branches with branch protection rules can deploy to this environment. If true, `custom_branch_policies` must be false. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
prevent_self_review | boolean | Whether to prevent the user who created the job from approving their own job. |
reviewers | array | The people or teams that may review and approve jobs referencing this environment. You can specify up to six users or teams, each requiring at least read access to the repository. Only one reviewer ne… |
wait_timer | integer | The number of minutes to delay a job after it is initially triggered. Must be an integer between 0 and 43,200 (30 days). |
delete_environment Delete Environment
Delete a deployment environment from a repository. Requires `repo` scope authentication via OAuth app token or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with forward slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_deployment_branch_policies List Deployment Branch Policies
Lists all deployment branch policies configured for a specific environment in a repository. This endpoint allows you to view which branches are authorized to deploy to the environment.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
create_deployment_branch_policy Create Deployment Branch Policy
Creates a deployment branch or tag policy for an environment, controlling which branches or tags are allowed to deploy. Requires `repo` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name pattern that branches or tags must match to deploy to the environment. Wildcard characters do not match `/`. Use patterns like `release/*/*` to match branches beginning with `release/` and co… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
type | string | Whether this policy targets a branch or tag. |
get_deployment_branch_policy Get Deployment Branch Policy
Retrieve a specific deployment branch or tag policy for a repository environment. This endpoint allows anyone with read access to view policy details that control which branches or tags can be deployed to the environment.
| Parameter | Type | Description |
|---|---|---|
branch_policy_id * | integer | The unique identifier of the branch policy to retrieve. |
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
update_deployment_branch_policy Update Deployment Branch Policy
Update a deployment branch or tag policy for a specific environment. This allows you to modify the branch name pattern that controls which branches can deploy to the environment.
| Parameter | Type | Description |
|---|---|---|
branch_policy_id * | integer | The unique identifier of the branch policy to update. |
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name pattern that branches must match to deploy to the environment. Wildcard characters do not match `/`. Use patterns like `release/*/*` to match branches beginning with `release/` and containing… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_deployment_branch_policy Delete Deployment Branch Policy
Delete a deployment branch or tag policy for an environment. This removes restrictions on which branches or tags can be deployed to the specified environment.
| Parameter | Type | Description |
|---|---|---|
branch_policy_id * | integer | The unique identifier of the branch policy to delete. |
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_deployment_protection_rules List Deployment Protection Rules
Retrieve all custom deployment protection rules enabled for a specific environment. Anyone with read access to the repository can use this endpoint to view deployment safeguards.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by %2F. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the .git extension. The name is case-insensitive. |
list_deployment_rule_integrations List Deployment Rule Integrations
Retrieve all custom deployment protection rule integrations available for a specific environment. The authenticated user must have admin or owner permissions on the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. URL encode special characters, such as replacing forward slashes with `%2F`. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_deployment_protection_rule Get Deployment Protection Rule
Retrieve a custom deployment protection rule for a specific environment. Anyone with read access to the repository can use this endpoint.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced with `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
protection_rule_id * | integer | The unique identifier of the deployment protection rule. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
disable_deployment_protection_rule Disable Deployment Protection Rule
Disable a custom deployment protection rule for an environment. The authenticated user must have admin or owner permissions to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by %2F. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
protection_rule_id * | integer | The unique identifier of the protection rule to disable. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_environment_secrets List Environment Secrets
Retrieve all secrets configured for a specific environment without exposing their encrypted values. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The environment name. Must be URL encoded, with forward slashes replaced by `%2F`. |
owner * | string | The owner account of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_environment_public_key Get Environment Public Key
Retrieve the public key for an environment, which is required to encrypt environment secrets before creation or updates. This endpoint is accessible to anyone with read access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_environment_secret Get Environment Secret
Retrieve a single environment secret without revealing its encrypted value. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
secret_name * | string | The name of the secret to retrieve. |
delete_environment_secret Delete Environment Secret
Delete a secret from a repository environment by name. Requires collaborator access and the `repo` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
secret_name * | string | The name of the secret to delete from the environment. |
list_environment_variables List Environment Variables
Retrieve all environment variables for a specific repository environment. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by `%2F`. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_environment_variable Create Environment Variable
Create an environment variable in a GitHub Actions workflow environment. Authenticated users must have collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name of the variable to create in the environment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
value * | string | The value assigned to the environment variable. |
get_environment_variable Get Environment Variable
Retrieve a specific environment variable from a repository environment. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. The name must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name of the variable to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_environment_variable Update Environment Variable
Update an environment variable in a GitHub Actions workflow environment. Requires collaborator access to the repository.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name of the environment variable to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
value | string | The new value for the environment variable. |
delete_environment_variable Delete Environment Variable
Delete an environment variable from a repository environment by name. Requires collaborator access to the repository and appropriate OAuth or personal access token permissions.
| Parameter | Type | Description |
|---|---|---|
environment_name * | string | The name of the environment. Must be URL encoded, with slashes replaced by `%2F`. |
name * | string | The name of the environment variable to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_repository_events List Repository Events
Retrieve a list of events that have occurred in a repository. Note: This API is not optimized for real-time use cases and may have latency ranging from 30 seconds to 6 hours depending on time of day.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_repository_forks List Repository Forks
Retrieve a list of all forks created from a specified repository. This operation returns fork metadata for the given repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
fork_repository Fork Repository
Create a fork of a repository for the authenticated user. The fork operation is asynchronous and may take a short time before git objects are accessible.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
default_branch_only | boolean | When enabled, fork only the default branch instead of all branches. |
organization | string | The organization name to fork the repository into. If not specified, the fork is created under the authenticated user's account. |
create_blob Create Blob
Create a new blob object in a repository with specified content. The blob is stored in the Git object database and can be referenced by its SHA-1 hash.
| Parameter | Type | Description |
|---|---|---|
content * | string | The content to store in the blob object. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
encoding | string | The encoding format for the content. Determines how the content string is interpreted before storage. |
get_blob Get Blob
Retrieve a blob object from a repository by its SHA hash. The blob content is returned as Base64 encoded by default, with support for raw data retrieval via custom media types. Supports blobs up to 100 megabytes in size.
| Parameter | Type | Description |
|---|---|---|
file_sha * | string | The SHA hash identifier of the blob object to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_commit Create Commit
Creates a new Git commit object with the specified tree and parent commits. The response includes signature verification details if applicable.
| Parameter | Type | Description |
|---|---|---|
message * | string | The commit message describing the changes in this commit. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
tree * | string | The SHA of the tree object that this commit points to, representing the repository state at this commit. |
author | string | Author identity in RFC 5322 format: 'Name <email@example.com>' or 'email@example.com' |
parents | array | Array of parent commit SHAs. If omitted or empty, creates a root commit. For a single parent, provide an array with one SHA; for merge commits, provide multiple SHAs in order. |
signature | string | An ASCII-armored detached PGP signature over the commit object. GitHub adds this to the commit's `gpgsig` header for signature verification. Requires a pre-generated valid PGP signature. |
get_commit_object Get Commit Object
Retrieve a Git commit object by its SHA hash. Returns commit metadata including author, committer, message, tree, parents, and GPG signature verification details.
| Parameter | Type | Description |
|---|---|---|
commit_sha * | string | The SHA (Secure Hash Algorithm) identifier of the commit to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_git_refs List Matching Git Refs
List Git references matching a specified pattern. Returns branches, tags, notes, stashes, and other references from the repository's Git database that match the provided ref pattern.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The Git reference pattern to match. Use `heads/<branch_name>` for branches and `tags/<tag_name>` for tags. If the exact ref doesn't exist, all refs starting with the pattern will be returned. Omit thi… |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_git_reference Get Git Reference
Retrieve a single Git reference (branch or tag) from the repository's Git database. The reference must be formatted as `heads/<branch name>` for branches or `tags/<tag name>` for tags; returns 404 if the reference does not exist.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
ref * | string | The Git reference to retrieve, formatted as `heads/<branch name>` for branches or `tags/<tag name>` for tags. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_git_ref Create Git Ref
Creates a new reference (branch, tag, or other ref) in a repository. The repository must have at least one commit; empty repositories cannot have references created.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
ref * | string | The fully qualified reference name (e.g., `refs/heads/main`, `refs/tags/v1.0`). Must start with 'refs' and contain at least two slashes, otherwise the request will be rejected. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
sha * | string | The SHA-1 commit hash that this reference should point to. The commit must exist in the repository. |
update_git_ref Update Git Ref
Update a Git reference to point to a new commit SHA. This operation allows you to move branches, tags, or other references to different commits, with optional force-push capability to override safety checks.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The Git reference to update, such as a branch name (e.g., `heads/main`) or tag. See Git References documentation for valid reference formats. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
sha * | string | The SHA1 commit hash to set this reference to point at. |
force | boolean | Force the update without safety checks. When false or omitted, the operation will only succeed if it's a fast-forward update, preventing accidental overwrites. |
delete_git_ref Delete Git Ref
Deletes a specified Git reference from the repository. This operation removes branches, tags, or other Git references permanently.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The Git reference to delete, such as a branch or tag (e.g., `heads/feature-a` for branches or `tags/v1.0` for tags). |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_tag Create Tag
Create an annotated tag object in a repository. Note that this creates the tag object itself; you must separately create a reference (refs/tags/[tag]) to make the tag accessible in Git. For lightweight tags, only the reference creation is needed.
| Parameter | Type | Description |
|---|---|---|
email * | string | The email address of the author who created the tag. |
message * | string | The message content for the annotated tag. |
name * | string | The name of the author who created the tag. |
object * | string | The SHA hash of the Git object (commit, tree, or blob) that this tag references. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
tag * | string | The tag's name, typically a version identifier. |
type * | string | The type of Git object being tagged. |
get_tag Get Tag
Retrieve a specific Git tag object by its SHA. Returns tag metadata including signature verification details to validate the authenticity of the tag.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
tag_sha * | string | The SHA (commit hash) of the tag object to retrieve. |
create_tree Create Tree
Create a new Git tree object with specified file structure, optionally based on an existing tree. Tree entries can add, modify, or delete files; use the returned tree SHA to create commits and update branch references.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
tree * | array | Array of tree entry objects defining the file structure. Each entry specifies a file path, Unix file mode, object type (blob or tree), and Git object SHA. Entries are processed in order and will overw… |
base_tree | string | The SHA1 of an existing Git tree to use as the base. New entries will be merged with the base tree, with matching paths overwritten. If omitted, the tree is created from only the provided entries, and… |
fetch_tree Fetch Tree
Retrieve a Git tree object by its SHA1 value or ref name. Optionally fetch the tree recursively to include all referenced objects and subtrees, with a limit of 100,000 entries and 7 MB maximum size.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
tree_sha * | string | The SHA1 value or ref (branch or tag) name identifying the tree to retrieve. |
recursive | string | Enable recursive retrieval of all objects and subtrees referenced by the specified tree. Any value (including '0', '1', 'true', 'false') enables recursion; omit to disable. |
list_webhooks_repository List Repository Webhooks
Retrieves all webhooks configured for a repository. The last response field may be null if no deliveries have occurred within the past 30 days.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
create_webhook_repository Create Repository Webhook
Create a webhook for a repository to receive HTTP POST notifications when repository events occur. Each webhook must have a unique configuration, though multiple webhooks can share the same configuration if their event subscriptions do not overlap.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
active | boolean | Whether the webhook is active and will send notifications when triggered. Defaults to `true`. |
content_type | string | The media type format for serializing webhook payloads. Defaults to `form` if not specified. |
secret | string | A secret string used to generate HMAC hex digest signatures for authenticating webhook delivery headers. Enhances security by allowing verification that payloads originated from GitHub. |
url | string | The URL endpoint where webhook payloads will be delivered. |
get_webhook Get Webhook
Retrieve a webhook configured in a repository by its unique identifier. Returns the complete webhook configuration including URL, events, and delivery settings.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_webhook_repository Update Webhook
Updates an existing webhook in a repository. When updating, you must provide the same secret if one was previously set, or provide a new secret; otherwise the secret will be removed.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
active | boolean | Determines if notifications are sent when the webhook is triggered. Set to `true` to enable notifications. |
content_type | string | The media type used to serialize payloads. Supported values are `json` and `form`, with `form` as the default. |
secret | string | A secret used as the key to generate HMAC hex digest values for delivery signature headers. If previously set, you must provide the same secret or a new one to avoid removal. |
url | string | The URL to which webhook payloads will be delivered. |
delete_webhook_repository Delete Repository Webhook
Delete a webhook from a repository. The authenticated user must be a repository owner or have admin access to perform this action.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_webhook_config_repository Get Webhook Configuration
Retrieve the webhook configuration for a repository, including URL, content type, and custom headers. Use this to inspect webhook delivery settings without fetching the full webhook object.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_webhook_config_repository Update Webhook Configuration
Updates the webhook configuration for a repository, including the delivery URL, payload format, and signature secret. Use this endpoint to modify webhook settings; for changes to active state or event subscriptions, use the update webhook endpoint instead.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content_type | string | The media type used to serialize the payloads. Supported values are `json` and `form`, with `form` as the default. |
secret | string | If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers. |
url | string | The URL to which the webhook payloads will be delivered. |
list_webhook_deliveries List Webhook Deliveries
Retrieve a list of all webhook deliveries for a specific repository webhook. Each delivery record includes the payload, response status, and timing information.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of any webhook delivery from this hook. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
get_webhook_delivery Get Webhook Delivery
Retrieve a specific delivery record for a repository webhook. This returns detailed information about a webhook event that was sent to a configured endpoint.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the specific webhook delivery to retrieve. |
hook_id * | integer | The unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
redeliver_webhook_delivery Redeliver Webhook Delivery
Redeliver a previously failed or missed webhook delivery for a repository webhook. This allows you to retry sending a webhook payload to its configured endpoint.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The unique identifier of the webhook delivery to redeliver. |
hook_id * | integer | The unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
trigger_webhook_ping Trigger Webhook Ping
Trigger a ping event to be sent to a repository webhook. This is useful for testing webhook connectivity and verifying that the webhook endpoint is responding correctly.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
trigger_webhook_test Trigger Webhook Test
Trigger a test delivery of a repository webhook using the latest push event. The webhook must be subscribed to push events; otherwise, the server responds with 204 and no test payload is sent.
| Parameter | Type | Description |
|---|---|---|
hook_id * | integer | The unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_immutable_releases Get Immutable Releases
Retrieve the immutable releases configuration for a repository, including whether immutability is enabled and if it's being enforced by the repository owner. Requires admin read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_app_installation_repository Get App Installation for Repository
Retrieve the installation information for a GitHub App in a specific repository. This endpoint requires JWT authentication and returns details about whether the app is installed for a user or organization account.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository account. This is case-insensitive and can be either a user or organization name. |
repo * | string | The repository name without the `.git` extension. This is case-insensitive. |
get_repository_interaction_restrictions Get Repository Interaction Restrictions
Retrieve the current interaction restrictions for a repository, including which user types can interact and when the restriction expires. Returns an empty response if no restrictions are active.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
remove_interaction_restrictions Remove Interaction Restrictions
Remove all interaction restrictions from a repository. Requires owner or admin access. Note: If interaction limits are set at the user or organization level, you will receive a 409 Conflict response and cannot modify restrictions for individual repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_repository_invitations List Repository Invitations
List all open repository invitations for a repository. Requires admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
update_repository_invitation Update Repository Invitation
Update the permissions for an existing repository invitation. Allows you to modify the access level that will be granted to the invited user.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the invitation to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
permissions | string | The permissions level to grant the invited user on the repository. |
delete_repository_invitation Delete Repository Invitation
Delete a pending repository invitation by its unique identifier. This removes access that was previously offered to a user or team.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the invitation to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_issues_repository List Repository Issues
List issues in a repository, including pull requests. By default, only open issues are returned. Use filters to narrow results by milestone, state, creator, labels, and other criteria.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
creator | string | Filter to issues created by a specific user. |
direction | string | Sort direction for results. |
labels | string | Filter by labels. Provide as comma-separated label names. |
mentioned | string | Filter to issues that mention a specific user. |
milestone | string | Filter by milestone. Pass a milestone number, `*` for any milestone, or `none` for issues without milestones. |
since | string | Only return issues last updated after this timestamp in ISO 8601 format. |
state | string | Filter by issue state. |
type | string | Filter by issue type. Pass a type name, `*` for any type, or `none` for issues without a type. |
create_issue Create Issue
Create a new issue in a repository. Any user with pull access can create issues, though labels, assignees, and type can only be set by users with push access.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
title * | string | The title of the issue. Accepts string or integer values. |
assignees | array | GitHub usernames to assign to this issue. Only users with push access can set assignees; they are silently dropped for other users. Provide as an array of login handles. |
body | string | The contents of the issue in markdown format. |
labels | array | Labels to associate with this issue. Only users with push access can set labels; they are silently dropped for other users. Provide as an array of label names. |
milestone | string | The milestone to associate with this issue. Accepts string or integer identifier. |
type | string | The issue type to associate with this issue. Only users with push access can set the type; it is silently dropped for other users. |
list_issue_comments_for_repository List Issue Comments for Repository
List all comments on issues and pull requests for a repository. Comments are ordered by ID in ascending order by default, with support for filtering by update time and sort direction.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
direction | string | Sort direction for results. Only applies when used with a sort parameter. |
since | string | Only return comments that were last updated after this timestamp. Specify in ISO 8601 format. |
get_issue_comment Get Issue Comment
Retrieve a specific comment from an issue or pull request. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to retrieve. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
update_issue_comment Update Issue Comment
Update the content of an existing comment on an issue or pull request. Supports multiple response formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
body * | string | The new content for the comment. Supports markdown formatting. |
comment_id * | string | The unique identifier of the comment to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_issue_comment Delete Issue Comment
Delete a comment from an issue or pull request. This operation permanently removes the specified comment and cannot be undone.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
pin_issue_comment Pin Issue Comment
Pin a comment on an issue to highlight it for visibility. Pinned comments appear at the top of the issue's comment section.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to pin. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
unpin_issue_comment Unpin Issue Comment
Unpin a comment from an issue. This removes the pinned status from a previously pinned issue comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to unpin. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_comment_reactions List Comment Reactions
List all reactions or filter by a specific reaction type for an issue comment. Reactions include thumbs up/down, laugh, confused, heart, hooray, rocket, and eyes.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content | string | Filter results to a specific reaction type. Omit to list all reactions to the comment. |
add_issue_comment_reaction Add Issue Comment Reaction
Add a reaction emoji to an issue comment. Returns HTTP 200 if the reaction type was already added by the authenticated user.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the issue comment to react to. |
content * | string | The reaction emoji type to add to the comment. Choose from the supported reaction types. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
remove_issue_comment_reaction Remove Issue Comment Reaction
Remove a reaction from an issue comment. This operation deletes a specific reaction that was previously added to a comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment from which to remove the reaction. |
owner * | string | The owner of the repository. This is case-insensitive. |
reaction_id * | integer | The unique identifier of the reaction to remove. |
repo * | string | The name of the repository, without the `.git` extension. This is case-insensitive. |
list_issue_events List Issue Events
Retrieves all events that have occurred for issues in a repository, including creation, modification, and state change events.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner account of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_issue_event Get Issue Event
Retrieve a specific issue event by its event ID. This returns detailed information about a single event that occurred on an issue, such as comments, state changes, or assignments.
| Parameter | Type | Description |
|---|---|---|
event_id * | integer | The unique identifier of the issue event to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_issue Get Issue
Retrieve a specific issue or pull request by its number. Returns a 301 redirect if the issue was transferred, 404 if inaccessible, or 410 if deleted from an accessible repository.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue within the repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_issue Update Issue
Update an issue in a repository. Issue owners and users with push access or Triage role can modify issue properties including title, body, state, labels, assignees, and other metadata.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
assignees | array | Usernames to assign to this issue. Pass one or more user logins to replace the existing assignees. Send an empty array to clear all assignees. Only users with push access can set assignees; changes ar… |
body | string | The contents of the issue body. Supports markdown formatting. |
issue_field_values | array | An array of issue field values to set on this issue. Each entry must include the field ID and the value to set. Only users with push access can set field values. |
labels | array | Labels to associate with this issue. Pass one or more labels to replace the existing set. Send an empty array to clear all labels. Only users with push access can set labels; changes are silently drop… |
milestone | string | The milestone to associate with this issue. Accepts either a milestone ID (integer) or milestone title (string). |
state | string | The open or closed state of the issue. |
state_reason | string | The reason for the state change. Only used when the `state` parameter is changed. |
type | string | The name of the issue type to associate with this issue. Pass `null` to remove the current issue type. Only users with push access can set the type; changes are silently dropped without push access. |
assign_issue_users Assign Issue Users
Add up to 10 assignees to an issue. Existing assignees are preserved and new ones are appended to the list.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
assignees | array | Usernames of people to assign to this issue. Only users with push access can add assignees; others are silently ignored. Up to 10 assignees can be added per request. |
remove_issue_assignees Remove Issue Assignees
Remove one or more assignees from an issue. Only users with push access can remove assignees; other users' removal requests are silently ignored.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
assignees | array | Usernames of assignees to remove from the issue. Provide as an array of strings representing GitHub usernames. |
verify_issue_assignee Verify Issue Assignee
Verify whether a user has permission to be assigned to a specific issue. Returns a 204 status if the user can be assigned, or 404 if they cannot.
| Parameter | Type | Description |
|---|---|---|
assignee * | string | The username of the user to verify for assignment eligibility to the issue. |
issue_number * | integer | The issue number that identifies the specific issue to check assignee permissions for. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_issue_comments List Issue Comments
List all comments on an issue or pull request, ordered by ascending ID. Supports multiple response formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
since | string | Only show comments that were last updated after the given time. Specify as an ISO 8601 timestamp. |
add_issue_comment Add Issue Comment
Add a comment to an issue or pull request. This action triggers notifications and is subject to secondary rate limiting if used too frequently.
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment text content. Supports markdown formatting. |
issue_number * | integer | The number that identifies the issue or pull request. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_blocking_issues List Blocking Issues
List all issues that are blocking the specified issue. This helps identify dependencies that must be resolved before the current issue can be completed.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number to retrieve blocking dependencies for. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
mark_issue_blocked_by Mark Issue Blocked By
Mark an issue as blocked by another issue by creating a 'blocked by' dependency relationship. This establishes that the current issue cannot progress until the blocking issue is resolved.
| Parameter | Type | Description |
|---|---|---|
issue_id * | integer | The ID of the issue that blocks the current issue. This issue must exist in the same repository. |
issue_number * | integer | The number that identifies the issue that is blocked. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
remove_issue_blocking_dependency Remove Issue Blocking Dependency
Remove a blocking dependency from an issue. This operation unlinks an issue that was blocking the specified issue, allowing it to proceed independently.
| Parameter | Type | Description |
|---|---|---|
issue_id * | integer | The ID of the blocking issue to remove as a dependency. |
issue_number * | integer | The number that identifies the issue from which the blocking dependency will be removed. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_blocking_dependencies List Blocking Dependencies
List all issues that are blocked by the specified issue. Use this to understand what work depends on resolving the current issue.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue's blocking dependencies to retrieve. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_issue_events_for_issue List Issue Events
Retrieves a chronological list of all events that have occurred on a specific issue, including comments, state changes, assignments, and other activity.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue's events to retrieve. |
owner * | string | The owner account of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_issue_labels List Issue Labels
Retrieves all labels assigned to a specific issue in a repository. Labels are used to categorize and organize issues.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue within the repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
add_issue_labels Add Issue Labels
Add one or more labels to an issue in a repository. Labels help organize and categorize issues for better tracking and filtering.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue within the repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | An object containing an array of label names to add to the issue. Each label name should be a string. |
replace_issue_labels Replace Issue Labels
Replace all labels on an issue with a new set of labels. This operation removes any previously assigned labels and applies only the labels specified in the request.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue to update labels for. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
body | object | An array of label names to assign to the issue. Replaces all existing labels. Can also accept a single label name as a string. |
remove_all_issue_labels Remove All Issue Labels
Remove all labels from a specific issue in a repository. This operation clears any labels currently assigned to the issue.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue within the repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
remove_issue_label Remove Issue Label
Remove a specific label from an issue and return the remaining labels. Returns a 404 error if the label does not exist on the issue.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue to remove the label from. |
name * | string | The name of the label to remove from the issue. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
lock_issue Lock Issue
Lock an issue or pull request conversation to prevent further comments. Requires push access to the repository.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
lock_reason | string | The reason for locking the issue or pull request conversation. Must be one of the predefined reasons. |
unlock_issue Unlock Issue
Unlock an issue's conversation to allow further discussion. Users with push access can perform this action.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_parent_issue Get Parent Issue
Retrieve the parent issue of a sub-issue. Supports multiple content representation formats including raw markdown, plain text, HTML, or combined representations.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The numeric identifier of the sub-issue for which to retrieve the parent issue. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_issue_reactions List Issue Reactions
List all reactions or filter by a specific reaction type for an issue. Reactions allow users to express sentiment on issues using emoji.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content | string | Filter results to a specific reaction type. Omit this parameter to list all reactions to the issue. |
add_issue_reaction Add Issue Reaction
Add an emoji reaction to a GitHub issue. Returns HTTP 200 if the reaction type was already added by the authenticated user.
| Parameter | Type | Description |
|---|---|---|
content * | string | The emoji reaction type to add to the issue. |
issue_number * | integer | The number that identifies the issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_issue_reaction Delete Issue Reaction
Remove a reaction from an issue. The authenticated user must have permission to delete the reaction.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue to remove the reaction from. |
owner * | string | The owner of the repository. Case-insensitive. |
reaction_id * | integer | The unique identifier of the reaction to delete. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
unlink_sub_issue Unlink Sub Issue
Remove a sub-issue relationship from a parent issue. This operation unlinks the sub-issue without deleting it.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the parent issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
sub_issue_id * | integer | The numeric identifier of the sub-issue to remove from the parent issue. |
list_sub_issues List Sub Issues
List all sub-issues associated with a parent issue in a repository. Supports multiple content representation formats via custom media types.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies the parent issue containing the sub-issues to list. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
link_sub_issue Link Sub Issue
Link an existing sub-issue to a parent issue in the same repository. Optionally replace the sub-issue's current parent with this issue.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the parent issue. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
sub_issue_id * | integer | The ID of the sub-issue to link. The sub-issue must belong to the same repository owner as the parent issue. |
replace_parent | boolean | When true, replaces the sub-issue's current parent issue with this issue. When false or omitted, the sub-issue is added without removing its existing parent relationship. |
reorder_sub_issue Reorder Sub Issue
Reorder a sub-issue to a different position within its parent issue's sub-issue list. Use this to change the priority ranking of sub-issues.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that contains the sub-issue to reorder. |
owner * | string | The owner account of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
sub_issue_id * | integer | The unique identifier of the sub-issue to move to a new position in the parent issue's sub-issue list. |
after_id | integer | The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). |
before_id | integer | The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). |
list_issue_timeline_events List Issue Timeline Events
Retrieve all timeline events for a specific issue, including comments, state changes, and other activity. Timeline events provide a chronological record of all interactions and modifications to an issue.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number that identifies which issue's timeline events to retrieve. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_deploy_keys List Deploy Keys
Retrieve all deploy keys for a repository. Deploy keys are SSH keys that grant access to a single repository for automated deployments and CI/CD workflows.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_deploy_key Create Deploy Key
Create a read-only or read-write deploy key for a repository. Deploy keys enable secure, key-based access to repository contents without requiring user credentials.
| Parameter | Type | Description |
|---|---|---|
key * | string | The public key contents in OpenSSH format. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
read_only | boolean | If true, the key will only be able to read repository contents. If false, the key will be able to read and write, granting permissions equivalent to an organization admin or repository collaborator. |
get_deploy_key Get Deploy Key
Retrieve a specific deploy key for a repository by its unique identifier. Deploy keys are used to grant read or write access to a repository for automated deployments.
| Parameter | Type | Description |
|---|---|---|
key_id * | integer | The unique identifier of the deploy key to retrieve. |
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
delete_deploy_key Delete Deploy Key
Remove a deploy key from a repository. Deploy keys are immutable, so you must delete and recreate a key to make changes.
| Parameter | Type | Description |
|---|---|---|
key_id * | integer | The unique identifier of the deploy key to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_labels List Labels
Retrieves all labels defined for a repository. Labels are used to categorize and organize issues and pull requests.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_label Create Label
Create a new label for a repository with a specified name and color. Labels are used to categorize and organize issues and pull requests.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the label. Emoji can be added using native emoji or colon-style markup (e.g., `:strawberry:`). |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
color | string | The hexadecimal color code for the label, without the leading `#`. Must be a valid hex color value. |
description | string | A short description of the label to provide additional context. Maximum length is 100 characters. |
get_label Get Label
Retrieve a specific label from a repository by its name. Labels are used to categorize and organize issues and pull requests.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the label to retrieve. The name is not case sensitive. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_label Update Label
Update an existing repository label by name. Modify the label's name, color, and description in a single request.
| Parameter | Type | Description |
|---|---|---|
name * | string | The current name of the label to update. Case-sensitive. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
color | string | The hexadecimal color code for the label without the leading `#` character. |
description | string | A short description of the label's purpose. Maximum 100 characters. |
new_name | string | The new name for the label. Supports emoji using native emoji or colon-style markup (e.g., `:strawberry:`). |
delete_label Delete Label
Delete a label from a repository by name. This operation permanently removes the label and its associations with any issues or pull requests.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the label to delete. The name is not case sensitive. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_repository_languages List Repository Languages
Retrieves the programming languages used in a repository with the number of bytes of code written in each language. Useful for understanding the technology stack and composition of a project.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_repository_license Get Repository License
Retrieve the license file contents for a repository. Returns the raw license text or HTML-rendered markup depending on the requested media type.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
sync_fork_with_upstream Sync Fork with Upstream
Synchronize a branch in a forked repository with the corresponding upstream branch to keep it current. This operation updates the specified branch to match the upstream repository's state.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the branch to synchronize with the upstream repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
merge_branch Merge Branch
Merge a head branch or commit into a base branch. This creates a merge commit combining the changes from both branches.
| Parameter | Type | Description |
|---|---|---|
base * | string | The name of the base branch that will receive the merged changes. |
head * | string | The head to merge into the base branch. Can be a branch name or a commit SHA1. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
commit_message | string | Optional commit message for the merge commit. If not provided, a default message will be generated automatically. |
list_milestones List Milestones
Retrieves a list of milestones for a repository, with options to filter by state and control sort order. Useful for tracking project progress and deadlines.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
direction | string | Control the sort order of results: ascending (asc) for oldest first, or descending (desc) for newest first. |
state | string | Filter milestones by their current state: open for active milestones, closed for completed ones, or all to include both. |
create_milestone Create Milestone
Creates a new milestone in a repository to track progress toward project goals. Milestones help organize issues and pull requests by target dates and objectives.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
title * | string | The title of the milestone. This is the primary identifier displayed in the repository. |
description | string | A description of the milestone providing additional context about its goals and scope. |
due_on | string | The milestone due date in ISO 8601 format, specifying when the milestone should be completed. |
state | string | The state of the milestone, indicating whether it is actively being worked on or completed. |
get_milestone Get Milestone
Retrieve a specific milestone from a repository using its milestone number. This operation returns detailed information about the milestone including its title, description, state, and associated dates.
| Parameter | Type | Description |
|---|---|---|
milestone_number * | integer | The numeric identifier that uniquely identifies the milestone within the repository. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_milestone Update Milestone
Update an existing milestone in a repository. Modify the milestone's state, description, and due date as needed.
| Parameter | Type | Description |
|---|---|---|
milestone_number * | integer | The number that identifies the milestone. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
description | string | A description of the milestone. Use this to provide context or details about the milestone's purpose and goals. |
due_on | string | The milestone due date in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). Set this to establish a target completion date for the milestone. |
state | string | The state of the milestone. Set to `open` to activate the milestone or `closed` to mark it as complete. |
delete_milestone Delete Milestone
Permanently delete a milestone from a repository using its milestone number. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
milestone_number * | integer | The numeric identifier of the milestone to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_milestone_labels List Milestone Labels
Retrieves all labels associated with issues in a specific milestone. Useful for understanding the categorization and tagging of work items within a milestone.
| Parameter | Type | Description |
|---|---|---|
milestone_number * | integer | The numeric identifier of the milestone. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
list_notifications_repository List Repository Notifications
Retrieve all notifications for the authenticated user in a specific repository. Filter by read status, participation level, and update time to focus on relevant notifications.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
all | boolean | If true, include notifications marked as read. By default, only unread notifications are returned. |
participating | boolean | If true, show only notifications where the user is directly participating or mentioned. By default, all notifications are returned. |
since | string | Only return notifications that were last updated after this timestamp. Specify in ISO 8601 format. |
mark_repository_notifications_as_read Mark Repository Notifications as Read
Mark all notifications in a repository as read for the authenticated user. For large notification volumes, this operation may run asynchronously and return a 202 Accepted status.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
last_read_at | string | The timestamp marking the last point notifications were checked. Notifications updated after this time will not be marked as read. If omitted, all notifications are marked as read. Must be in ISO 8601… |
get_pages_site Get Pages Site
Retrieve information about a GitHub Pages site for a repository. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
enable_pages_site Enable Pages Site
Enable and configure a GitHub Pages site for a repository. Requires repository administrator, maintainer, or 'manage GitHub Pages settings' permission.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The repository branch that contains the source files for publishing the Pages site. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
build_type | string | The build process for the Pages site. Use 'legacy' for traditional Jekyll builds or 'workflow' for GitHub Actions-based builds. |
configure_pages_site Configure Pages Site
Configure GitHub Pages settings for a repository, including custom domain and HTTPS enforcement. Requires repository administrator or maintainer permissions.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
build_type | string | The build process for the GitHub Pages site. Use 'workflow' for custom GitHub Actions builds or 'legacy' for automatic builds on branch pushes. |
cname | string | A custom domain for the GitHub Pages site. Pass null to remove an existing custom domain. |
https_enforced | boolean | Whether HTTPS should be enforced for the GitHub Pages site. |
delete_pages_site Delete Pages Site
Delete a GitHub Pages site for a repository. The authenticated user must have repository administrator, maintainer, or 'manage GitHub Pages settings' permissions.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_pages_builds List Pages Builds
Retrieve a list of all builds for a GitHub Pages site associated with a repository. Requires `repo` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
trigger_pages_build Trigger Pages Build
Request a GitHub Pages build from the latest revision on the default branch. This manually triggers a site build without requiring a new commit, useful for diagnosing build warnings and failures.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_latest_pages_build Get Latest Pages Build
Retrieves information about the most recent build of a GitHub Pages site for a repository. Requires `repo` scope authorization.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_pages_build Get Pages Build
Retrieve detailed information about a specific GitHub Pages build for a repository. Requires `repo` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
build_id * | integer | The unique identifier of the GitHub Pages build to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
deploy_pages Deploy Pages
Create a GitHub Pages deployment for a repository. The authenticated user must have write permission to the repository.
| Parameter | Type | Description |
|---|---|---|
oidc_token * | string | The OIDC token issued by GitHub Actions certifying the origin of the deployment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
pages_build_version * | string | A unique string that represents the version of the build for this deployment. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
artifact_url | string | The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. |
environment | string | The target environment for this GitHub Pages deployment. |
get_pages_deployment Get Pages Deployment
Retrieve the current status of a GitHub Pages deployment. The authenticated user must have read permission for the GitHub Pages site.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pages_deployment_id * | string | The ID of the Pages deployment. You can also provide the commit SHA of the deployment. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
cancel_pages_deployment Cancel Pages Deployment
Cancel an active GitHub Pages deployment. The authenticated user must have write permissions for the GitHub Pages site.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pages_deployment_id * | string | The ID of the Pages deployment. You can also provide the commit SHA of the deployment. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
check_private_vulnerability_reporting Check Private Vulnerability Reporting
Check whether private vulnerability reporting is enabled for a repository. This setting allows security researchers to report vulnerabilities privately before public disclosure.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_repository_custom_properties List Repository Custom Properties
Retrieve all custom property values set for a repository. This endpoint allows users with read access to view the complete set of custom properties and their values configured for the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
set_repository_custom_properties Set Repository Custom Properties
Create or update custom property values for a repository. Set property values to null to remove them from the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
properties * | array | A list of custom property names and their associated values to apply to the repository. Each property in the list will be created or updated with the specified value. |
repo * | string | The name of the repository without the .git extension. Case-insensitive. |
list_pull_requests List Pull Requests
Retrieve pull requests from a repository with filtering and sorting options. Supports draft pull requests depending on your GitHub plan and repository visibility.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
base | string | Filter pull requests by the base branch name. Matches the target branch where pull requests are being merged. |
direction | string | The sort direction for results. Defaults to descending when sorting by creation date or when no sort is specified. |
head | string | Filter pull requests by the head branch. Specify in the format `user:ref-name` or `organization:ref-name` to match the source branch and owner. |
state | string | Filter pull requests by their state. |
create_pull_request Create Pull Request
Create a pull request to propose changes from a head branch into a base branch. Supports draft pull requests and cross-repository PRs within the same network.
| Parameter | Type | Description |
|---|---|---|
base * | string | The target branch where changes will be merged. Must be an existing branch on the current repository. |
head * | string | The branch containing your changes. For cross-repository PRs in the same network, use the format `username:branch` to namespace the head branch. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
body | string | The pull request description in markdown format. |
draft | boolean | Whether to create the pull request as a draft. Draft PRs can be marked ready for review later. |
head_repo | string | The repository where the pull request changes were made. Required for cross-repository PRs when both repositories are owned by the same organization. |
maintainer_can_modify | boolean | Whether maintainers can modify the pull request branch. Allows maintainers to push commits to your PR branch. |
title | string | The title of the new pull request. Required unless `issue` is specified. |
list_pull_request_review_comments_for_repo List Pull Request Review Comments for Repository
Lists review comments for all pull requests in a repository, sorted by ID in ascending order by default. Supports multiple content formats including raw markdown, plain text, HTML, or combined representations.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
direction | string | The direction to sort results. Only applies when used with a sort parameter. |
since | string | Only show results that were last updated after the given time. Specify as an ISO 8601 timestamp. |
get_pull_request_review_comment Get Pull Request Review Comment
Retrieve a specific review comment from a pull request. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three representations.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the review comment to retrieve. |
owner * | string | The owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
update_pull_request_review_comment Update Pull Request Review Comment
Update the text content of a review comment on a pull request. Supports multiple response formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
body * | string | The updated text content for the review comment. Supports markdown formatting. |
comment_id * | string | The unique identifier of the review comment to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_pull_request_review_comment Delete Pull Request Review Comment
Delete a review comment from a pull request. This permanently removes the specified comment and cannot be undone.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the review comment to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_pull_request_review_comment_reactions List Pull Request Review Comment Reactions
List all reactions or filter by a specific reaction type for a pull request review comment. Reactions indicate how reviewers feel about specific code feedback.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the pull request review comment. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content | string | Filter results to show only a specific reaction type. Omit to list all reactions to the pull request review comment. |
add_reaction_to_pull_request_comment Add Reaction to Pull Request Comment
Add an emoji reaction to a pull request review comment. Returns HTTP 200 if the reaction type was already added by the authenticated user.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the pull request review comment. |
content * | string | The emoji reaction type to add to the comment. |
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
remove_pull_request_comment_reaction Remove Pull Request Comment Reaction
Remove a reaction from a pull request review comment. This operation deletes a specific reaction (emoji) that was previously added to a comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the pull request review comment. |
owner * | string | The owner of the repository. The name is case-insensitive. |
reaction_id * | integer | The unique identifier of the reaction to remove. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
get_pull_request Get Pull Request
Retrieve detailed information about a specific pull request by its number. Returns comprehensive PR metadata including merge status, commit information, and body content in various formats.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_pull_request Update Pull Request
Update an existing pull request including its title, description, state, and base branch. Supports draft pull requests and requires write access to the head or source branch.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
base | string | The name of the branch you want your changes pulled into. This must be an existing branch on the current repository and cannot point to another repository. |
body | string | The contents of the pull request body. Supports markdown formatting. |
maintainer_can_modify | boolean | Indicates whether maintainers can modify the pull request branch. |
state | string | The desired state of the pull request. |
create_codespace_from_pull_request Create Codespace from Pull Request
Creates a codespace owned by the authenticated user for a specified pull request. Requires the `codespace` OAuth scope or personal access token (classic) scope.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
pull_number * | integer | The pull request number that identifies which PR to create the codespace from. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
devcontainer_path | string | Path to the devcontainer.json configuration file within the repository to use for this codespace. |
display_name | string | A human-readable display name for this codespace. |
geo | string | The geographic region where the codespace will be hosted. If not specified, the region is automatically assigned based on the requester's IP address. |
idle_timeout_minutes | integer | Time in minutes before the codespace automatically stops due to inactivity. |
machine | string | The machine type to use for this codespace (e.g., standard-2core, premium-4core). |
multi_repo_permissions_opt_out | boolean | Whether to opt out of authorizing permissions requested in the devcontainer.json configuration. |
retention_period_minutes | integer | Duration in minutes after the codespace becomes idle before it is automatically deleted. Must be between 0 and 43200 (30 days). |
working_directory | string | The working directory path to open when the codespace starts. |
list_pull_request_review_comments List Pull Request Review Comments
Retrieve all review comments for a pull request, sorted by ID in ascending order by default. Supports multiple content formats including raw markdown, plain text, HTML, or combined representations.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
pull_number * | integer | The pull request identifier number. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
direction | string | The sort direction for results. Only applies when used with a sort parameter. |
since | string | Filter results to show only comments updated after this timestamp in ISO 8601 format. |
create_pull_request_review_comment Create Pull Request Review Comment
Create a review comment on a specific line or range of lines in a pull request diff. This enables targeted feedback on code changes and triggers notifications to relevant participants.
| Parameter | Type | Description |
|---|---|---|
body * | string | The text content of the review comment. Supports markdown formatting. |
commit_id * | string | The SHA of the commit to which the comment applies. Using a non-latest commit SHA may cause the comment to become outdated if subsequent commits modify the commented line. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
path * | string | The relative path to the file being commented on within the repository. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
in_reply_to | integer | The ID of an existing review comment to reply to. When specified, all other request body parameters except `body` are ignored. |
line | integer | **Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies… |
position | integer | **This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position va… |
side | string | In a split diff view, indicates which side of the diff the comment targets. Use LEFT for deletions (shown in red) or RIGHT for additions (shown in green) and unchanged context lines (shown in white). |
start_line | integer | The first line number in the pull request diff that a multi-line comment applies to. Required for multi-line comments unless replying to an existing review comment. |
subject_type | string | The scope level at which the comment is targeted, either at a specific line or for the entire file. |
reply_to_review_comment Reply to Review Comment
Create a reply to a top-level review comment on a pull request. Replies to replies are not supported.
| Parameter | Type | Description |
|---|---|---|
body * | string | The text content of the reply, formatted as markdown. |
comment_id * | string | The unique identifier of the top-level review comment to reply to. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_pull_request_commits List Pull Request Commits
Retrieve the commits included in a pull request, with a maximum of 250 commits returned. For pull requests with more than 250 commits, use the general commits list endpoint instead.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
pull_number * | integer | The pull request identifier number. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_pull_request_files List Pull Request Files
Lists all files changed in a specified pull request. Returns up to 3000 files with 30 files per page by default.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The pull request number that identifies which pull request's files to retrieve. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
check_pull_request_merged Check Pull Request Merged
Determines whether a pull request has been merged into its base branch. The HTTP status code indicates the merge status; a 204 response means merged, 404 means not merged.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
pull_number * | integer | The pull request identifier number. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
merge_pull_request Merge Pull Request
Merge a pull request into its base branch. This operation triggers notifications and is subject to secondary rate limiting; use appropriate delays when merging multiple pull requests.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
pull_number * | integer | The numeric identifier of the pull request to merge. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
commit_message | string | Additional details to append to the automatic commit message. |
commit_title | string | Custom title for the automatic commit message created by the merge. |
merge_method | string | The merge strategy to use when combining the pull request with the base branch. |
sha | string | The commit SHA that the pull request head must match to allow the merge. Used to prevent merging if the branch has been updated since the last check. |
list_pull_request_requested_reviewers List Pull Request Requested Reviewers
Retrieve all users and teams whose review has been requested for a pull request. Requested reviewers are excluded once they submit a review.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
pull_number * | integer | The pull request identifier number. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
request_pull_request_reviewers Request Pull Request Reviewers
Request code reviews for a pull request from specified users and/or teams. This operation triggers notifications and is subject to secondary rate limiting; use judiciously to avoid throttling.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
reviewers | array | An array of user login names to request as reviewers. Order is not significant. |
team_reviewers | array | An array of team slugs to request as reviewers. Order is not significant. |
remove_pull_request_reviewers Remove Pull Request Reviewers
Remove review requests from a pull request by specifying users and/or teams to be removed. This operation allows you to withdraw review requests that were previously assigned.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
pull_number * | integer | The pull request number that identifies which pull request to modify. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
reviewers * | array | An array of user login names to remove from the review request. Order is not significant. |
team_reviewers | array | An array of team slugs to remove from the review request. Order is not significant. |
list_pull_request_reviews List Pull Request Reviews
Retrieve all reviews for a specified pull request in chronological order. Supports multiple content formats including raw markdown, plain text, HTML, or combined representations.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
pull_number * | integer | The numeric identifier of the pull request to retrieve reviews for. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
create_pull_request_review Create Pull Request Review
Create a review on a pull request, optionally with comments on specific lines in the diff. Reviews can be submitted immediately or saved as pending for later submission.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | string | The body text of the pull request review. Required when the `event` parameter is set to `REQUEST_CHANGES` or `COMMENT`. |
comment_body | string | Text content of the review comment. |
comment_line | integer | Required when using a multi-line comment. The line of the blob in the pull request diff that the comment applies to. |
comment_path | string | The relative path to the file that necessitates a comment. |
comment_position | integer | The line index in the diff. Line numbers start at 1 from the first @@ hunk header. |
commit_id | string | The SHA of the commit that needs a review. If not specified, defaults to the most recent commit in the pull request. Using an outdated commit SHA may render review comments obsolete if subsequent comm… |
event | string | The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will… |
get_pull_request_review Get Pull Request Review
Retrieve a specific review for a pull request by its review ID. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three representations.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
review_id * | integer | The unique identifier of the review to retrieve. |
update_pull_request_review Update Pull Request Review
Update the body text of an existing pull request review. This endpoint allows you to modify the summary comment of a review that has already been submitted.
| Parameter | Type | Description |
|---|---|---|
body * | string | The body text of the pull request review. Supports markdown formatting. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
review_id * | integer | The unique identifier of the review to update. |
delete_pending_review Delete Pending Review
Delete a pending pull request review that has not yet been submitted. Only unsubmitted reviews can be deleted; submitted reviews are permanent and cannot be removed.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
review_id * | integer | The unique identifier of the review to delete. |
list_review_comments List Review Comments
Retrieve all comments made during a specific pull request review. Supports multiple content formats including raw markdown, plain text, HTML, or a combination of all three.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
pull_number * | integer | The pull request number that contains the review. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
review_id * | integer | The unique identifier of the review whose comments should be listed. |
dismiss_pull_request_review Dismiss Pull Request Review
Dismiss a review on a pull request with an optional message. Requires repository administrator permissions or explicit dismissal rights on protected branches.
| Parameter | Type | Description |
|---|---|---|
message * | string | The message explaining the reason for dismissing the review. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
review_id * | integer | The unique identifier of the review to dismiss. |
submit_pull_request_review Submit Pull Request Review
Submit a pending review for a pull request with an approval, request for changes, or comment action. The review must be finalized with one of the three review actions; submitting without an action will result in an error.
| Parameter | Type | Description |
|---|---|---|
event * | string | The review action to perform on the pull request. Must be one of: `APPROVE` (approve the changes), `REQUEST_CHANGES` (request modifications), or `COMMENT` (provide feedback without approval). |
owner * | string | The account owner of the repository. The name is not case sensitive. |
pull_number * | integer | The number that identifies the pull request. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
review_id * | integer | The unique identifier of the review to submit. |
body | string | The body text of the pull request review. Optional; can be omitted if the review action is `APPROVE` or `REQUEST_CHANGES`. |
sync_pull_request_branch Sync Pull Request Branch
Synchronize a pull request branch with the latest changes from its base branch by merging the upstream HEAD. Requires write permissions to the head repository when using a GitHub App.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
pull_number * | integer | The pull request identifier number. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
get_repository_readme Get Repository README
Retrieves the preferred README file for a repository. Supports both raw and HTML-rendered formats via custom media types.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
get_readme Get README in Directory
Retrieves the README file from a specified directory within a repository. Supports both raw text and rendered HTML formats.
| Parameter | Type | Description |
|---|---|---|
dir * | string | The directory path within the repository to search for the README file. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
list_releases List Releases
Retrieve a list of published releases for a repository. Draft releases are only visible to users with push access. Regular Git tags without associated releases are not included; use the Repository Tags API for those.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_release Create Release
Create a new release for a repository. Users with push access can publish releases, which trigger notifications. Be aware of secondary rate limits when creating releases in rapid succession.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
tag_name * | string | The name of the tag to create or use for this release. |
body | string | Descriptive text about the release contents and changes. |
discussion_category_name | string | Category name for an automatically created discussion linked to this release. The category must already exist in the repository. |
draft | boolean | Whether to create an unpublished draft release or a published release. |
generate_release_notes | boolean | Whether to automatically generate release name and body from commit history. If a name is provided, it will be used; if body is provided, it will be prepended to auto-generated notes. |
make_latest | string | Whether to set this release as the latest for the repository. Drafts and prereleases cannot be marked as latest. Use 'legacy' to determine latest by creation date and semantic version. |
name | string | The name of the release. |
prerelease | boolean | Whether to mark this release as a prerelease or a full release. |
target_commitish | string | The Git commit, branch, or tag from which to create the release tag. Ignored if the tag already exists. Defaults to the repository's default branch. |
download_release_asset Download Release Asset
Retrieve metadata and download URL for a specific release asset. Use the browser_download_url for direct downloads or set Accept header to application/octet-stream to stream the binary content directly.
| Parameter | Type | Description |
|---|---|---|
asset_id * | integer | The unique identifier of the asset to retrieve. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
update_release_asset Update Release Asset
Update metadata for a release asset in a repository. Users with push access can modify the asset's label and state.
| Parameter | Type | Description |
|---|---|---|
asset_id * | integer | The unique identifier of the asset to update. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
label | string | An alternate short description of the asset, displayed in place of the filename. |
state | string | The state of the asset. |
delete_release_asset Delete Release Asset
Delete a specific asset from a release. This permanently removes the asset file from the release.
| Parameter | Type | Description |
|---|---|---|
asset_id * | integer | The unique identifier of the asset to delete. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
generate_release_notes Generate Release Notes
Generate release notes content including a name and markdown-formatted body describing changes and contributors for a release. The generated notes are temporary and intended for use when creating a new release.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
tag_name * | string | The tag name for the release. Can be an existing tag or a new one to be created. |
configuration_file_path | string | Path to a repository file containing release notes configuration settings. If not specified, defaults to `.github/release.yml` or `.github/release.yaml`, falling back to default configuration if neith… |
previous_tag_name | string | The name of the previous tag to use as the starting point for release notes. Use this to manually specify the range of changes to include in the release notes. |
target_commitish | string | The commitish value (branch, commit SHA, or tag) that will be the target for the release's tag. Required only if the tag_name does not reference an existing tag; ignored if the tag already exists. |
get_latest_release Get Latest Release
Retrieve the latest published release for a repository. Returns the most recent non-prerelease, non-draft release, sorted by creation date of the associated commit.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_release_by_tag Get Release by Tag
Retrieve a published release by its tag name. Returns detailed information about the release including assets, author, and metadata.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
tag * | string | The tag name identifying the release to retrieve. |
get_release Get Release
Retrieve a public release by its unique identifier. Returns release metadata including an upload_url hypermedia resource for managing release assets.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
release_id * | integer | The unique identifier of the release to retrieve. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
update_release Update Release
Update an existing release in a repository. Users with push access can modify release details including tag name, description, draft status, and prerelease designation.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
release_id * | integer | The unique identifier of the release to update. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | string | Text describing the contents of the tag. |
discussion_category_name | string | Category name for creating and linking a discussion to this release. The category must already exist in the repository. Ignored if a discussion is already linked to the release. |
draft | boolean | Set to `true` to mark the release as a draft, or `false` to publish it. |
make_latest | string | Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Use `legacy` to determine the latest release based on creation da… |
prerelease | boolean | Set to `true` to identify the release as a prerelease, or `false` to identify it as a full release. |
tag_name | string | The name of the tag associated with this release. |
target_commitish | string | The commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Defaults to the repository's default branch. |
delete_release Delete Release
Delete a release from a repository. Only users with push access to the repository can perform this action.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
release_id * | integer | The unique identifier of the release to delete. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_release_assets List Release Assets
Retrieve all assets (files, binaries, archives) attached to a specific release. Assets are downloadable files published with a release.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
release_id * | integer | The unique identifier of the release to retrieve assets from. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
upload_release_asset Upload Release Asset
Upload a binary asset file to a release. The asset data must be sent as raw binary content in the request body with the appropriate Content-Type header.
| Parameter | Type | Description |
|---|---|---|
name * | string | The filename for the asset. GitHub will rename files with special characters, non-alphanumeric characters, or leading/trailing periods. Duplicate filenames will cause an error and require deletion of… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
release_id * | integer | The unique identifier of the release to which the asset will be uploaded. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
body | string | Base64-encoded binary request body. The raw binary file data to upload. Set the Content-Type header to the appropriate media type (e.g., application/zip). |
label | string | An optional display label for the asset that describes its purpose or contents. |
list_release_reactions List Release Reactions
List all reactions or filter by a specific reaction type for a release. Reactions allow users to express sentiment on releases using emoji.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
release_id * | integer | The unique identifier of the release for which to list reactions. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
content | string | Filter results to a single reaction type. Omit this parameter to list all reactions to the release. |
add_release_reaction Add Release Reaction
Add an emoji reaction to a release. Returns a 200 status if the reaction type was already added by the authenticated user.
| Parameter | Type | Description |
|---|---|---|
content * | string | The emoji reaction type to add to the release. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
release_id * | integer | The unique identifier of the release to add a reaction to. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
delete_release_reaction Delete Release Reaction
Delete a reaction from a release. This removes the specified reaction emoji that was added to the release.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. The name is case-insensitive. |
reaction_id * | integer | The unique identifier of the reaction to delete. |
release_id * | integer | The unique identifier of the release from which to delete the reaction. |
repo * | string | The name of the repository, without the `.git` extension. The name is case-insensitive. |
list_branch_rules List Branch Rules
Retrieve all active rules that apply to a specified branch. Rules are returned regardless of configuration level (repository or organization) and include only those with active enforcement status.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch name to retrieve rules for. Wildcard characters are not supported; use the GraphQL API for wildcard matching. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
list_rule_suites List Rule Suites
Lists suites of rule evaluations at the repository level. Use this to view insights and audit rule enforcement across your repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
actor_name | string | The GitHub user account handle to filter on. When specified, only rule evaluations triggered by this actor will be returned. |
rule_suite_result | string | The rule suite result status to filter on. When specified, only suites with this result will be returned. |
time_period | string | The time period to filter rule suites by. Filters results to evaluations that occurred within the specified window (hour: past 1 hour, day: past 24 hours, week: past 7 days, month: past 30 days). |
get_rule_suite Get Rule Suite
Retrieve detailed information about a specific rule suite evaluation result within a repository. Use this to view insights and outcomes from ruleset enforcement.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
rule_suite_id * | integer | The unique identifier of the rule suite result. Retrieve this ID using the list rule suites endpoint for your repository or organization. |
get_ruleset Get Ruleset
Retrieve a specific ruleset configured for a repository. The bypass_actors property is only included if you have write access to the ruleset.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The owner of the repository. Case-insensitive. |
repo * | string | The repository name without the .git extension. Case-insensitive. |
ruleset_id * | integer | The unique identifier of the ruleset to retrieve. |
includes_parents | boolean | Whether to include rulesets configured at higher organizational or enterprise levels that apply to this repository. |
list_ruleset_history_repository List Ruleset History
Retrieve the complete history of changes for a repository ruleset, including all modifications and their timestamps.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
ruleset_id * | integer | The unique identifier of the ruleset whose history you want to retrieve. |
get_ruleset_version_repository Get Ruleset Version
Retrieve a specific version of a repository ruleset to view its configuration and rules at that point in time.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
ruleset_id * | integer | The unique identifier of the ruleset. |
version_id * | integer | The unique identifier of the ruleset version to retrieve. |
list_secret_scanning_alerts_repository List Secret Scanning Alerts for Repository
Retrieve secret scanning alerts for a repository, ordered from newest to oldest. Requires administrator access to the repository or owning organization.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
direction | string | Sort direction for results. |
hide_secret | boolean | Redact literal secret values from the response for security purposes. |
is_multi_repo | boolean | Filter to include only alerts detected across multiple repositories. |
is_publicly_leaked | boolean | Filter to include only alerts that have been publicly leaked. |
resolution | string | Filter by one or more resolution statuses using comma-separated values. |
secret_type | string | Filter by one or more secret types using comma-separated values. Supports both default secret patterns and generic token names. |
state | string | Filter alerts by their current state. |
validity | string | Filter by validity status using comma-separated values. Indicates whether the secret is currently active, inactive, or of unknown status. |
get_secret_scanning_alert Get Secret Scanning Alert
Retrieve a single secret scanning alert detected in a repository. The authenticated user must be an administrator for the repository or owning organization.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
hide_secret | boolean | Whether to hide literal secrets in the response results. |
update_secret_scanning_alert Update Secret Scanning Alert
Update the status of a secret scanning alert in a repository, including resolving it with a reason or assigning it to a user. The authenticated user must be an administrator for the repository or organization.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
resolution | string | The reason for resolving the alert. Required when `state` is set to `resolved`. |
resolution_comment | string | An optional comment when closing or reopening an alert. Cannot be updated or deleted after creation. |
state | string | Sets the state of the secret scanning alert. When setting to `resolved`, you must provide a `resolution` reason. |
list_secret_alert_locations List Secret Alert Locations
Lists all locations where a secret scanning alert has been detected in a repository. Requires administrator access to the repository or owning organization.
| Parameter | Type | Description |
|---|---|---|
alert_number * | integer | The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code… |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
bypass_push_protection Bypass Push Protection
Create a bypass for a secret that was previously blocked by push protection. The authenticated user must be the original author of the committed secret.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
placeholder_id * | string | The ID of the push protection bypass placeholder returned when a secret is push protected. |
reason * | string | The reason for bypassing push protection. Select from predefined reasons that categorize why the secret should be allowed. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_secret_scan_history List Secret Scan History
Retrieve the latest secret scanning scan history for a repository, including default incremental and backfill scans by type. Requires GitHub Advanced Security and appropriate authentication scopes.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_security_advisories List Security Advisories
Retrieve security advisories for a repository. Authenticated users with appropriate permissions can access both published and unpublished advisories, depending on their role and access level.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
direction | string | The direction to sort the results by. |
state | string | Filter advisories by their current state. Only advisories matching the specified state will be returned. |
create_security_advisory Create Security Advisory
Create a new repository security advisory to document and track vulnerabilities. The authenticated user must be a security manager or administrator of the repository.
| Parameter | Type | Description |
|---|---|---|
description * | string | A detailed description of what the advisory impacts. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
summary * | string | A short summary of the advisory. |
vulnerabilities * | array | An array of products affected by the vulnerability. Each item specifies the package, affected version ranges, and patched versions. |
credits | array | An array of users to receive credit for their participation in identifying or fixing the security advisory. |
cve_id | string | The Common Vulnerabilities and Exposures (CVE) ID for this vulnerability. |
cwe_ids | array | An array of Common Weakness Enumeration (CWE) IDs that relate to this vulnerability. |
severity | string | The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. |
start_private_fork | boolean | Whether to create a temporary private fork of the repository to collaborate on a fix. |
report_security_vulnerability Report Security Vulnerability
Privately report a security vulnerability to repository maintainers. This initiates a coordinated disclosure process allowing maintainers to address the issue before public disclosure.
| Parameter | Type | Description |
|---|---|---|
description * | string | A detailed explanation of what the vulnerability impacts, including affected components and potential consequences. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
summary * | string | A concise summary of the security vulnerability. |
cwe_ids | array | A list of Common Weakness Enumeration (CWE) IDs that classify the vulnerability type. |
start_private_fork | boolean | Whether to create a temporary private fork of the repository to facilitate collaborative fix development. |
vulnerabilities | array | An array of products or components affected by the vulnerability. Each item should specify the affected product and version range. |
get_security_advisory_repository Get Security Advisory for Repository
Retrieve a repository security advisory by its GitHub Security Advisory (GHSA) identifier. Published advisories on public repositories are accessible to anyone; unpublished advisories require appropriate permissions (security manager, administrator, or collaborator status).
| Parameter | Type | Description |
|---|---|---|
ghsa_id * | string | The GitHub Security Advisory (GHSA) identifier that uniquely identifies the security advisory. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
update_security_advisory Update Security Advisory
Update a repository security advisory by its GHSA identifier. The authenticated user must be a security manager, administrator, or collaborator on the advisory.
| Parameter | Type | Description |
|---|---|---|
ghsa_id * | string | The GitHub Security Advisory (GHSA) identifier of the advisory to update. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
collaborating_teams | array | An array of team slugs which have been granted write access to the advisory. |
collaborating_users | array | An array of usernames who have been granted write access to the advisory. |
credits | array | An array of users receiving credit for their participation in the security advisory. |
cve_id | string | The Common Vulnerabilities and Exposures (CVE) identifier. |
cwe_ids | array | An array of Common Weakness Enumeration (CWE) identifiers related to the advisory. |
description | string | A detailed description of what the advisory impacts. |
state | string | The publication state of the advisory. |
summary | string | A short summary of the advisory. |
vulnerabilities | array | An array of products affected by the vulnerability detailed in the advisory. |
request_cve_for_advisory Request CVE for Advisory
Request a CVE identification number for a repository security advisory. This allows you to obtain an official CVE ID from GitHub for a vulnerability in your public repository.
| Parameter | Type | Description |
|---|---|---|
ghsa_id * | string | The GHSA (GitHub Security Advisory) identifier of the advisory for which you are requesting a CVE. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_security_advisory_fork Create Security Advisory Fork
Create a temporary private fork to collaborate on fixing a security vulnerability. The fork is created asynchronously and may take up to 5 minutes to become accessible.
| Parameter | Type | Description |
|---|---|---|
ghsa_id * | string | The GitHub Security Advisory (GHSA) identifier for the vulnerability being addressed. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_stargazers List Stargazers
Lists all users who have starred the repository. Supports custom media type to include star creation timestamps.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The repository name without the `.git` extension. Case-insensitive. |
get_code_frequency_stats Get Code Frequency Stats
Retrieve weekly code frequency statistics showing the aggregate number of additions and deletions pushed to a repository. This endpoint is limited to repositories with fewer than 10,000 commits.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_commit_activity_stats List Commit Activity Stats
Retrieve commit activity statistics for the last year, grouped by week with daily breakdowns starting on Sunday. Useful for analyzing repository contribution patterns and trends.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The repository name without the `.git` extension. The name is case-insensitive. |
list_contributor_stats List Contributor Stats
Retrieve commit activity statistics for all contributors to a repository, including total commits and weekly breakdowns of additions, deletions, and commits. Note: repositories with 10,000+ commits will show 0 for addition and deletion counts.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
get_repository_participation_stats Get Repository Participation Stats
Retrieve weekly commit statistics for a repository over the last 52 weeks, showing total commits by the owner and all contributors combined. Data is ordered from oldest to most recent week, with the most recent week spanning from seven days ago to today at UTC midnight.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_commit_punch_card Get Commit Punch Card
Retrieve hourly commit statistics for each day of the week, showing commit frequency patterns across all hours. Data is organized as arrays containing day number (0-6), hour (0-23), and commit count.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
create_commit_status Create Commit Status
Create a commit status for a given SHA in a repository. Users with push access can set the status to track build results, checks, or other system states, with a limit of 1000 statuses per SHA and context combination.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
sha * | string | The commit SHA for which to create the status. |
state * | string | The state of the commit status, indicating the result of the check or build. |
context | string | A string label to differentiate this status from other systems. Case-insensitive. Defaults to 'default' if not provided. |
description | string | A short description of the status, providing additional context about the state. |
list_watchers List Repository Watchers
Lists all users who are watching the specified repository. Watchers receive notifications about repository activity.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_repository_subscription Get Repository Subscription
Retrieve the authenticated user's subscription status for a repository. Returns subscription details including whether the user is watching, subscribed to notifications, or ignoring the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
configure_repository_subscription Configure Repository Subscription
Configure your notification preferences for a repository by enabling or disabling watch status and notification blocking. Use this to control whether you receive notifications from repository activity.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
ignored | boolean | Set to `true` to block all notifications from this repository, or `false` to allow notifications based on other settings. |
subscribed | boolean | Set to `true` to receive notifications from this repository, or `false` to disable watch notifications. |
unwatch_repository Unwatch Repository
Stop watching a repository and remove its subscription. This endpoint only controls watch status; to manage notification preferences, set the repository subscription manually.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_tags List Tags
Retrieve all tags for a repository. Tags are typically used to mark specific points in the repository's history, such as release versions.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
download_repository_archive Download Repository Archive
Downloads a tar archive of a repository at a specified reference (branch, tag, or commit). Returns a redirect URL that must be followed to retrieve the actual archive file.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
ref * | string | The git reference to archive, such as a branch name, tag, or commit SHA. If omitted, the repository's default branch will be used. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_repository_teams List Repository Teams
Lists all teams that have access to the specified repository and are visible to the authenticated user. For public repositories, only teams that explicitly added the repository are included.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_repository_topics List Repository Topics
Retrieve all topics associated with a repository. Topics are labels that help categorize and discover repositories.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
update_repository_topics Update Repository Topics
Replace all topics associated with a repository. Pass an array of topics to update the repository's topic tags, or send an empty array to remove all topics. Topics are stored as lowercase.
| Parameter | Type | Description |
|---|---|---|
names * | array | An array of topics to set for the repository. Provide one or more topics to replace existing topics, or an empty array to clear all topics. Topics are automatically stored as lowercase. |
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
list_repository_clones List Repository Clones
Retrieve the total number of clones and daily or weekly breakdown for a repository over the last 14 days. Timestamps are aligned to UTC midnight at the start of each period, with weeks beginning on Monday.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
per | string | The time frame to display clone results for. |
list_popular_paths List Popular Paths
Retrieve the top 10 most popular content paths for a repository based on traffic data from the last 14 days.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
get_repository_views Get Repository Views
Retrieve the total number of page views and daily or weekly breakdown for a repository over the last 14 days. Timestamps are aligned to UTC midnight at the start of each period, with weeks beginning on Monday.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
per | string | The time frame to display results for. Choose between daily or weekly aggregation. |
transfer_repository Transfer Repository
Transfer a repository to a new owner (user or organization). The transfer request requires acceptance by the new owner and proceeds asynchronously, with the original owner retained in the response.
| Parameter | Type | Description |
|---|---|---|
new_owner * | string | The username or organization name that will become the new repository owner. |
owner * | string | The account owner of the repository. Case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. Case-insensitive. |
new_name | string | Optional new name for the repository after transfer. |
team_ids | array | Optional array of team IDs to add to the repository. Teams can only be added to organization-owned repositories. Order is not significant. |
get_vulnerability_alerts_status Get Vulnerability Alerts Status
Retrieve the vulnerability alert status for a repository. Returns whether dependency alerts are enabled or disabled. Requires admin read access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
enable_vulnerability_alerts Enable Vulnerability Alerts
Enable dependency alerts and the dependency graph for a repository to receive security notifications about vulnerable dependencies. The authenticated user must have admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
disable_vulnerability_alerts Disable Vulnerability Alerts
Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
download_repository_archive_zip Download Repository Archive as ZIP
Downloads a repository as a zip archive by following a redirect URL. Omit the ref parameter to use the repository's default branch (usually main). Note: links for private repositories expire after five minutes, and empty repositories return a 404 error.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. Case-insensitive. |
ref * | string | The git reference (branch, tag, or commit SHA) to archive. If omitted, the repository's default branch will be used. |
repo * | string | The name of the repository without the .git extension. Case-insensitive. |
create_repository_from_template Create Repository From Template
Creates a new repository using an existing repository template. The template repository must have `is_template` set to true, and you must have access to it (ownership or organization membership for private templates).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name for the new repository being created. |
template_owner * | string | The account owner of the template repository. Case-insensitive. |
template_repo * | string | The name of the template repository without the `.git` extension. Case-insensitive. |
description | string | A short description of the new repository. |
include_all_branches | boolean | Set to true to include the directory structure and files from all branches in the template repository, rather than just the default branch. |
list_public_repositories List Public Repositories
Retrieve all public repositories ordered by creation time. Pagination is controlled exclusively through the `since` parameter to fetch subsequent pages of results.
| Parameter | Type | Description |
|---|---|---|
since | integer | Filter results to return only repositories with an ID greater than this value. Use this parameter for pagination by passing the ID of the last repository from the previous page. |
add_issue_field_values Add Issue Field Values
Set custom field values for an issue using organization-level fields defined for the repository. Supports text, single-select, number, and date field types. Requires push access to the repository.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The issue number to update with field values. |
repository_id * | integer | The unique identifier of the repository. |
issue_field_values | array | An array of field value objects to set on the issue, where each object contains a field ID and its corresponding value. Pass an empty array to clear all existing field values. Supports up to 25 field… |
set_issue_field_values Set Issue Field Values
Set custom field values for an issue, replacing all existing values. Supports text, single_select, number, and date field types. Requires push access to the repository.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | The number that identifies the issue within the repository. |
repository_id * | integer | The unique identifier of the repository. |
issue_field_values | array | An array of field value objects to set for this issue. Each object must include the field ID and the value to set. All existing field values will be replaced. Values must match the field's data type:… |
delete_issue_field_value Delete Issue Field Value
Remove a custom field value from an issue. Requires push access to the repository; returns 404 if the field has no value set on the issue.
| Parameter | Type | Description |
|---|---|---|
issue_field_id * | integer | The unique identifier of the custom field whose value should be deleted from the issue. |
issue_number * | integer | The issue number that identifies which issue to modify. |
repository_id * | integer | The unique identifier of the repository containing the issue. |
search_code Search Code
Search for code across repositories by query terms within file contents and paths. Returns up to 100 results per page, limited to the default branch and files under 384 KB.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query containing one or more keywords and qualifiers (e.g., language, repo, in:file). At least one search term is required; qualifiers can filter by language, repository, file path, and other c… |
search_commits Search Commits
Search for commits across a repository using various criteria on the default branch. Returns up to 100 results per page and supports text match metadata for commit messages.
| Parameter | Type | Description |
|---|---|---|
assignee | string | Filter by assignee username |
author | string | Filter by issue/PR author username |
created_after | string | Filter by creation date (ISO 8601 format, e.g., '2023-01-01') |
created_before | string | Filter by creation date (ISO 8601 format, e.g., '2023-12-31') |
is_qualifier | string | Qualifier to filter type: 'issue', 'pull-request', or None for both |
keywords | array | Search keywords to find in issues/PRs (e.g., ['windows', 'bug']) |
labels | array | Filter by labels (e.g., ['bug', 'enhancement']) |
language | string | Filter by repository primary language (e.g., 'python', 'javascript') |
order | string | Sort order for search results, determining whether results are ordered by highest or lowest match count. Only applies when using the sort parameter. |
repo | string | Filter by repository in format 'owner/repo' |
state | string | Filter by state: 'open', 'closed', or 'all' |
search_issues Search Issues
Search for issues and pull requests across repositories by state, keywords, and labels. Returns up to 100 results per page with optional text match metadata for titles, bodies, and comments.
| Parameter | Type | Description |
|---|---|---|
assignee | string | Filter by assignee username |
author | string | Filter by issue/PR author username |
created_after | string | Filter by creation date (ISO 8601 format, e.g., '2023-01-01') |
created_before | string | Filter by creation date (ISO 8601 format, e.g., '2023-12-31') |
is_qualifier | string | Qualifier to filter type: 'issue', 'pull-request', or None for both |
keywords | array | Search keywords to find in issues/PRs (e.g., ['windows', 'bug']) |
labels | array | Filter by labels (e.g., ['bug', 'enhancement']) |
language | string | Filter by repository primary language (e.g., 'python', 'javascript') |
order | string | Sort order for search results. Use ascending to show lowest match counts first, or descending for highest match counts first. Only applies when results are sorted. |
repo | string | Filter by repository in format 'owner/repo' |
state | string | Filter by state: 'open', 'closed', or 'all' |
search_labels Search Labels
Search for labels in a repository by name or description using keywords. Returns up to 100 results per page, with the best matching labels appearing first.
| Parameter | Type | Description |
|---|---|---|
q * | string | The search keywords to match against label names and descriptions. Qualifiers are not supported in this query. |
repository_id * | integer | The numeric identifier of the repository to search labels within. |
order | string | Determines the sort order of results: highest match count first (desc) or lowest match count first (asc). |
search_repositories Search Repositories
Search GitHub repositories using keywords and qualifiers to find repositories matching specific criteria. Results are paginated with up to 100 repositories per page.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query containing one or more keywords and qualifiers to filter repositories. Qualifiers allow you to limit results by language, stars, forks, creation date, and other repository attributes. Ref… |
order | string | Sort order for search results. Use 'desc' to return results with the highest match count first, or 'asc' for lowest match count first. This parameter only applies when results are sorted. |
search_topics Search Topics
Search for GitHub topics using keywords and qualifiers to find the best matching results. Results are sorted by relevance and limited to 100 per page.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query containing one or more keywords and optional qualifiers (e.g., is:featured) to filter results. Qualifiers allow you to limit searches to specific topic attributes like featured status, la… |
search_users Search Users
Search for publicly visible users by various criteria including name, email, repository count, and followers. Returns up to 100 results per page and supports text match metadata for enhanced result highlighting.
| Parameter | Type | Description |
|---|---|---|
assignee | string | Filter by assignee username |
author | string | Filter by issue/PR author username |
created_after | string | Filter by creation date (ISO 8601 format, e.g., '2023-01-01') |
created_before | string | Filter by creation date (ISO 8601 format, e.g., '2023-12-31') |
is_qualifier | string | Qualifier to filter type: 'issue', 'pull-request', or None for both |
keywords | array | Search keywords to find in issues/PRs (e.g., ['windows', 'bug']) |
labels | array | Filter by labels (e.g., ['bug', 'enhancement']) |
language | string | Filter by repository primary language (e.g., 'python', 'javascript') |
order | string | Sort order for search results based on match relevance. Use 'desc' for highest matches first or 'asc' for lowest matches first. Only applies when results are sorted. |
repo | string | Filter by repository in format 'owner/repo' |
state | string | Filter by state: 'open', 'closed', or 'all' |
get_authenticated_user Get Authenticated User
Retrieve the profile information of the currently authenticated user. Requires `user` scope for OAuth app tokens or personal access tokens (classic) to include private profile details.
update_user Update User
Update the authenticated user's profile information. Note that email privacy settings are always enforced—if your email is private, it will not be displayed publicly regardless of updates.
| Parameter | Type | Description |
|---|---|---|
bio | string | A short biography or about section for the user's profile. |
blog | string | The user's blog or personal website URL. |
company | string | The user's company or organization name. |
hireable | boolean | Whether the user is available for hiring. |
twitter_username | string | The user's Twitter username. |
list_blocked_users_personal List Blocked Users
Retrieve a list of all users blocked by the authenticated user on their personal account.
check_user_blocked Check User Blocked
Determine if a specific user is blocked by the authenticated user. Returns a 204 status if the user is blocked, or 404 if the user is not blocked or has been identified as spam.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle to check for a blocking relationship. |
block_user Block User
Block a GitHub user to prevent interactions with them. Returns a 204 status on success, or 422 if the authenticated user cannot block the specified user.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle of the user to block. |
unblock_user Unblock User
Unblock a previously blocked user account. Returns a 204 status code on successful completion.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle of the user to unblock. |
list_codespaces List Codespaces
Lists all codespaces for the authenticated user. Optionally filter results by a specific repository.
| Parameter | Type | Description |
|---|---|---|
repository_id | integer | Filter codespaces to only those associated with a specific repository by its ID. |
create_codespace_from_pull_request_2 Create Codespace for Authenticated User
Create a new codespace for the authenticated user from a repository or pull request. Requires either a repository ID or pull request reference, but not both.
| Parameter | Type | Description |
|---|---|---|
body * | Configuration for the new codespace, including the target repository or pull request, optional branch/tag reference, and preferred geographic region for the codespace environment. |
list_codespace_secrets_for_user List Codespace Secrets for User
Retrieve all development environment secrets available for the authenticated user's codespaces. Secret values are not revealed; only metadata about available secrets is returned.
get_codespaces_public_key Get Codespaces Public Key
Retrieve your public key needed to encrypt secrets for GitHub Codespaces. This key must be obtained before creating or updating any Codespaces secrets.
get_codespace_secret_for_user Get Codespace Secret for User
Retrieve a development environment secret available to the authenticated user's codespaces without revealing its encrypted value. Requires Codespaces access and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
secret_name * | string | The name of the secret to retrieve. |
create_or_update_codespace_secret Create or Update Codespace Secret
Create or update an encrypted development environment secret for the authenticated user's codespaces. The secret value must be encrypted using LibSodium with a public key retrieved from the public key endpoint.
| Parameter | Type | Description |
|---|---|---|
key_id * | string | The ID of the public key used to encrypt the secret value. |
secret_name * | string | The name of the secret to create or update. |
encrypted_value | string | The encrypted value of the secret, encrypted using LibSodium with the public key from the Get public key endpoint. Must be base64-encoded. |
selected_repository_ids | array | An array of repository IDs that can access this secret. Manage repository access separately using the dedicated repository endpoints. |
delete_codespace_secret_for_user Delete Codespace Secret for User
Delete a development environment secret for the authenticated user. Removing the secret revokes access from all codespaces that were previously allowed to use it.
| Parameter | Type | Description |
|---|---|---|
secret_name * | string | The name of the secret to delete from the user's codespaces. |
list_repositories_for_secret List Repositories for Secret
List the repositories that have been granted access to use a user's development environment secret. The authenticated user must have Codespaces access to use this endpoint.
| Parameter | Type | Description |
|---|---|---|
secret_name * | string | The name of the user secret for which to list authorized repositories. |
update_secret_repositories Update Secret Repositories
Update which repositories can access a user's development environment secret. This replaces the entire list of authorized repositories for the specified secret.
| Parameter | Type | Description |
|---|---|---|
secret_name * | string | The name of the user secret to configure repository access for. |
selected_repository_ids * | array | An array of repository IDs that will have access to this secret. Provide the complete list of repositories you want to authorize; any repositories not included will be removed from access. |
add_repository_to_codespace_secret Add Repository to Codespace Secret
Adds a repository to the list of selected repositories that can access a user's Codespaces development environment secret. The authenticated user must have Codespaces access and appropriate OAuth or personal access token scopes.
| Parameter | Type | Description |
|---|---|---|
repository_id * | integer | The unique identifier of the repository to add to the secret's accessible repositories. |
secret_name * | string | The name of the Codespaces secret to which the repository will be added. |
remove_repository_from_codespace_secret Remove Repository from Codespace Secret
Remove a repository from a user's Codespaces development environment secret. This restricts which repositories can access the specified secret.
| Parameter | Type | Description |
|---|---|---|
repository_id * | integer | The unique identifier of the repository to remove from the secret's access list. |
secret_name * | string | The name of the Codespaces secret to modify. |
get_codespace Get Codespace
Retrieve detailed information about a specific codespace for the authenticated user. Requires the `codespace` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to retrieve information for. |
update_codespace Update Codespace
Update a codespace owned by the authenticated user. You can modify the machine type (applied on next start), display name, and recently opened folders.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to update. |
display_name | string | A display name for the codespace. |
machine | string | The machine type to transition this codespace to. Changes take effect the next time the codespace is started. |
recent_folders | array | An ordered list of folder paths recently opened inside the codespace. Used by clients to determine which folder to load when starting the codespace. |
delete_codespace Delete Codespace
Delete a codespace for the authenticated user. Requires the `codespace` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to delete. |
export_codespace Export Codespace
Initiates an export of a codespace and returns a URL and ID to monitor the export status. Any uncommitted changes will be pushed to the codespace's repository or to a new/existing fork if pushing to the repository is not possible.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to export. |
get_codespace_export_details Get Codespace Export Details
Retrieve detailed information about a codespace export operation. Use this to check the status and details of an exported codespace.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to retrieve export details for. |
export_id * | string | The ID of the export operation to retrieve details for. Use `latest` to get the most recent export. |
list_codespace_machines_available List Available Codespace Machines
List the machine types available for a codespace to transition to. This helps determine which hardware configurations are compatible with the specified codespace.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace for which to list available machine types. |
publish_codespace Publish Codespace
Publish an unpublished codespace by creating a new repository and associating it with the codespace. The codespace's token will have write permissions to the new repository, enabling you to push changes.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to publish. The codespace must be unpublished (not already associated with a repository). |
start_codespace Start Codespace
Start a codespace for the authenticated user. Requires the `codespace` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to start. |
stop_codespace_authenticated Stop Codespace for Authenticated User
Stop a running codespace for the authenticated user. Requires the `codespace` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
codespace_name * | string | The name of the codespace to stop. |
set_primary_email_visibility Set Primary Email Visibility
Configure the visibility setting for your primary email address. Choose whether your primary email is publicly visible or private.
| Parameter | Type | Description |
|---|---|---|
visibility * | string | Controls whether your primary email address is publicly visible or kept private. |
list_emails List Emails for Authenticated User
Retrieve all email addresses associated with the authenticated user, including which email is publicly visible. Requires the `user:email` OAuth scope.
add_email Add Email for Authenticated User
Add one or more email addresses to the authenticated user's account. Requires the `user` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
body | object | A list of email addresses to add to the user's account. Accepts either an object with an `emails` array or a scalar email string. |
delete_email Delete Email
Remove one or more email addresses from the authenticated user's GitHub account. Requires the `user` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
body | object | Object containing one or more email addresses to delete from the account. At least one email address is required. Accepts either an object with an `emails` key containing an array of addresses, or a s… |
list_followers List Followers
Retrieve a list of users who are following the authenticated user. This provides visibility into your followers on the platform.
list_followed_users List Followed Users
Retrieve the list of users that the authenticated user follows. This allows you to see all accounts the current user is subscribed to.
check_user_is_followed Check User Is Followed
Verify whether the authenticated user is following a specific GitHub user account. Returns true if the user is followed, false otherwise.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username to check if it is being followed by the authenticated user. |
follow_user Follow User
Follow a GitHub user account. Requires the `user:follow` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username of the account to follow. |
unfollow_user Unfollow User
Unfollow a GitHub user. Requires the `user:follow` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle to unfollow. |
list_gpg_keys List GPG Keys
Retrieve all GPG keys associated with the authenticated user's account. Requires `read:gpg_key` scope for OAuth apps and personal access tokens (classic).
add_gpg_key Add GPG Key
Add a GPG key to the authenticated user's GitHub account. Requires the `write:gpg_key` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
armored_public_key * | string | A GPG public key in ASCII-armored format. This is the exported public key block that begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----' and ends with '-----END PGP PUBLIC KEY BLOCK-----'. |
get_gpg_key Get GPG Key
Retrieve detailed information about a specific GPG key for the authenticated user. Requires the `read:gpg_key` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
gpg_key_id * | integer | The unique identifier of the GPG key to retrieve. |
delete_gpg_key Delete GPG Key
Remove a GPG key from the authenticated user's GitHub account. Requires `admin:gpg_key` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
gpg_key_id * | integer | The unique identifier of the GPG key to delete. |
list_app_installations_user List App Installations for Authenticated User
List all GitHub App installations that the authenticated user has explicit permission to access. This includes installations on repositories the user owns, collaborates on, or can access through organization membership.
add_repository_to_installation Add Repository to Installation
Add a single repository to an app installation. The authenticated user must have admin access to the repository.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the installation to which the repository will be added. |
repository_id * | integer | The unique identifier of the repository to add to the installation. |
remove_repository_from_app_installation Remove Repository from App Installation
Remove a single repository from an app installation. The authenticated user must have admin access to the repository, and the installation must have repository selection set to 'selected'.
| Parameter | Type | Description |
|---|---|---|
installation_id * | integer | The unique identifier of the app installation from which to remove the repository. |
repository_id * | integer | The unique identifier of the repository to remove from the installation. |
get_interaction_restrictions Get Interaction Restrictions
Retrieve the current interaction restrictions applied to your public repositories, including which types of GitHub users can interact and when the restriction expires.
list_issues_assigned List Assigned Issues
Retrieve issues assigned to the authenticated user across owned and member repositories. Note that pull requests are included in results and can be identified by the `pull_request` key.
| Parameter | Type | Description |
|---|---|---|
direction | string | Sort direction for results, either ascending or descending by the sort field. |
filter | string | Filter issues by type of involvement: assigned to you, created by you, mentioning you, subscribed to, or all visible issues. |
labels | string | Filter by one or more labels. Provide as comma-separated label names to match issues with any of the specified labels. |
since | string | Only return issues updated after this timestamp. Provide in ISO 8601 format. |
state | string | Filter issues by their current state: open, closed, or all states. |
list_ssh_keys List SSH Keys
Retrieve all public SSH keys associated with the authenticated user's GitHub account. Requires `read:public_key` scope for OAuth apps and personal access tokens (classic).
add_ssh_key Add SSH Key
Add a public SSH key to the authenticated user's GitHub account. Requires the `write:public_key` OAuth scope or personal access token permission.
| Parameter | Type | Description |
|---|---|---|
key * | string | The public SSH key to add to your GitHub account. Must be in a valid SSH key format (RSA, DSS, ED25519, or ECDSA). |
get_ssh_key Get SSH Key
Retrieve detailed information about a specific public SSH key for the authenticated user. Requires the `read:public_key` scope.
| Parameter | Type | Description |
|---|---|---|
key_id * | integer | The unique identifier of the SSH key to retrieve. |
delete_ssh_key Delete SSH Key
Remove a public SSH key from the authenticated user's GitHub account. Requires `admin:public_key` scope for OAuth apps and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
key_id * | integer | The unique identifier of the SSH key to delete. |
list_subscriptions List Subscriptions
Retrieves all active marketplace subscriptions for the authenticated user. This includes any active plans or licenses the user has purchased.
list_subscriptions_stubbed List Subscriptions for Authenticated User (Stubbed)
Retrieves all active marketplace subscriptions for the authenticated user. This endpoint provides a view of the user's current subscription status and details.
list_organization_memberships List Organization Memberships
Retrieve all organization memberships for the authenticated user. Returns both active and pending memberships by default, or filter by membership state.
| Parameter | Type | Description |
|---|---|---|
state | string | Filter memberships by their current state. Returns both active and pending memberships if not specified. |
get_organization_membership_authenticated Get Organization Membership for Authenticated User
Retrieve the authenticated user's membership status in a specified organization. Returns membership details if the user is an active or pending member, otherwise returns a 404 error.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
activate_organization_membership Activate Organization Membership
Activate an organization membership for the authenticated user by converting a pending invitation to active status. The user must have a pending invitation from the organization to perform this action.
| Parameter | Type | Description |
|---|---|---|
org * | string | The name of the organization. Organization names are case-insensitive. |
state * | string | The desired membership state. Only active membership status is supported. |
list_migrations List Migrations
Retrieves all migrations that have been initiated by the authenticated user. This includes migrations in progress, completed, and failed states.
get_migration_status_user Get Migration Status for Authenticated User
Retrieves the current status of a user migration by its unique identifier. The response includes the migration state (pending, exporting, exported, or failed) and can be used to track progress or determine when the migration archive is ready for download.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration to retrieve status for. |
download_migration_archive_user Download Migration Archive
Download a user migration archive as a tar.gz file containing repository data, metadata, and attachments. The archive includes JSON files for various GitHub objects and Git repository data.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration for which to retrieve the archive. |
delete_migration_archive_user Delete Migration Archive for Authenticated User
Delete a user migration archive for a completed migration. Downloadable archives are automatically deleted after seven days, but you can manually remove them earlier. Migration metadata remains available even after the archive is deleted.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration whose archive should be deleted. |
unlock_migration_repository_user Unlock Migration Repository
Unlock a repository that was locked during a user migration. After migration completes, unlock repositories to resume normal usage or delete them if no longer needed.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration that locked the repository. |
repo_name * | string | The name of the repository to unlock. |
list_migration_repositories_user List Migration Repositories for Authenticated User
Lists all repositories associated with a specific user migration. Use this to retrieve the repositories that were migrated as part of a migration operation.
| Parameter | Type | Description |
|---|---|---|
migration_id * | integer | The unique identifier of the migration for which to retrieve associated repositories. |
list_organizations_authenticated List Organizations for Authenticated User
Retrieve all organizations for the authenticated user. The list is filtered based on the authorization scopes provided; OAuth app tokens and personal access tokens (classic) require at least `user` or `read:org` scope, while fine-grained access tokens will return an empty list.
list_packages List Packages for Authenticated User
List all packages owned by the authenticated user within their namespace. Requires `read:packages` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
package_type * | string | The package registry type to filter by. Gradle packages use `maven`, container images pushed to ghcr.io use `container`, and `docker` finds images in the legacy Docker registry even if migrated to Con… |
visibility | string | Filter results by package visibility level. The `internal` visibility is only supported for registries with granular permissions; for other ecosystems it is treated as `private`. |
get_package Get Package
Retrieve a specific package owned by the authenticated user. Requires `read:packages` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve. |
package_type * | string | The package registry type. Gradle packages use `maven`, Docker images pushed to GitHub Container Registry use `container`, and `docker` retrieves images from the legacy Docker registry. |
delete_package Delete Package
Delete a package owned by the authenticated user. Public packages with more than 5,000 downloads cannot be deleted; contact GitHub support in such cases.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to delete. |
package_type * | string | The package type to delete. Gradle packages use 'maven', Docker images pushed to ghcr.io use 'container', and 'docker' finds images in the legacy Docker registry. |
restore_package Restore Package
Restore a deleted package owned by the authenticated user. The package must have been deleted within the last 30 days and the same package namespace and version must still be available.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to restore. |
package_type * | string | The type of package to restore. Gradle packages use 'maven', container images use 'container', and 'docker' finds images in the legacy Docker registry. |
list_package_versions List Package Versions
Retrieve all versions of a package owned by the authenticated user. Requires `read:packages` OAuth scope or personal access token (classic) with appropriate permissions.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve versions for. |
package_type * | string | The package registry type. Gradle packages use `maven`, Docker images pushed to GitHub Container Registry use `container`, and `docker` finds images in the legacy Docker registry. |
state | string | Filter package versions by their lifecycle state. Use `active` for current versions or `deleted` for removed versions. |
get_package_version Get Package Version
Retrieve a specific package version owned by the authenticated user. Requires `read:packages` scope for OAuth apps and personal access tokens.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve. |
package_type * | string | The package registry type. Gradle packages use `maven`, Docker images pushed to ghcr.io use `container`, and `docker` retrieves images from the legacy Docker registry (docker.pkg.github.com). |
package_version_id * | integer | The unique numeric identifier of the package version. |
delete_package_version_authenticated Delete Package Version
Delete a specific package version owned by the authenticated user. Public packages with more than 5,000 downloads cannot be deleted; contact GitHub support in such cases.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to delete a version from. |
package_type * | string | The package type (e.g., npm, maven, docker). Gradle packages use 'maven', and Container registry images use 'container'. |
package_version_id * | integer | The unique identifier of the package version to delete. |
restore_package_version_for_authenticated_user Restore Package Version for Authenticated User
Restore a deleted package version for the authenticated user. The package must have been deleted within the last 30 days and the same package namespace and version must still be available.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to restore. |
package_type * | string | The type of package registry (npm, Maven, RubyGems, Docker, NuGet, or Container). |
package_version_id * | integer | The unique identifier of the package version to restore. |
list_public_emails List Public Emails
Retrieve all publicly visible email addresses for the authenticated user. Requires the `user:email` scope for OAuth apps and personal access tokens (classic).
list_repositories List Repositories
List repositories accessible to the authenticated user, including owned repositories, collaborations, and organization memberships. Filter and sort results by visibility, affiliation, type, and update time.
| Parameter | Type | Description |
|---|---|---|
affiliation | string | Filter repositories by the authenticated user's relationship to them. Accepts a comma-separated list of values: owner (owned by user), collaborator (user added as collaborator), or organization_member… |
direction | string | Sort direction for results. Defaults to ascending when sorting by full_name, otherwise descending. |
since | string | Return only repositories updated after this timestamp in ISO 8601 format. |
type | string | Filter repositories by type. Cannot be used together with visibility or affiliation parameters. Defaults to all repository types. |
visibility | string | Filter repositories by visibility level. Defaults to all repositories regardless of visibility. |
create_repository Create Repository
Create a new repository for the authenticated user. Requires `public_repo` or `repo` scope for public repositories, and `repo` scope for private repositories.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the repository. This is a required identifier for the repository. |
allow_auto_merge | boolean | Whether to allow auto-merge to be used on pull requests, automatically merging when conditions are met. |
allow_merge_commit | boolean | Whether to allow merge commits for pull requests, preserving the full commit history. |
allow_rebase_merge | boolean | Whether to allow rebase merges for pull requests, replaying commits on top of the base branch. |
allow_squash_merge | boolean | Whether to allow squash merges for pull requests, combining all commits into a single commit. |
auto_init | boolean | Whether the repository is initialized with a minimal README file upon creation. |
delete_branch_on_merge | boolean | Whether to delete head branches when pull requests are merged, keeping the repository clean. |
description | string | A short description of the repository to help others understand its purpose. |
gitignore_template | string | The desired language or platform for the .gitignore template to be applied to the repository. |
has_discussions | boolean | Whether discussions are enabled for the repository, allowing community conversations. |
has_issues | boolean | Whether issues are enabled for the repository, allowing users to report bugs and request features. |
has_projects | boolean | Whether projects are enabled for the repository, allowing project board management. |
has_wiki | boolean | Whether the wiki is enabled for the repository, allowing collaborative documentation. |
homepage | string | A URL with more information about the repository, such as project documentation or homepage. |
is_template | boolean | Whether this repository acts as a template that can be used to generate new repositories. |
license_template | string | The license keyword of the open source license to apply to this repository. |
merge_commit_message | string | The default message format for merge commits. Use `PR_BODY` for the pull request's body, `PR_TITLE` for the pull request's title, or `BLANK` for a blank message. |
merge_commit_title | string | The default title format for merge commits. Use `PR_TITLE` to default to the pull request's title, or `MERGE_MESSAGE` for the classic merge message format. |
squash_merge_commit_message | string | The default message format for squash merge commits. Use `PR_BODY` for the pull request's body, `COMMIT_MESSAGES` for the branch's commit messages, or `BLANK` for a blank message. |
squash_merge_commit_title | string | The default title format for squash merge commits. Use `PR_TITLE` to default to the pull request's title, or `COMMIT_OR_PR_TITLE` to default to the commit's title (if only one commit) or the pull requ… |
team_id | integer | The ID of the team that will be granted access to this repository. Only valid when creating a repository in an organization. |
list_repository_invitations_for_user List Repository Invitations for Authenticated User
List all open repository invitations for the authenticated user. Returns pending invitations to collaborate on repositories.
accept_repository_invitation Accept Repository Invitation
Accept a repository invitation for the authenticated user. This action confirms the user's intent to join the repository and grants them access based on the invitation's permissions.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the repository invitation to accept. |
decline_repository_invitation Decline Repository Invitation
Decline a repository invitation for the authenticated user. This removes the invitation and prevents the user from accessing the repository.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | integer | The unique identifier of the repository invitation to decline. |
list_social_accounts List Social Accounts
Retrieve all social accounts connected to the authenticated user's profile. This includes any third-party social media or identity provider accounts that have been linked.
add_social_accounts Add Social Accounts
Add one or more social media accounts to the authenticated user's profile. Requires the `user` scope for OAuth app tokens and personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
account_urls * | array | Array of complete URLs for the social media profiles to add. Each URL should point to a valid social media profile. |
delete_social_accounts Delete Social Accounts
Remove one or more social media accounts from the authenticated user's profile. Requires the `user` OAuth scope.
| Parameter | Type | Description |
|---|---|---|
account_urls * | array | Array of complete URLs for the social media profiles to delete. Each URL should point to the full profile address on the respective social platform. |
list_starred_repositories List Starred Repositories
Retrieve a list of repositories that the authenticated user has starred. Results can be sorted in ascending or descending order by star creation timestamp.
| Parameter | Type | Description |
|---|---|---|
direction | string | Sort order for the results. Use ascending to show oldest stars first, or descending to show newest stars first. |
check_repository_starred Check Repository Starred
Check whether the authenticated user has starred a specific repository. Returns a 204 status if starred, 404 if not.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
star_repository Star Repository
Star a repository for the authenticated user. This action marks the repository as starred and adds it to the user's starred list.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is not case sensitive. |
unstar_repository Unstar Repository
Remove a starred repository from the authenticated user's starred list. The repository must have been previously starred by the user.
| Parameter | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is case-insensitive. |
repo * | string | The name of the repository without the `.git` extension. The name is case-insensitive. |
list_watched_repositories List Watched Repositories
Retrieve a list of all repositories that the authenticated user is currently watching. This includes repositories the user has subscribed to for notifications and updates.
list_teams_authenticated List Teams for Authenticated User
Retrieve all teams across all organizations to which the authenticated user belongs. Requires appropriate OAuth scopes or fine-grained personal access token with organization resource ownership.
get_user Get User
Retrieve publicly available information about a GitHub user by their account ID. Returns user profile data including name, bio, location, and publicly visible email address if set.
| Parameter | Type | Description |
|---|---|---|
account_id * | integer | The unique numeric identifier for the GitHub user account. This ID is durable and does not change even if the user's login name changes. |
create_draft_item_user Create Draft Item for User
Create a draft issue item in a user-owned project. Draft items allow you to prepare issues before formally adding them to the project.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The project's number, which uniquely identifies the project within the user's account. |
title * | string | The title of the draft issue item. This is the primary heading for the draft. |
user_id * | string | The unique identifier of the user who owns the project. |
body | string | The body content of the draft issue item. This field provides additional details and context for the draft. |
list_users List Users
Retrieve all users in signup order, including personal and organization accounts. Pagination is controlled exclusively through the `since` parameter using Link headers for subsequent pages.
| Parameter | Type | Description |
|---|---|---|
since | integer | Filter results to return only users with an ID greater than this value. Use this parameter for pagination by passing the ID of the last user from the previous page. |
create_project_view_user Create Project View for User
Create a new view in a user-owned project to customize how items are displayed and filtered. Views support different layouts (table, board, roadmap) and can be configured with filters and visible fields.
| Parameter | Type | Description |
|---|---|---|
layout * | string | The layout type that determines how project items are displayed. |
name * | string | The display name for the new view. |
project_number * | integer | The project's number identifier. |
user_id * | string | The unique identifier of the user who owns the project. |
filter | string | Optional filter query to control which items appear in the view. Use filter syntax to match issues, pull requests, and other project items by status, labels, assignees, and other criteria. |
visible_fields | array | Optional array of field IDs to display in the view. Not applicable for roadmap layouts. If omitted, default visible fields will be used for table and board layouts. |
get_user_by_username Get User by Username
Retrieve publicly available information about a GitHub user account. Returns profile data including public email if set, with access restrictions for Enterprise Managed Users.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle to look up. Case-insensitive identifier for the user account. |
list_attestations_by_digests_user List Attestations by Digests for User
Retrieve artifact attestations for a user across multiple subject digests. Results are filtered based on the authenticated user's repository permissions and require the `attestations:read` permission for fine-grained access tokens.
| Parameter | Type | Description |
|---|---|---|
subject_digests * | array | List of subject digests to fetch attestations for. Each digest identifies an artifact for which attestations are requested. |
username * | string | The GitHub username whose attestations should be retrieved. |
predicate_type | string | Optional filter to retrieve only attestations matching a specific predicate type. Supports standard types (provenance, sbom, release) or custom freeform text values. |
delete_attestations_user Delete User Attestations
Remove artifact attestations in bulk for a GitHub user by specifying either subject digests or attestation IDs. Exactly one of these criteria must be provided.
| Parameter | Type | Description |
|---|---|---|
body * | Request payload containing deletion criteria. Provide either an array of subject digests (in format algorithm:hexvalue) or an array of attestation IDs, but not both. | |
username * | string | The GitHub user account handle whose attestations will be deleted. |
delete_attestation_by_subject_digest_user Delete Attestation by Subject Digest
Delete an artifact attestation for a GitHub user by its subject digest. This removes the attestation record associated with the specified digest.
| Parameter | Type | Description |
|---|---|---|
subject_digest * | string | The subject digest that uniquely identifies the attestation to delete. |
username * | string | The GitHub username (handle) of the account whose attestation should be deleted. |
delete_attestation_user Delete User Attestation
Delete an artifact attestation by ID that is associated with a repository owned by a user. This operation removes the attestation record permanently.
| Parameter | Type | Description |
|---|---|---|
attestation_id * | integer | The unique identifier of the attestation to delete. |
username * | string | The GitHub username (handle) of the account that owns the repository containing the attestation. |
list_attestations_user List User Attestations
Retrieve artifact attestations for a specific subject digest across repositories owned by a user. Results are filtered based on the authenticated user's repository access permissions and require cryptographic verification before use.
| Parameter | Type | Description |
|---|---|---|
subject_digest * | string | The cryptographic digest identifying the artifact subject for which to retrieve attestations. |
username * | string | The GitHub user account handle whose repositories will be searched for attestations. |
predicate_type | string | Filter attestations by predicate type to narrow results to specific attestation categories or custom types. |
list_user_events List User Events
List events for a GitHub user. If authenticated as the specified user, private events are included; otherwise only public events are returned. Note: This API is not optimized for real-time use cases and may have latency of 30 seconds to 6 hours depending on time of day.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose events should be listed. |
list_organization_events_for_user List Organization Events for User
Retrieve organization events for the authenticated user. This endpoint provides the user's organization dashboard view and requires authentication as the specified user.
| Parameter | Type | Description |
|---|---|---|
org * | string | The organization name to filter events for. Organization names are case-insensitive. |
username * | string | The GitHub username whose organization events should be retrieved. The authenticated user must have access to view this user's organization dashboard. |
list_user_public_events List User Public Events
Retrieve a list of public events for a GitHub user. Note: This API is not optimized for real-time use cases and may have event latency ranging from 30 seconds to 6 hours depending on the time of day.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) for the user whose public events you want to retrieve. |
list_followers_by_username List Followers by Username
Retrieves a list of users who are following the specified GitHub user account.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose followers you want to retrieve. |
list_following List Following
Retrieves the list of users that a specified GitHub user follows. This provides insight into the accounts and projects a user is interested in tracking.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) of the user whose following list should be retrieved. |
check_user_following Check User Following
Determine whether a specific user follows another user on GitHub. Returns true if the follower relationship exists, false otherwise.
| Parameter | Type | Description |
|---|---|---|
target_user * | string | The GitHub username of the target user to check if they are being followed. |
username * | string | The GitHub username of the user whose following list will be checked. |
list_user_gists List User Gists
Retrieve all public gists created by a specified GitHub user. Results can be filtered to show only gists updated after a given timestamp.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose gists should be listed. |
since | string | Filter results to show only gists last updated after this timestamp in ISO 8601 format. |
list_gpg_keys_by_username List GPG Keys by Username
Retrieve all GPG keys associated with a GitHub user account. This information is publicly accessible.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose GPG keys should be retrieved. |
get_user_hovercard Get User Hovercard
Retrieve contextual information about a GitHub user, including their activity related to pull requests, issues, repositories, and organizations. Optionally provide subject context (repository, organization, issue, or pull request) to get more detailed relationship information.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username handle for the user whose hovercard information you want to retrieve. |
subject_id | string | The unique identifier for the subject specified in subject_type. Required when subject_type is provided to establish the contextual relationship. |
subject_type | string | The type of subject context to include in the hovercard response. When specified, must be paired with the corresponding subject_id to provide relationship context. |
get_user_installation Get User Installation
Retrieve the authenticated GitHub App's installation information for a specific user. Requires JWT authentication as a GitHub App.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) for which to retrieve the app installation information. |
list_public_keys List Public Keys for User
Retrieves all verified public SSH keys for a GitHub user. This endpoint is publicly accessible and does not require authentication.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose public keys should be retrieved. |
list_user_organizations List User Organizations
List public organization memberships for a specified GitHub user. This operation only returns public memberships; use the authenticated user organizations endpoint to retrieve both public and private memberships for the current user.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) for the user whose public organization memberships you want to retrieve. |
list_user_packages List User Packages
Retrieve all packages in a user's namespace that the requesting user has access to. Requires `read:packages` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
package_type * | string | The package registry type to filter by. Gradle packages use `maven`, Docker images in the Container registry use `container`, and `docker` finds images in the legacy Docker registry. |
username * | string | The GitHub username whose packages to list. |
visibility | string | Filter results by package visibility level. The `internal` visibility is only supported for registries with granular permissions; for other ecosystems it is treated as `private`. |
get_package_public Get Public Package
Retrieve metadata for a specific package owned by a user. Requires `read:packages` scope for OAuth app tokens or personal access tokens (classic).
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve. |
package_type * | string | The package registry type. Gradle packages use `maven`, Docker images pushed to GitHub Container Registry use `container`, and `docker` retrieves images from the legacy Docker registry. |
username * | string | The GitHub username of the package owner. |
delete_user_package Delete User Package
Delete an entire package for a user. Public packages with more than 5,000 downloads cannot be deleted; contact GitHub support in such cases. Admin permissions are required for registries with granular permissions.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to delete. |
package_type * | string | The package registry type. Gradle packages use 'maven', Docker images pushed to ghcr.io use 'container', and 'docker' finds images in the legacy Docker registry. |
username * | string | The GitHub username of the package owner. |
restore_package_for_user Restore Package for User
Restore a deleted package for a user. The package must have been deleted within the last 30 days and the same package namespace and version must still be available and not reused.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to restore. |
package_type * | string | The package registry type. GitHub's Gradle registry uses 'maven', Container registry uses 'container', and 'docker' finds images in the legacy Docker registry. |
username * | string | The GitHub username of the package owner. |
list_package_versions_public List Package Versions
Retrieve all versions of a public package owned by a specified user. Requires `read:packages` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve versions for. |
package_type * | string | The package ecosystem type. Gradle packages use `maven`, Docker images pushed to GitHub Container Registry use `container`, and `docker` finds images in the legacy Docker registry. |
username * | string | The GitHub username of the package owner. |
get_package_version_public Get Package Version for User
Retrieve a specific version of a public package owned by a user. Requires `read:packages` OAuth scope or personal access token (classic).
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to retrieve. |
package_type * | string | The package ecosystem type. Gradle packages use `maven`, Docker images pushed to ghcr.io use `container`, and `docker` retrieves images from the legacy Docker registry (docker.pkg.github.com). |
package_version_id * | integer | The unique numeric identifier for the specific package version. |
username * | string | The GitHub username of the package owner. |
delete_package_version_user Delete Package Version for User
Delete a specific package version for a user account. Public packages with more than 5,000 downloads cannot be deleted; contact GitHub support for assistance in such cases.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to delete a version from. |
package_type * | string | The package registry type. GitHub's Gradle registry uses 'maven', Container registry uses 'container', and 'docker' finds images in the legacy Docker registry. |
package_version_id * | integer | The unique identifier of the package version to delete. |
username * | string | The GitHub username of the account that owns the package. |
restore_package_version_for_user Restore Package Version for User
Restore a deleted package version for a user. The package must have been deleted within the last 30 days and the same package namespace and version must still be available.
| Parameter | Type | Description |
|---|---|---|
package_name * | string | The name of the package to restore. |
package_type * | string | The type of package registry. Gradle packages use 'maven', Docker images pushed to GitHub's Container registry use 'container', and 'docker' finds images in the legacy Docker registry. |
package_version_id * | integer | The unique identifier of the package version to restore. |
username * | string | The GitHub username of the package owner. |
list_user_projects List User Projects
Retrieve all projects owned by a specific GitHub user that are accessible to the authenticated user. Optionally filter results by project type.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose projects should be listed. |
q | string | Filter results to include only projects of a specified type. |
get_user_project Get User Project
Retrieve a specific project owned by a GitHub user. Returns detailed information about the project identified by its number.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The unique numeric identifier for the project within the user's project collection. |
username * | string | The GitHub username (handle) of the user who owns the project. |
list_project_fields_user List Project Fields for User
Retrieve all fields configured for a specific user-owned GitHub Projects (V2) board. Fields define the custom properties and metadata available for tracking issues and pull requests within the project.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The numeric identifier of the GitHub Projects (V2) board. |
username * | string | The GitHub username of the project owner. |
add_project_field_user Add Project Field for User
Add a new field to a user-owned GitHub project. The field can be of various types including text, number, date, iteration, or single select with configurable options.
| Parameter | Type | Description |
|---|---|---|
data_type * | string | The data type for the field. Single select fields require at least one option to be provided via single_select_options. |
name * | string | The name of the field to create. |
project_number * | integer | The numeric identifier of the project. |
username * | string | The GitHub username of the project owner. |
iteration_configuration | object | Configuration settings for iteration fields, such as duration and start date. Required when data_type is 'iteration'. |
single_select_options | array | The list of options available for single select fields. Required when data_type is 'single_select'. Each option should be provided as a distinct item in the array. |
get_project_field_user Get Project Field for User
Retrieve a specific field from a user-owned GitHub Projects (V2) board. Fields define custom properties and metadata for project items.
| Parameter | Type | Description |
|---|---|---|
field_id * | integer | The unique identifier of the field to retrieve from the project. |
project_number * | integer | The project's unique number identifier within the user's account. |
username * | string | The GitHub username (handle) of the account that owns the project. |
list_project_items_user List Project Items for User
List all items in a user-owned project. Retrieve project items with optional filtering by search query and field selection.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The numeric identifier for the project. |
username * | string | The GitHub username of the project owner. |
fields | Restrict results to specific fields by their IDs. When omitted, only the title field is returned. Accepts multiple field IDs as comma-separated values or repeated query parameters. | |
q | string | Filter items using a search query. Supports the same filtering syntax as GitHub Projects views. |
add_item_to_project_user Add Item to User Project
Add an issue or pull request to a user-owned project. The item will be added to the specified project by its number.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The project's unique number identifier. |
type * | string | The type of item being added to the project. |
username * | string | The GitHub username of the project owner. |
get_project_item_user Get Project Item for User
Retrieve a specific item from a user-owned project. Returns the item's details including selected fields or the title field by default.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The unique identifier of the project item to retrieve. |
project_number * | integer | The project's unique number identifier. |
username * | string | The GitHub username of the project owner. |
fields | Comma-separated or repeated field IDs to include in the response. If not specified, only the title field is returned. |
update_project_item_user Update Project Item for User
Update a specific item in a user-owned project by applying field changes. Allows modification of item properties within a GitHub Projects V2 board.
| Parameter | Type | Description |
|---|---|---|
fields * | array | An array of field updates to apply to the item. Each entry specifies a field and its new value. |
item_id * | integer | The unique identifier of the project item to update. |
project_number * | integer | The project's unique number identifier. |
username * | string | The GitHub username or handle of the account that owns the project. |
delete_project_item_user Delete Project Item for User
Delete a specific item from a user's project. This operation removes the item permanently from the project.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | The unique numeric identifier of the project item to delete. This identifies which specific item within the project should be removed. |
project_number * | integer | The project number that identifies which project to modify. This is a unique numeric identifier for the project. |
username * | string | The GitHub username of the account that owns the project. This is the handle used to identify the user account. |
list_project_view_items_user List Project View Items for User
List items in a user's project view with the view's saved filters applied. Returns project items matching the specified view's configuration.
| Parameter | Type | Description |
|---|---|---|
project_number * | integer | The numeric identifier for the project. |
username * | string | The GitHub username or account handle. |
view_number * | integer | The numeric identifier for the project view. |
fields | Restrict results to specific fields by their IDs. When omitted, only the title field is returned. Accepts multiple field IDs as comma-separated values or repeated query parameters. |
list_received_events List Received Events for User
Retrieve events received by a user through watching repositories and following other users. Private events are visible only to the authenticated user; otherwise only public events are returned. Note: This API is not real-time; event latency can range from 30 seconds to 6 hours depending on time of day.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose received events should be listed. |
list_user_public_received_events List User Public Received Events
Retrieve a list of public events received by a GitHub user. Note: This API is not optimized for real-time use cases and may have event latency ranging from 30 seconds to 6 hours depending on time of day.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) for the user account whose received public events should be listed. |
list_user_repositories List User Repositories
Lists public repositories for a specified GitHub user. Results can be filtered by repository type and sorted in ascending or descending order.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose repositories should be listed. |
direction | string | Sort direction for the results. Use 'asc' for ascending order or 'desc' for descending order. |
type | string | Filter repositories by type. Use 'owner' to show only repositories owned by the user, 'member' for repositories where the user is a collaborator, or 'all' for both. |
get_billing_usage_report Get Billing Usage Report
Retrieve a billing usage report for a GitHub user, optionally filtered by year, month, or day. This endpoint is only available to users with access to the enhanced billing platform.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username for which to retrieve the billing usage report. |
day | integer | Filter results to a specific day within the month. Specify as an integer between 1 and 31. Only applies when month is specified or defaults to the current year and month. |
month | integer | Filter results to a specific month within the year. Specify as an integer between 1 and 12. Only applies when year is specified or defaults to the current year. |
year | integer | Filter results to a specific year. Specify as a four-digit integer representing the year (e.g., 2025). Defaults to the current year if not provided. |
get_billing_usage_summary_user Get Billing Usage Summary
Retrieve a summary report of billing usage for a GitHub user account. Only data from the past 24 months is accessible via this endpoint.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username for the account to retrieve billing usage for. |
day | integer | Filter results to a specific day within the month. Specify as an integer between 1 and 31. Defaults to the current day if not provided. |
month | integer | Filter results to a specific month within the year. Specify as an integer between 1 and 12. Defaults to the current month if not provided. |
product | string | Filter results by product name. The product name is case-insensitive. |
sku | string | Filter results by SKU (stock keeping unit) identifier. |
year | integer | Filter results to a specific year. Specify as a four-digit year value. Defaults to the current year if not provided. |
list_social_accounts_public List Social Accounts for User
Retrieves all social media accounts associated with a GitHub user. This endpoint is publicly accessible and requires only the username.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username (handle) for the user whose social accounts should be retrieved. |
list_ssh_signing_keys_for_user List SSH Signing Keys for User
Retrieve all SSH signing keys associated with a GitHub user account. This operation is publicly accessible and does not require authentication.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose SSH signing keys should be retrieved. |
list_starred_repositories_by_user List Starred Repositories by User
Retrieve repositories that a user has starred. Supports sorting by creation timestamp when using the star+json media type.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose starred repositories should be listed. |
direction | string | The order in which to sort the starred repositories. |
list_watched_repositories_by_user List Watched Repositories by User
Retrieves a list of repositories that a user is watching. Watched repositories allow users to receive notifications about activity without being a collaborator.
| Parameter | Type | Description |
|---|---|---|
username * | string | The GitHub username whose watched repositories should be listed. |