github

v1.0.6
com.mcparmory/github Checked 1 day ago Published 6 months ago

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

ParameterTypeDescription
affectsFilter 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_idstringFilter results to a specific Common Vulnerabilities and Exposures (CVE) identifier.
cwesFilter results to advisories with specific Common Weakness Enumeration (CWE) identifiers. Accepts comma-separated values or array format.
directionstringSort results in ascending or descending order.
ecosystemstringFilter results to advisories affecting specific package ecosystems.
epss_percentagestringFilter results to advisories with an Exploit Prediction Scoring System (EPSS) percentage score matching the specified value, representing the likelihood of exploitation.
epss_percentilestringFilter results to advisories with an EPSS percentile score matching the specified value, representing the relative rank of exploitation likelihood compared to other CVEs.
ghsa_idstringFilter results to a specific GitHub Security Advisory (GHSA) identifier.
is_withdrawnbooleanFilter results to only withdrawn advisories when set to true.
modifiedstringFilter results to advisories updated or published within a specified date or date range using GitHub search syntax.
typestringFilter 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.

ParameterTypeDescription
delivery_id *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe 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.

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

ParameterTypeDescription
installation_id *integerThe 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.

ParameterTypeDescription
installation_id *integerThe 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.

ParameterTypeDescription
installation_id *integerThe 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.

ParameterTypeDescription
installation_id *integerThe 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.

ParameterTypeDescription
access_token *stringThe OAuth access token for the user whose authorization is being revoked. The grant associated with this token's owner will be deleted.
client_id *stringThe 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.

ParameterTypeDescription
access_token *stringThe OAuth access token to be revoked. This token must be valid and associated with the specified application.
client_id *stringThe 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.

ParameterTypeDescription
assignment_id *integerThe 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.

ParameterTypeDescription
assignment_id *integerThe 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.

ParameterTypeDescription
assignment_id *integerThe 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.

ParameterTypeDescription
classroom_id *integerThe 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.

ParameterTypeDescription
classroom_id *integerThe 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.

ParameterTypeDescription
key *stringThe 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.

ParameterTypeDescription
enterprise *stringThe 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.

ParameterTypeDescription
enterprise *stringThe 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.

ParameterTypeDescription
custom_property_name *stringThe name of the repository custom property to include in the OIDC token for repository actions.
enterprise *stringThe 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.

ParameterTypeDescription
enterprise *stringThe 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.

ParameterTypeDescription
enterprise *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique numeric identifier of the code security configuration to retrieve.
enterprise *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to delete.
enterprise *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to attach.
enterprise *stringThe slug version of the enterprise name.
scope *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration. This ID specifies which configuration's associated repositories to retrieve.
enterprise *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise slug identifier.
directionstringSort results in ascending or descending order.
ecosystemstringFilter alerts by package ecosystem. Specify one or more comma-separated ecosystems to return only matching alerts.
epss_percentagestringFilter 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.
hasFilter 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.
packagestringFilter alerts by package name. Specify one or more comma-separated package names to return only matching alerts.
scopestringFilter alerts by dependency scope within the project.
statestringFilter 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.

ParameterTypeDescription
enterprise *stringThe 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.

ParameterTypeDescription
enterprise *stringThe slug version of the enterprise name that will contain the new team.
name *stringThe name of the team to be created.
descriptionstringAn optional description providing details about the team's purpose or scope.
group_idstringThe ID of the IdP group to assign team membership with. This enables automatic team membership provisioning through your identity provider.
organization_selection_typestringSpecifies 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (URL-friendly lowercase name).
enterprise-team *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier as a slug (URL-friendly name).
enterprise-team *stringThe enterprise team identifier as a slug or numeric ID.
usernames *arrayList 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier as a URL-friendly slug (lowercase, hyphens allowed).
enterprise-team *stringThe enterprise team identifier as a URL-friendly slug or numeric team ID.
usernames *arrayArray 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.

ParameterTypeDescription
enterprise *stringThe slug version of the enterprise name. This is the URL-friendly identifier for the enterprise.
enterprise-team *stringThe slug version of the enterprise team name, or alternatively the enterprise team ID. This uniquely identifies the team within the enterprise.
username *stringThe 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.

ParameterTypeDescription
enterprise *stringThe slug identifier for the enterprise organization.
enterprise-team *stringThe slug identifier or numeric ID for the enterprise team.
username *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (lowercase with hyphens).
enterprise-team *stringThe enterprise team identifier in slug format or numeric team ID.
username *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (URL-friendly name).
enterprise-team *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (URL-friendly name).
enterprise-team *stringThe enterprise team identifier in slug format or the numeric team ID.
organization_slugs *arrayList 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (URL-friendly name).
enterprise-team *stringThe enterprise team identifier in slug format or the numeric team ID.
organization_slugs *arrayList 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (lowercase, hyphen-separated). This identifies the parent enterprise context.
enterprise-team *stringThe enterprise team identifier in slug format or UUID. Can be provided as either the team's slug name or its unique identifier.
org *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (lowercase, hyphen-separated name).
enterprise-team *stringThe enterprise team identifier in slug format or numeric ID. The slug is the lowercase, hyphen-separated team name.
org *stringThe 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.

ParameterTypeDescription
enterprise *stringThe enterprise identifier in slug format (URL-friendly name).
enterprise-team *stringThe enterprise team identifier in slug format or the numeric team ID.
org *stringThe 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:'.

ParameterTypeDescription
enterprise *stringThe slug version of the enterprise name. This is the normalized identifier used in the enterprise URL.
team_slug *stringThe 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.

ParameterTypeDescription
enterprise *stringThe slug version of the enterprise name.
team_slug *stringThe slug of the team name.
descriptionstringA new description for the team.
group_idstringThe 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_typestringSpecifies 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.

ParameterTypeDescription
enterprise *stringThe slug identifier for the enterprise containing the team to be deleted.
team_slug *stringThe 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.

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

ParameterTypeDescription
files *objectAn object mapping file names to their content. Each file must have a unique name and contain the file content as a string.
descriptionstringA brief description of the gist's purpose or content.
publicstringWhether 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.

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

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

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe unique identifier of the gist to update.
descriptionstringA new description for the gist.
filesobjectA 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
body *stringThe comment text content. Supports markdown formatting.
gist_id *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to retrieve.
gist_id *stringThe 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.

ParameterTypeDescription
body *stringThe updated comment text. Supports markdown formatting and can be up to 65,535 characters.
comment_id *stringThe unique identifier of the comment to update.
gist_id *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to delete.
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe 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.

ParameterTypeDescription
gist_id *stringThe unique identifier of the gist to retrieve a revision from.
sha *stringThe 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.

ParameterTypeDescription
name *stringThe 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.

ParameterTypeDescription
collabbooleanWhen enabled, includes issues from repositories where you are a collaborator.
directionstringDetermines the sort order of results. Use 'asc' for ascending order or 'desc' for descending order.
filterstringSpecifies 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…
labelsstringFilters issues by one or more labels. Provide label names as a comma-separated list to match issues with any of the specified labels.
orgsbooleanWhen enabled, includes issues from organization repositories.
ownedbooleanWhen enabled, includes issues from repositories you own.
pullsbooleanWhen enabled, includes pull requests in the results. Note that GitHub treats pull requests as issues in this endpoint.
sincestringReturns only issues that were last updated after the specified timestamp. Provide the timestamp in ISO 8601 format.
statestringFilters 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.

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

ParameterTypeDescription
license *stringThe 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.

ParameterTypeDescription
account_id *integerThe 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.

ParameterTypeDescription
account_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
allbooleanInclude notifications marked as read in the results. By default, only unread notifications are returned.
participatingbooleanShow only notifications where you are directly participating or mentioned, excluding notifications you're merely watching.
sincestringReturn 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.

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

ParameterTypeDescription
thread_id *integerThe 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.

ParameterTypeDescription
thread_id *integerThe 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.

ParameterTypeDescription
thread_id *integerThe 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).

ParameterTypeDescription
thread_id *integerThe 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.

ParameterTypeDescription
thread_id *integerThe unique identifier of the notification thread returned in the `id` field from notification list operations.
ignoredbooleanSet 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.

ParameterTypeDescription
thread_id *integerThe 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.

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

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
repository_ids_to_addarrayList of repository IDs to grant Dependabot access to. Each ID should be a valid repository identifier for the organization.
repository_ids_to_removearrayList 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
scopestringFilter 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.

ParameterTypeDescription
budget_id *stringThe unique identifier of the budget to retrieve.
org *stringThe 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.

ParameterTypeDescription
budget_id *stringThe unique identifier for the budget to update.
org *stringThe organization name (case-insensitive).
budget_amountintegerThe budget limit in whole dollars. For license-based products, this represents the number of licenses.
budget_entity_namestringThe name of the specific entity (organization, repository, or cost center) to which the budget applies.
budget_product_skustringA specific product or SKU identifier to include in the budget scope.
budget_scopestringThe hierarchical level at which the budget applies.
budget_typestringThe pricing model type covered by this budget.
prevent_further_usagebooleanWhether 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.

ParameterTypeDescription
budget_id *stringThe unique identifier of the budget to delete.
org *stringThe organization name. Organization names are case-insensitive.

get_premium_request_usage_report Get Premium Request Usage Report

Retrieve a premium request usage report for an organization, with optional filtering by time period, user, model, or product. Requires organization administrator privileges and only returns data from the past 24 months.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
dayintegerFilter results to a specific day within the month. Provide a value between 1 and 31. Defaults to the current day if year and month are not specified.
modelstringFilter usage results for a specific model. Case-insensitive.
monthintegerFilter results to a specific month within the year. Provide a value between 1 and 12. Defaults to the current month if year is not specified.
productstringFilter usage results for a specific product. Case-insensitive.
userstringFilter usage results for a specific user. Case-insensitive.
yearintegerFilter results to a specific year. Provide a four-digit year value. Defaults to the current year if not specified.

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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
dayintegerFilter results to a specific day within the specified or default year and month. Valid range is 1-31.
monthintegerFilter results to a specific month within the specified or default year. Valid range is 1-12, where 1 represents January and 12 represents December.
yearintegerFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
dayintegerFilter results to a specific day. Valid range is 1-31. Requires year and month to be specified or uses the default year and month.
monthintegerFilter results to a specific month. Valid range is 1-12. Requires year to be specified or uses the default year.
productstringFilter results by product name. Case-insensitive.
skustringFilter results by SKU identifier.
yearintegerFilter 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
billing_emailstringBilling email address for the organization. This address is not publicly displayed.
blogstringThe organization's blog or website URL.
companystringThe company name associated with the organization.
default_repository_permissionstringDefault permission level that members have for organization repositories.
deploy_keys_enabled_for_repositoriesbooleanWhether deploy keys can be added and used for repositories in the organization.
descriptionstringA description of the company. Maximum 160 characters.
has_organization_projectsbooleanWhether the organization can use organization-level projects.
has_repository_projectsbooleanWhether repositories in the organization can use repository-level projects.
members_can_create_internal_repositoriesbooleanWhether 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_pagesbooleanWhether organization members can create private GitHub Pages sites. Existing published sites are not affected.
members_can_create_private_repositoriesbooleanWhether organization members can create private repositories (visible to members with permission).
members_can_create_public_pagesbooleanWhether organization members can create public GitHub Pages sites. Existing published sites are not affected.
members_can_create_public_repositoriesbooleanWhether organization members can create public repositories (visible to anyone).
members_can_fork_private_repositoriesbooleanWhether organization members can fork private organization repositories.
secret_scanning_push_protection_custom_linkstringThe URL displayed to contributors who are blocked from pushing a secret, when secret scanning push protection is enabled.
twitter_usernamestringThe Twitter username of the company.
web_commit_signoff_requiredbooleanWhether 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
name *stringName of the runner. Must be 1-64 characters containing only letters (a-z, A-Z), numbers (0-9), periods, hyphens, and underscores.
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe ID of an existing runner group to add this runner to.
size *stringThe machine size for the runner. Available sizes can be retrieved via the list hosted runner machine sizes operation.
enable_static_ipbooleanWhether 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_genbooleanWhether this runner should be used to generate custom images.
maximum_runnersintegerThe 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).

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
image_definition_id *integerThe unique identifier of the custom image definition to retrieve.
org *stringThe 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).

ParameterTypeDescription
image_definition_id *integerThe unique identifier of the custom image definition to delete.
org *stringThe 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).

ParameterTypeDescription
image_definition_id *integerThe unique identifier of the custom image definition whose versions you want to list.
org *stringThe 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.

ParameterTypeDescription
image_definition_id *integerThe unique identifier of the custom image definition.
org *stringThe organization name. Case-insensitive.
version *stringThe 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).

ParameterTypeDescription
image_definition_id *integerThe unique identifier of the custom image definition.
org *stringThe organization name. Case-insensitive.
version *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
hosted_runner_id *integerThe unique identifier of the GitHub-hosted runner to retrieve.
org *stringThe 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.

ParameterTypeDescription
hosted_runner_id *integerThe unique identifier of the GitHub-hosted runner to update.
org *stringThe organization name. Case-insensitive.
enable_static_ipbooleanWhether to assign a static public IP to this runner. Subject to account-level limits; check limits via the hosted-runners limits endpoint.
image_idstringThe unique identifier of the runner image to deploy. Available images include GitHub-owned, partner, and custom images.
image_versionstringThe version of the runner image to deploy. Only applicable when using custom images.
maximum_runnersintegerThe maximum number of runners to scale up to. Prevents auto-scaling beyond this limit to control costs.
runner_group_idintegerThe ID of an existing runner group to assign this runner to.
sizestringThe 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.

ParameterTypeDescription
hosted_runner_id *integerThe unique identifier of the GitHub-hosted runner to delete.
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
custom_property_name *stringThe name of the custom property to include in the OIDC token for repository actions.
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization.
repository_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
visible_to_repositorystringFilter 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.

ParameterTypeDescription
name *stringThe name of the runner group to create.
org *stringThe organization name. Case-insensitive.
allows_public_repositoriesbooleanWhether public repositories can use runners in this group.
network_configuration_idstringThe identifier of a hosted compute network configuration to associate with this runner group.
runnersarrayList of runner IDs to add to this runner group upon creation.
selected_repository_idsarrayList of repository IDs that can access this runner group. Only applicable when visibility is set to 'selected'.
visibilitystringControls 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe 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.

ParameterTypeDescription
name *stringThe new name for the runner group.
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe unique identifier of the self-hosted runner group to update.
allows_public_repositoriesbooleanWhether the runner group can be used by public repositories.
network_configuration_idstringThe identifier of a hosted compute network configuration to associate with this runner group.
visibilitystringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization that owns the runner group.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
runner_group_id *integerThe unique identifier of the self-hosted runner group to update.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to grant access to the runner group.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to remove from the runner group's access list.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. This value is case-insensitive.
runner_group_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe unique identifier of the self-hosted runner group to update.
runners *arrayList 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization.
runner_group_id *integerThe unique identifier of the self-hosted runner group to which the runner will be added.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_group_id *integerThe unique identifier of the self-hosted runner group.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization that owns the runner.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
labels *arrayAn array of custom label names to add to the runner. Labels must be unique and non-empty.
org *stringThe organization name. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
labels *arrayAn 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 *stringThe organization name. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization that owns the runner.
runner_id *integerThe 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.

ParameterTypeDescription
name *stringThe name of the custom label to remove from the runner.
org *stringThe organization name. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
key_id *stringThe ID of the public key used to encrypt the secret value.
org *stringThe organization name (case-insensitive).
secret_name *stringThe name of the secret to create or update.
visibility *stringControls 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_keystringThe base64-encoded public key retrieved from the Get a repository public key endpoint
secret_valuestringThe plaintext secret value to be encrypted
selected_repository_idsarrayArray 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe name of the secret to update repository access for.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to grant access to the secret.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to remove from the secret's access list.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
name *stringThe name of the variable. This identifier is used to reference the variable in workflows.
org *stringThe organization name (case-insensitive).
value *stringThe value assigned to the variable. This can be any string content needed by your workflows.
visibility *stringControls 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_idsarrayAn 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.

ParameterTypeDescription
name *stringThe name of the variable to retrieve.
org *stringThe 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.

ParameterTypeDescription
name *stringThe name of the variable to update.
org *stringThe organization name (case-insensitive).
selected_repository_idsarrayAn array of repository IDs that can access the variable. Only applicable when visibility is set to 'selected'.
valuestringThe new value for the variable.
visibilitystringThe 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).

ParameterTypeDescription
name *stringThe name of the organization variable to delete.
org *stringThe 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.

ParameterTypeDescription
name *stringThe name of the organization variable. Variable names are case-sensitive.
org *stringThe 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`.

ParameterTypeDescription
name *stringThe name of the organization variable to update.
org *stringThe organization name. Case-insensitive.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
name *stringThe name of the organization variable to which the repository will be added.
org *stringThe organization name. Case-insensitive.
repository_id *integerThe 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.

ParameterTypeDescription
name *stringThe name of the organization variable from which to remove the repository.
org *stringThe organization name. Organization names are case-insensitive.
repository_id *integerThe 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.

ParameterTypeDescription
deployment_name *stringA unique identifier for this deployment within the cluster. Use the format {namespaceName}-{deploymentName}-{containerName} to distinguish between different namespaces and containers.
digest *stringThe SHA256 digest of the artifact in hexadecimal format.
logical_environment *stringThe deployment stage or environment tier (e.g., development, staging, production).
name *stringThe name of the artifact being deployed.
org *stringThe organization name that owns the artifact.
status *stringThe current status of the artifact deployment.
clusterstringThe Kubernetes cluster or deployment cluster identifier.
github_repositorystringThe 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_environmentstringThe geographic region or physical location where the artifact is deployed.
runtime_risksarrayA list of identified runtime risks or vulnerabilities associated with this deployment.
tagsobjectKey-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.

ParameterTypeDescription
cluster *stringThe cluster identifier.
deployments *arrayAn 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 *stringThe deployment stage or environment tier (e.g., development, staging, production).
org *stringThe organization name (case-insensitive).
physical_environmentstringThe 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.

ParameterTypeDescription
digest *stringThe digest of the artifact in the format algorithm:hex-encoded-digest (SHA256 only).
name *stringThe name of the artifact.
org *stringThe organization name (case-insensitive).
registry_url *stringThe base URL of the artifact registry (must use HTTPS).
github_repositorystringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive). This identifies which organization's artifact metadata to query.
subject_digest *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
subject_digest *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
subject_digests *arrayList of subject digests to fetch attestations for. Each digest identifies an artifact for which attestations will be retrieved.
predicate_typestringOptional 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.

ParameterTypeDescription
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 *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
subject_digest *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
predicate_typestringFilter 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.

ParameterTypeDescription
attestation_id *integerThe unique identifier of the attestation to delete.
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
subject_digest *stringThe attestation subject's SHA256 digest in the format `sha256:HEX_DIGEST`.
predicate_typestringFilter 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
directionstringThe sort direction for the returned campaigns.
statestringFilter 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.

ParameterTypeDescription
description *stringA description of the campaign's purpose and scope.
ends_at *stringThe end date and time of the campaign in ISO 8601 format. The date must be in the future.
name *stringThe name of the campaign.
org *stringThe organization name (case-insensitive).
code_scanning_alertsarrayAn array of code scanning alert identifiers to include in this campaign. At least one alert is required if this field is provided.
contact_linkstringA URI for users to contact regarding the campaign or request assistance.
generate_issuesbooleanWhether 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.

ParameterTypeDescription
campaign_number *integerThe numeric identifier for the campaign to retrieve.
org *stringThe organization name. Case-insensitive.

update_campaign Update Campaign

Update an existing campaign within an organization. Requires owner or security manager permissions.

ParameterTypeDescription
campaign_number *integerThe numeric identifier of the campaign to update.
org *stringThe organization name (case-insensitive).
contact_linkstringA URI pointing to contact information or resources related to the campaign.
descriptionstringA brief description of the campaign.
ends_atstringThe end date and time of the campaign in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
statestringThe 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.

ParameterTypeDescription
campaign_number *integerThe numeric identifier of the campaign to delete.
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
assigneesstringFilter 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.
directionstringThe direction to sort results by.
statestringFilter 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
target_typestringFilter 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
selected_repository_idsarrayRepository 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to retrieve.
org *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to update.
org *stringThe organization name. Case-insensitive.
code_scanning_default_setupstringThe enablement status of code scanning default setup.
code_scanning_delegated_alert_dismissalstringThe enablement status of code scanning delegated alert dismissal.
code_securitystringThe enablement status of GitHub Code Security features.
dependabot_alertsstringThe enablement status of Dependabot alerts.
dependabot_delegated_alert_dismissalstringThe enablement status of Dependabot delegated alert dismissal. Requires Dependabot alerts to be enabled.
dependabot_security_updatesstringThe enablement status of Dependabot security updates.
dependency_graphstringThe enablement status of Dependency Graph.
dependency_graph_autosubmit_actionstringThe enablement status of automatic dependency submission.
descriptionstringA description of the code security configuration.
enforcementstringThe enforcement status for the security configuration. Enforced configurations are applied to all repositories in the organization.
private_vulnerability_reportingstringThe enablement status of private vulnerability reporting.
reviewersarrayThe bypass reviewers for secret scanning delegated bypass. Array of reviewer identifiers.
secret_scanningstringThe enablement status of secret scanning.
secret_scanning_delegated_alert_dismissalstringThe enablement status of secret scanning delegated alert dismissal.
secret_scanning_delegated_bypassstringThe enablement status of secret scanning delegated bypass.
secret_scanning_extended_metadatastringThe enablement status of secret scanning extended metadata.
secret_scanning_generic_secretsstringThe enablement status of Copilot secret scanning for generic secrets.
secret_scanning_non_provider_patternsstringThe enablement status of secret scanning non-provider patterns.
secret_scanning_push_protectionstringThe enablement status of secret scanning push protection.
secret_scanning_validity_checksstringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to delete.
org *stringThe 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to attach.
org *stringThe organization name. Case-insensitive.
scope *stringThe scope of repositories to attach the configuration to. Use 'selected' to attach only to specific repositories identified by their IDs.
selected_repository_idsarrayAn 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.

ParameterTypeDescription
configuration_id *integerThe unique identifier of the code security configuration to retrieve associated repositories for.
org *stringThe 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).

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
secret_name *stringThe name of the secret to create or update.
visibility *stringThe access level for the secret. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories.
encrypted_valuestringThe encrypted secret value, encrypted using LibSodium with the public key from the Get organization public key endpoint. Must be base64-encoded.
key_idstringThe ID of the public key used to encrypt the secret value.
selected_repository_idsarrayAn 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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'.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe name of the organization secret to configure repository access for.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to add to the secret's access list.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to remove from the secret's access list.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
selected_teams *arrayList 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
selected_teams *arrayThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
selected_usernames *arrayThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
selected_usernames *arrayThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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'.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization.
repository_id *integerThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
sincestringStart date for the metrics query in ISO 8601 format. Maximum lookback is 100 days ago.
untilstringEnd 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
directionstringSort results in ascending or descending order.
ecosystemstringFilter alerts by package ecosystem. Specify as comma-separated values to return alerts for packages in any of the provided ecosystems.
epss_percentagestringFilter 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.
hasFilter alerts based on specific attributes they possess. Multiple filters can be combined to return only alerts matching all specified criteria.
packagestringFilter alerts by package name. Specify as comma-separated values to return alerts for any of the provided packages.
runtime_riskstringFilter 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.
scopestringFilter alerts by the scope of the vulnerable dependency (development or runtime dependencies).
statestringFilter 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).

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe name of the secret to create or update.
visibility *stringThe visibility scope for the secret. Use 'all' for all repositories, 'private' for private repositories only, or 'selected' to restrict access to specific repositories.
encrypted_valuestringThe encrypted secret value, encrypted using LibSodium with the public key from the Get organization public key endpoint. Must be base64-encoded.
key_idstringThe ID of the public key used to encrypt the secret value.
selected_repository_idsarrayAn 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe name of the Dependabot secret to configure repository access for.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to add to the organization secret.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe unique identifier of the repository to remove from the secret's access list.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
name *stringThe webhook type. Must be set to 'web' for standard webhook delivery.
org *stringThe organization name (case-insensitive).
url *stringThe URL endpoint where webhook payloads will be delivered.
activebooleanWhether the webhook is active and will send notifications when triggered. Defaults to true.
content_typestringThe serialization format for webhook payloads. Defaults to 'form' if not specified.
secretstringAn 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of webhook delivery payloads.
org *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook, found in the X-GitHub-Hook-ID header of webhook deliveries.
org *stringThe organization name (case-insensitive).
url *stringThe URL where webhook payloads will be delivered.
activebooleanWhether to send notifications when the webhook is triggered. Set to `true` to enable.
content_typestringThe media type for serializing payloads. Supported values are `json` and `form`. Defaults to `form`.
secretstringAn 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook to delete. This value can be found in the `X-GitHub-Hook-ID` header of webhook delivery events.
org *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. This value can be found in the X-GitHub-Hook-ID header of webhook delivery payloads.
org *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook, found in the X-GitHub-Hook-ID header of webhook deliveries.
org *stringThe organization name (case-insensitive).
content_typestringThe media type for serializing payloads. Supported values are json and form, with form as the default.
secretstringA secret key used to generate HMAC hex digest values for delivery signature headers, enabling payload verification.
urlstringThe 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.

ParameterTypeDescription
hook_id *integerThe 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 *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe unique identifier of the specific webhook delivery to retrieve.
hook_id *integerThe 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 *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe unique identifier of the specific webhook delivery to redeliver.
hook_id *integerThe 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 *stringThe 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.

ParameterTypeDescription
min_timestamp *stringThe start of the time range for statistics. Specify as an ISO 8601 timestamp.
org *stringThe organization name. Case-insensitive.
directionstringThe sort order for results.
max_timestampstringThe 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_substringstringFilter 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.

ParameterTypeDescription
min_timestamp *stringThe start of the time range for statistics retrieval. Specify as an ISO 8601 formatted timestamp.
org *stringThe organization identifier. Organization names are case-insensitive.
max_timestampstringThe 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.

ParameterTypeDescription
actor_id *integerThe unique identifier of the actor.
actor_type *stringThe type of actor making the API requests.
min_timestamp *stringThe start of the time range for statistics. Use ISO 8601 format.
org *stringThe organization name. Case-insensitive.
max_timestampstringThe 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.

ParameterTypeDescription
min_timestamp *stringThe start of the time range for statistics retrieval in ISO 8601 format.
org *stringThe organization name (case-insensitive).
timestamp_increment *stringThe time interval used to aggregate statistics (e.g., 5m, 10m, 1h). Determines the granularity of the returned data.
max_timestampstringThe 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.

ParameterTypeDescription
min_timestamp *stringThe start of the time range for querying statistics. Must be in ISO 8601 format.
org *stringThe organization name. Case-insensitive.
timestamp_increment *stringThe time interval used to aggregate statistics in the results (e.g., 5m, 10m, 1h). Determines the granularity of the breakdown.
user_id *stringThe unique identifier of the user for which to retrieve API statistics.
max_timestampstringThe 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.

ParameterTypeDescription
actor_id *integerThe unique identifier of the actor.
actor_type *stringThe type of actor making the API requests.
min_timestamp *stringThe start of the time range for querying statistics. Must be in ISO 8601 format.
org *stringThe organization name. Case-insensitive.
timestamp_increment *stringThe time interval used to aggregate statistics in the results (e.g., 5m, 10m, 1h). Determines the granularity of the breakdown.
max_timestampstringThe 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.

ParameterTypeDescription
min_timestamp *stringThe start of the time range for which to retrieve statistics. Must be in ISO 8601 format.
org *stringThe organization name. Case-insensitive.
user_id *stringThe unique identifier of the user whose API statistics should be retrieved.
actor_name_substringstringFilter results to include only records where the actor name contains this substring. The search is case-insensitive.
directionstringThe sort order for results.
max_timestampstringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
invitation_sourcestringFilter invitations by their source (member-initiated or SCIM-provisioned).
rolestringFilter 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
rolestringThe 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_idsarrayAn 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.

ParameterTypeDescription
invitation_id *integerThe unique identifier of the invitation to cancel.
org *stringThe 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.

ParameterTypeDescription
invitation_id *integerThe unique identifier of the invitation to retrieve associated teams for.
org *stringThe 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).

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
data_type *stringThe data type that determines what kind of values this field can store.
name *stringThe name of the issue field.
org *stringThe organization name (case-insensitive).
descriptionstringA description of the issue field's purpose and usage.
optionsarrayAn array of predefined options for single select fields. Required when `data_type` is `single_select`. Each option should be a distinct value.
visibilitystringControls 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.

ParameterTypeDescription
issue_field_id *integerThe unique identifier of the issue field to delete.
org *stringThe 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).

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
is_enabled *booleanWhether the issue type is enabled and available for use at the organization level.
name *stringThe name of the issue type to create.
org *stringThe organization name. Case-insensitive.
colorstringAn optional color label for visual identification of the issue type.
descriptionstringAn 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.

ParameterTypeDescription
issue_type_id *integerThe unique identifier of the issue type to delete.
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
directionstringSort results in ascending or descending order.
filterstringFilter issues by type of involvement: assigned to you, created by you, mentioning you, subscribed to, or all visible issues.
labelsstringFilter by one or more labels using comma-separated values.
sincestringOnly return issues last updated after this timestamp in ISO 8601 format.
statestringFilter issues by their current state: open, closed, or all states.
typestringFilter 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
filterstringFilter 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…
rolestringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
username *stringThe 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).

ParameterTypeDescription
codespace_name *stringThe name of the codespace to delete.
org *stringThe organization name. Case-insensitive.
username *stringThe 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).

ParameterTypeDescription
codespace_name *stringThe name of the codespace to stop.
org *stringThe organization name. Case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the GitHub organization.
username *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
username *stringThe GitHub user account handle to add or update in the organization.
rolestringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization.
username *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration to check status for.
org *stringThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration. Used to specify which migration archive to download.
org *stringThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration whose archive should be deleted.
org *stringThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration.
org *stringThe organization name. Case-insensitive.
repo_name *stringThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration. Used to specify which organization migration to retrieve repositories for.
org *stringThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
role_id *integerThe unique identifier of the organization role to assign to the team.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
role_id *integerThe unique identifier of the organization role to remove from the team.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe GitHub organization name. Case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
role_id *integerThe unique identifier of the organization role to assign to the user.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
role_id *integerThe unique identifier of the organization role to remove from the user.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
role_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
role_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
role_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
filterstringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
username *stringThe GitHub user account handle to convert.
asyncbooleanWhen 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
package_type *stringThe 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.
visibilitystringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
package_name *stringThe name of the package to retrieve.
package_type *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
package_name *stringThe name of the package to delete.
package_type *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
package_name *stringThe name of the package to restore.
package_type *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
package_name *stringThe name of the package to retrieve versions for.
package_type *stringThe 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.
statestringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
package_name *stringThe name of the package to retrieve. Package names are case-sensitive identifiers within the registry.
package_type *stringThe 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 *integerThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
package_name *stringThe name of the package to delete a version from.
package_type *stringThe 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 *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
package_name *stringThe name of the package to restore.
package_type *stringThe type of package registry. Gradle packages use 'maven', container images use 'container', and 'docker' finds images in the legacy Docker registry.
package_version_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
directionstringThe direction to sort results by.
permissionstringFilter results by the specific permission required by the token request.
token_idarrayFilter 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.

ParameterTypeDescription
action *stringThe action to apply to all specified requests: approve to grant access or deny to reject access.
org *stringThe organization name. Case-insensitive.
pat_request_idsarrayUnique identifiers of the personal access token requests to review. Accepts between 1 and 100 request IDs.
reasonstringOptional 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.

ParameterTypeDescription
action *stringThe action to take on the request: approve to grant access or deny to reject it.
org *stringThe organization name. Case-insensitive.
pat_request_id *integerThe unique identifier of the personal access token request to review.
reasonstringOptional 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
pat_request_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
directionstringThe direction to sort the results by.
permissionstringFilter results by the specific permission granted to the token.
token_idarrayFilter 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.

ParameterTypeDescription
action *stringThe action to apply to the fine-grained personal access tokens.
org *stringThe organization name. Case-insensitive.
pat_ids *arrayThe 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.

ParameterTypeDescription
action *stringThe action to apply to the fine-grained personal access token.
org *stringThe organization name. Case-insensitive.
pat_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
pat_id *integerThe 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).

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
encrypted_value *stringThe encrypted secret value generated using LibSodium with the organization's public key. Must be base64-encoded.
key_id *stringThe ID of the public key used to encrypt the secret value.
org *stringThe organization name (case-insensitive).
registry_type *stringThe type of package registry being configured.
url *stringThe URL endpoint of the private registry.
visibility *stringThe 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_basebooleanWhether 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_idsarrayArray 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).

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
secret_name *stringThe name of the private registry secret to update.
key_idstringThe ID of the encryption key used to encrypt the secret value.
public_keystringThe base64-encoded public key retrieved from the Get a repository public key endpoint
registry_typestringThe type of package registry being configured.
replaces_basebooleanWhen 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_valuestringThe plaintext secret value to be encrypted
selected_repository_idsarrayArray of repository IDs that can access this private registry. Only provide this when visibility is set to 'selected'; omit for 'all' or 'private' visibility.
urlstringThe URL endpoint of the private registry.
visibilitystringControls 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).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
qstringFilter 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.

ParameterTypeDescription
org *stringThe name of the organization that owns the project. Organization names are case-insensitive.
project_number *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
project_number *integerThe project number that uniquely identifies the project within the organization.
title *stringThe title of the draft issue item. This is the primary heading for the draft.
bodystringThe 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.

ParameterTypeDescription
org *stringThe name of the organization that owns the project. Organization names are case-insensitive.
project_number *integerThe 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.

ParameterTypeDescription
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 *stringThe organization name. Organization names are case-insensitive.
project_number *integerThe 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.

ParameterTypeDescription
field_id *integerThe unique identifier of the field to retrieve.
org *stringThe organization name. Organization names are case-insensitive.
project_number *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
project_number *integerThe project's unique number identifier.
fieldsComma-separated or repeated field IDs to include in results. If not specified, only the title field is returned.
qstringSearch 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
project_number *integerThe project's unique number identifier within the organization.
type *stringThe 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.

ParameterTypeDescription
item_id *integerThe unique identifier of the project item to retrieve.
org *stringThe organization name. Case-insensitive.
project_number *integerThe project's unique number identifier.
fieldsComma-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.

ParameterTypeDescription
fields *arrayAn ordered list of field updates to apply to the item. Each entry specifies a field and its new value.
item_id *integerThe unique identifier of the project item to update.
org *stringThe organization name. The name is not case sensitive.
project_number *integerThe 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.

ParameterTypeDescription
item_id *integerThe unique identifier of the project item to delete.
org *stringThe organization name. Organization names are case-insensitive.
project_number *integerThe 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.

ParameterTypeDescription
layout *stringThe layout type that determines how project items are displayed.
name *stringThe name of the view.
org *stringThe organization name (case-insensitive).
project_number *integerThe project's number identifier.
filterstringOptional 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_fieldsarrayOptional 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
project_number *integerThe project's number that identifies which project to query.
view_number *integerThe number that identifies the project view within the project.
fieldsLimit 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
custom_property_name *stringThe name of the custom property to retrieve. Must match an existing custom property defined for the organization.
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The lookup is case-insensitive.
repository_querystringSearch 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization that owns the repositories.
properties *arrayCustom 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 *arrayThe 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
directionstringThe sort order for results. Use 'asc' for ascending order or 'desc' for descending order. Defaults to 'asc' when sorting by full name, otherwise 'desc'.
typestringFilters 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).

ParameterTypeDescription
name *stringThe name of the new repository.
org *stringThe organization name where the repository will be created. Organization names are case-insensitive.
allow_auto_mergebooleanAllow pull requests to be automatically merged when all required conditions are met.
allow_merge_commitbooleanAllow pull requests to be merged using a merge commit strategy.
allow_rebase_mergebooleanAllow pull requests to be merged using the rebase-merge strategy.
allow_squash_mergebooleanAllow pull requests to be merged using the squash-merge strategy.
auto_initbooleanCreate an initial commit with an empty README file to initialize the repository.
custom_propertiesobjectCustom properties for the repository as key-value pairs, where keys are custom property names and values are their corresponding values.
delete_branch_on_mergebooleanAutomatically delete the head branch when a pull request is merged. Only organization owners can set this to true.
descriptionstringA short description of the repository's purpose or content.
gitignore_templatestringApply a .gitignore template for the specified language or platform. Use the template name without the file extension (e.g., 'Haskell', 'Python').
has_issuesbooleanEnable or disable GitHub Issues for this repository.
has_projectsbooleanEnable 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_wikibooleanEnable or disable the wiki feature for this repository.
homepagestringA URL with more information about the repository, such as project documentation or homepage.
is_templatebooleanMake this repository available as a template that others can use to generate new repositories.
license_templatestringApply an open source license template to the repository. Use the license keyword identifier (e.g., 'mit', 'mpl-2.0', 'apache-2.0').
merge_commit_messagestringThe default message content for merge commits, determining whether to use the pull request title, body, or a blank message.
merge_commit_titlestringThe default title format for merge commits. Required when using merge_commit_message.
squash_merge_commit_messagestringThe 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_titlestringThe default title format for squash merge commits. Required when using squash_merge_commit_message.
team_idintegerThe ID of the team that will be granted access to this repository. Only valid when creating a repository in an organization.
visibilitystringThe 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.).

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
targetsstringFilter 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
actor_namestringFilter results to rule evaluations triggered by a specific GitHub user account handle.
repository_namestringFilter results to a specific repository by name.
rule_suite_resultstringFilter 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_periodstringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
rule_suite_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
ruleset_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
ruleset_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
ruleset_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Organization names are case-insensitive.
ruleset_id *integerThe unique identifier of the ruleset.
version_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
directionstringSort direction for the results.
hide_secretbooleanWhen true, redacts literal secret values from the response results.
is_multi_repobooleanWhen true, only returns alerts that appear across multiple repositories.
is_publicly_leakedbooleanWhen true, only returns alerts that have been publicly leaked.
resolutionstringFilter by one or more resolution statuses using comma-separated values.
secret_typestringFilter by one or more secret types using comma-separated values. Supports both default secret patterns and generic token names.
statestringFilter alerts by their current state.
validitystringFilter 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
directionstringSort direction for the results.
statestringFilter 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.

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
repository_id *integerThe 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.

ParameterTypeDescription
org *stringThe 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).

ParameterTypeDescription
network_configuration_id *stringThe unique identifier of the hosted compute network configuration to retrieve.
org *stringThe 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.

ParameterTypeDescription
network_configuration_id *stringThe unique identifier of the hosted compute network configuration to update.
org *stringThe organization name. Case-insensitive.
compute_servicestringThe hosted compute service to use for this network configuration.
network_settings_idsarrayA 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.

ParameterTypeDescription
network_configuration_id *stringThe unique identifier of the hosted compute network configuration to delete.
org *stringThe 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.

ParameterTypeDescription
network_settings_id *stringThe unique identifier of the hosted compute network settings resource to retrieve.
org *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive). Used to identify which organization's Copilot metrics to retrieve.
team_slug *stringThe team slug (URL-friendly identifier). Used to specify which team within the organization to retrieve metrics for.
sincestringStart date for the metrics query in ISO 8601 format. Limits results to metrics from this date onward. Maximum lookback is 100 days ago.
untilstringEnd 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).

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
team_typestringFilter 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.

ParameterTypeDescription
name *stringThe name of the team.
org *stringThe organization name (case-insensitive).
descriptionstringA brief description of the team's purpose or focus.
maintainersarrayGitHub usernames of organization members to designate as team maintainers. Order is not significant.
notification_settingstringWhether team members receive notifications when the team is mentioned. 'notifications_enabled' sends notifications, 'notifications_disabled' suppresses them.
parent_team_idintegerThe team ID to set as the parent team, creating a nested team hierarchy.
permissionstringThe default permission level for new repositories added to the team when no specific permission is provided.
privacystringThe 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_namesarrayFull 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.

ParameterTypeDescription
org *stringThe organization name. This parameter is case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
team_slug *stringThe slug identifier for the team name.
descriptionstringThe description of the team.
notification_settingstringWhether team members receive notifications when the team is @mentioned. Choose notifications_enabled to send notifications or notifications_disabled to disable them.
parent_team_idintegerThe ID of a team to set as the parent team, establishing a nested team hierarchy.
permissionstringThe default permission level for new repositories added to the team when no permission is explicitly specified.
privacystringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the organization that owns the team.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
team_slug *stringThe slug identifier for the team name.
rolestringFilter 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the GitHub organization.
team_slug *stringThe URL-friendly slug identifier for the team within the organization.
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name (case-insensitive).
team_slug *stringThe slug identifier for the team.
username *stringThe GitHub username handle for the user being added or updated.
rolestringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive identifier for the GitHub organization.
team_slug *stringThe slug of the team name. This is the URL-friendly identifier for the team within the organization.
username *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
team_slug *stringThe slug identifier for the team within the organization.
permissionstringThe 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.

ParameterTypeDescription
org *stringThe organization name. Case-insensitive.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
team_slug *stringThe 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.

ParameterTypeDescription
org *stringThe organization name. The name is not case sensitive.
team_slug *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
allow_auto_mergebooleanAllow auto-merge on pull requests.
allow_forkingbooleanAllow private forks of this repository.
allow_merge_commitbooleanAllow merge commits when merging pull requests.
allow_rebase_mergebooleanAllow rebase-merging of pull requests.
allow_squash_mergebooleanAllow squash-merging of pull requests.
allow_update_branchbooleanAllow pull request head branches to be updated even if behind the base branch and not required to be up to date before merging.
archivedbooleanArchive or unarchive this repository.
default_branchstringThe default branch for this repository.
delete_branch_on_mergebooleanAutomatically delete head branches when pull requests are merged.
descriptionstringA short description of the repository.
has_issuesbooleanEnable or disable issues for this repository.
has_projectsbooleanEnable or disable projects for this repository. Note: Defaults to false if the organization has disabled repository projects.
has_wikibooleanEnable or disable the wiki for this repository.
homepagestringA URL with more information about the repository.
is_templatebooleanMake this repository available as a template for others to use.
merge_commit_messagestringThe default message content for merge commits.
merge_commit_titlestringThe default title format for merge commits. Required when using merge_commit_message.
reviewersarrayList of users who can bypass secret scanning reviews. If omitted, existing reviewers remain unchanged.
squash_merge_commit_messagestringThe default message content for squash merge commits.
squash_merge_commit_titlestringThe default title format for squash merge commits. Required when using squash_merge_commit_message.
visibilitystringThe visibility level of the repository.
web_commit_signoff_requiredbooleanRequire 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
artifact_id *integerThe unique identifier of the artifact to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
artifact_id *integerThe unique identifier of the artifact to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
archive_format *stringThe archive format for the downloaded artifact. Must be `zip`.
artifact_id *integerThe unique identifier of the artifact to download.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
directionstringThe direction to sort the results by.
keystringFilter 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.

ParameterTypeDescription
key *stringA cache key used to identify and delete matching caches. All caches with this key will be deleted unless filtered by a Git ref.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
cache_id *integerThe unique identifier of the GitHub Actions cache to delete.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
job_id *integerThe unique identifier of the job to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
job_id *integerThe unique identifier of the job to retrieve logs for.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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).

ParameterTypeDescription
job_id *integerThe unique identifier of the job to re-run.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
enable_debug_loggingbooleanWhether 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.

list_organization_variables_shared List Organization Variables Shared

Retrieve all organization variables that are shared with a specific repository. Requires collaborator access to the repository.

ParameterTypeDescription
owner *stringThe owner account of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.

list_runners List Runners

Lists all self-hosted runners configured in a repository. Requires admin access to the repository.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
runner_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
labels *arrayAn array of custom label names to add to the runner. Each label is a string identifier.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
runner_id *integerThe 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.

ParameterTypeDescription
labels *arrayAn array of custom label names to assign to the runner. Pass an empty array to remove all custom labels. Labels are unordered.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
runner_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
name *stringThe name of the custom label to remove from the runner.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
runner_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
actorstringFilter results to workflow runs created by a specific user. Use the login name of the user who created the associated push or check suite.
branchstringFilter results to workflow runs associated with a specific branch. Use the branch name from the push event.
check_suite_idintegerFilter results to workflow runs associated with a specific check suite ID.
createdstringFilter 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_requestsbooleanExclude pull request workflow runs from the response when set to true.
head_shastringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run.
exclude_pull_requestsbooleanIf 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run.
directionstringThe 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.

ParameterTypeDescription
attempt_number *integerThe attempt number of the workflow run.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run.
exclude_pull_requestsbooleanIf 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.

ParameterTypeDescription
attempt_number *integerThe attempt number of the workflow run, used to identify a specific retry or re-run of the workflow.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
attempt_number *integerThe attempt number of the workflow run, indicating which retry or re-run of the workflow to retrieve logs for.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment for which to approve or reject the deployment protection rule.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run to review protection rules for.
commentstringOptional comment to associate with the deployment protection rule review. Required if state is not provided.
statestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run to retrieve jobs for.
filterstringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the .git extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe repository name without the `.git` extension. The name is case-insensitive.
run_id *integerThe 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.

ParameterTypeDescription
comment *stringA comment to accompany the deployment review, providing context for the approval or rejection decision.
environment_ids *arrayThe list of environment IDs to approve or reject. Order is not significant. Each ID must be a valid environment identifier.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run to review pending deployments for.
state *stringWhether 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
run_id *integerThe unique identifier of the workflow run to re-run.
enable_debug_loggingbooleanEnable 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe unique identifier of the workflow run to re-run failed jobs from.
enable_debug_loggingbooleanWhether 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
run_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner account of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner account of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository, excluding the `.git` extension. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
name *stringThe name of the variable. Used as the identifier for referencing this variable in workflows.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
value *stringThe 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.

ParameterTypeDescription
name *stringThe name of the variable to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
name *stringThe name of the variable to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
valuestringThe 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.

ParameterTypeDescription
name *stringThe name of the variable to delete.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
workflow_id *stringThe 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`).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
workflow_id *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe git reference (branch or tag name) where the workflow should run.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
workflow_id *stringThe ID of the workflow. You can also pass the workflow file name as a string.
inputsobjectInput 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_detailsbooleanWhether 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).

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe repository name without the .git extension. The name is case-insensitive.
workflow_id *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
workflow_id *stringThe ID of the workflow or the workflow file name (e.g., `main.yaml`). Accepts both string and integer formats.
actorstringFilter results to show workflow runs created by a specific user. Use the login name of the user who created the associated push.
branchstringFilter results to show workflow runs associated with a specific branch. Use the branch name from the push event.
check_suite_idintegerFilter results to show workflow runs associated with a specific check suite ID.
createdstringFilter results to show workflow runs created within a specified date-time range. Use standard search syntax for date queries.
exclude_pull_requestsbooleanIf true, pull request workflow runs are excluded from the response.
head_shastringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
activity_typestringFilter activities by type (e.g., `force_push` to show only force pushes, `pr_merge` to show pull request merges).
actorstringFilter activities by the GitHub username of the user who performed the action.
directionstringThe sort order for results.
time_periodstringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
assignee *stringThe username of the user to check for assignment permission.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
dsseEnvelopeobjectThe DSSE (Dead Simple Signing Envelope) containing the signed attestation statement and signature.
mediaTypestringThe media type that specifies the format of the attestation payload being submitted.
verificationMaterialobjectThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
subject_digest *stringThe attestation subject's SHA256 digest in the format `sha256:HEX_DIGEST`.
predicate_typestringOptional filter to retrieve attestations matching a specific predicate type. Supports standard types like provenance and sbom, or custom freeform text for user-defined predicates.

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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
protectedbooleanFilter 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard-based branch queries.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe branch name to protect. Wildcard characters are not supported; use GraphQL API for pattern-based protection.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
restrictionsTeams *arrayTeam slugs with push access to the branch. Order is not significant.
restrictionsUsers *arrayUser logins with push access to the branch. Order is not significant.
strict *booleanRequire branches to be up to date with the base branch before merging.
allow_deletionsbooleanAllow deletion of the protected branch by users with write access.
allow_force_pushesbooleanAllow force pushes to the protected branch for users with write access. Set to `null` to block force pushes.
allow_fork_syncingbooleanAllow users to pull changes from upstream when the branch is locked, enabling fork synchronization.
block_creationsbooleanBlock creation of new branches when push restrictions are enabled, unless the push is from an authorized user, team, or app.
bypass_pull_request_allowancesAppsarrayApp slugs allowed to bypass pull request review requirements. Order is not significant.
bypass_pull_request_allowancesTeamsarrayTeam slugs allowed to bypass pull request review requirements. Order is not significant.
bypass_pull_request_allowancesUsersarrayUser logins allowed to bypass pull request review requirements. Order is not significant.
checksarrayList of status checks that must pass before merging. Order is not significant.
dismiss_stale_reviewsbooleanAutomatically dismiss approving reviews when new commits are pushed.
dismissal_restrictionsAppsarrayApp slugs with permission to dismiss pull request reviews. Order is not significant.
dismissal_restrictionsTeamsarrayTeam slugs with permission to dismiss pull request reviews. Order is not significant.
dismissal_restrictionsUsersarrayUser logins with permission to dismiss pull request reviews. Order is not significant.
enforce_adminsbooleanEnforce all configured restrictions for administrators. Set to `true` to apply required status checks to admins, or `null` to disable enforcement.
lock_branchbooleanSet the branch as read-only, preventing all pushes. Users cannot push to a locked branch.
require_code_owner_reviewsbooleanRequire code owners to review pull requests before merging.
require_last_push_approvalbooleanRequire the most recent push to be approved by someone other than the person who pushed it.
required_approving_review_countintegerNumber of reviewers required to approve pull requests. Valid range is 0 to 6, where 0 means no reviewer approval required.
required_conversation_resolutionbooleanRequire all conversations on code to be resolved before merging pull requests.
required_linear_historybooleanEnforce a linear commit history by preventing merge commits. Requires squash or rebase merging to be enabled.
restrictionsAppsarrayApp 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.

ParameterTypeDescription
branch *stringThe name of the branch to remove protection from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to enforce admin protection on. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to modify. Cannot contain wildcard characters.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to check for signature protection requirements. Cannot contain wildcard characters.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to remove status check protection from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to retrieve status check contexts for. Cannot contain wildcard characters; use GraphQL API for wildcard support.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodyAn 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use GraphQL API for wildcard support.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to remove restrictions from. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
apps *arrayThe 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 *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
apps *arrayArray 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 *stringThe branch name. Wildcard characters are not supported; use GraphQL API for wildcard branch operations.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard branch name queries.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to restrict. Cannot contain wildcard characters; use the GraphQL API for wildcard branch names.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodyList 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.

ParameterTypeDescription
branch *stringThe name of the branch to protect. Cannot contain wildcard characters; use GraphQL API for wildcard support.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodyArray 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.

ParameterTypeDescription
branch *stringThe name of the branch to modify protection restrictions for. Cannot contain wildcard characters.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodyList 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters; use the GraphQL API for wildcard support.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch. Cannot contain wildcard characters.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
users *arrayList 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.

ParameterTypeDescription
branch *stringThe name of the branch to modify protection restrictions for. Cannot contain wildcard characters.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
users *arrayArray 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.

ParameterTypeDescription
branch *stringThe current name of the branch. Cannot contain wildcard characters.
new_name *stringThe new name for the branch.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
check_run_id *integerThe unique identifier of the check run to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
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 *integerThe unique identifier of the check run to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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).

ParameterTypeDescription
check_run_id *integerThe unique identifier of the check run for which to retrieve annotations.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
check_run_id *integerThe unique identifier of the check run to recheck.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
head_sha *stringThe commit SHA (hash) that identifies the head commit for which to create the check suite.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
check_suite_id *integerThe unique identifier of the check suite to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
check_suite_id *integerThe unique identifier of the check suite to retrieve check runs from.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
check_namestringFilter results to return only check runs with the specified name.
filterstringFilter 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.

ParameterTypeDescription
check_suite_id *integerThe unique identifier of the check suite to rerun.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
assigneesstringFilter 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.
directionstringThe direction to sort the results by.
statestringFilter 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
assigneesarrayA list of users to assign to the alert. Provide an empty array to unassign all previous assignees.
create_requestbooleanIf `true`, attempt to create an alert dismissal request alongside the status update.
dismissed_commentstringAn optional comment explaining the dismissal decision, up to 280 characters.
dismissed_reasonstringThe reason for dismissing the alert. Required when `state` is set to `dismissed`.
statestringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
messagestringCustom commit message for the autofix. If not provided, a default message will be used.
target_refstringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
directionstringSort direction for the analyses list.
sarif_idstringFilter 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.

ParameterTypeDescription
analysis_id *integerThe unique identifier of the code scanning analysis to retrieve, as returned from the list analyses operation.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
analysis_id *integerThe ID of the analysis to delete, as returned from the list code scanning analyses operation.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
confirm_deletestringSet 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
language *stringThe programming language for which to retrieve the CodeQL database.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
language *stringThe programming language of the CodeQL database to delete.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
language *stringThe programming language targeted by the CodeQL query.
owner *stringThe account owner of the repository. The name is not case sensitive.
query_pack *stringA Base64-encoded tarball containing a CodeQL query and all its dependencies.
repo *stringThe 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.

ParameterTypeDescription
codeql_variant_analysis_id *integerThe unique identifier of the CodeQL variant analysis to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
codeql_variant_analysis_id *integerThe unique identifier of the CodeQL variant analysis.
owner *stringThe account owner of the controller repository. Case-insensitive.
repo *stringThe name of the controller repository.
repo_name *stringThe name of the repository being analyzed in the variant analysis.
repo_owner *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
commit_sha *stringThe 40-character SHA hash of the commit associated with this analysis.
owner *stringThe account owner of the repository.
ref *stringThe 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 *stringThe name of the repository (without the .git extension).
sarif *stringThe SARIF file compressed with gzip and encoded as Base64. Compress your SARIF file first, then encode the binary output to Base64 format.
checkout_uristringThe 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.
validatebooleanWhether 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
sarif_id *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
devcontainer_pathstringPath to the devcontainer.json configuration file within the repository to use for this codespace.
display_namestringA human-readable display name for this codespace.
geostringThe geographic region where the codespace will be hosted. If not specified, the region is determined by the user's IP address.
idle_timeout_minutesintegerTime in minutes before the codespace automatically stops due to inactivity.
machinestringThe machine type to use for this codespace, determining compute resources and performance characteristics.
multi_repo_permissions_opt_outbooleanWhether to opt out of authorizing permissions requested in the devcontainer.json configuration.
retention_period_minutesintegerDuration in minutes after the codespace becomes idle before it is automatically deleted. Must be between 0 and 43200 minutes (30 days).
working_directorystringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
secret_name *stringThe name of the secret to create or update.
encrypted_valuestringThe 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_idstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
affiliationstringFilter 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…
permissionstringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
username *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
username *stringThe GitHub user account handle to add as a collaborator.
permissionstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
username *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
username *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the commit comment.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
body *stringThe new contents of the comment. Supports markdown formatting.
comment_id *stringThe unique identifier of the commit comment to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the commit comment to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the commit comment.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
contentstringFilter 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the commit comment to react to.
content *stringThe emoji reaction type to add to the commit comment.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the commit comment from which to remove the reaction.
owner *stringThe owner of the repository. This is case-insensitive.
reaction_id *integerThe unique identifier of the reaction to remove.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
authorstringFilter commits by the GitHub username or email address of the commit author.
committerstringFilter commits by the GitHub username or email address of the commit committer.
shastringSHA or branch name to start listing commits from. Defaults to the repository's default branch if not specified.
sincestringOnly return commits that were last updated after this timestamp. Must be between 1970-01-01 and 2099-12-31.
untilstringOnly 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.

ParameterTypeDescription
commit_sha *stringThe SHA (commit hash) to find as the HEAD of branches.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
commit_sha *stringThe commit SHA identifier for which to retrieve comments.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
body *stringThe comment text content. Supports markdown formatting.
commit_sha *stringThe commit SHA identifier to comment on.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
positionintegerOptional 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.

ParameterTypeDescription
commit_sha *stringThe SHA of the commit, or alternatively a branch name to list pull requests associated with that branch.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe 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 *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
ref *stringThe commit reference to query. Can be a commit SHA, branch name (format: `heads/BRANCH_NAME`), or tag name (format: `tags/TAG_NAME`).
repo *stringThe repository name without the `.git` extension. Case-insensitive.
check_namestringFilters results to return only check runs with the specified name.
filterstringFilters 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe commit reference to list check suites for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`).
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
check_namestringFilters 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
ref *stringThe commit reference to check status for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`).
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
ref *stringThe commit reference to query statuses for. Can be a commit SHA, branch name (prefixed with `heads/`), or tag name (prefixed with `tags/`).
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
basehead *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
path *stringThe file or directory path within the repository. Omit to retrieve the root directory contents.
repo *stringThe 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.

ParameterTypeDescription
authorEmail *stringThe email address of the author. Required; omitting will result in a 422 error.
authorName *stringThe name of the author. Required; omitting will result in a 422 error.
committerEmail *stringThe email address of the committer. Required; omitting will result in a 422 error.
committerName *stringThe name of the committer. Required; omitting will result in a 422 error.
content *stringThe new file content encoded in Base64 format.
message *stringThe commit message describing the change.
owner *stringThe account owner of the repository. Case-insensitive.
path *stringThe file path within the repository where the file will be created or updated.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
branchstringThe branch name where the file will be created or updated. Defaults to the repository's default branch if not specified.
shastringThe 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.

ParameterTypeDescription
message *stringThe commit message describing the deletion.
owner *stringThe account owner of the repository. Case-insensitive.
path *stringThe file path within the repository to delete.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
sha *stringThe blob SHA of the file being deleted. Used to prevent concurrent modification conflicts.
branchstringThe branch name where the file will be deleted. If not specified, defaults to the repository's default branch.
emailstringThe email address of the committer. Required if committer information is provided; must be paired with committer name.
namestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
anonstringInclude 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
directionstringSort results in ascending or descending order.
ecosystemstringFilter alerts by one or more package ecosystems. Specify as comma-separated values to return only alerts for these ecosystems.
epss_percentagestringFilter 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.
hasFilter 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.
manifeststringFilter alerts by one or more manifest file paths. Specify as comma-separated values to return only alerts for these manifests.
packagestringFilter alerts by one or more package names. Specify as comma-separated values to return only alerts for these packages.
scopestringFilter alerts by dependency scope within the project.
statestringFilter 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
assigneesarrayGitHub 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_commentstringAn optional comment associated with dismissing the alert. Maximum 280 characters.
dismissed_reasonstringA reason for dismissing the alert. Required when `state` is set to `dismissed`.
statestringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
secret_name *stringThe name of the secret to create or update.
key_idstringThe ID of the public key used to encrypt the secret. If not provided, the default key for the repository will be used.
public_keystringThe base64-encoded public key retrieved from the Get a repository public key endpoint
secret_valuestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
secret_name *stringThe 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.

ParameterTypeDescription
basehead *stringThe 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 *stringThe owner account of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
correlator *stringA 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 *stringThe version of the dependency detector tool that generated this snapshot.
id *stringA unique external identifier for this detection job run.
name *stringThe name of the dependency detector tool used to generate this snapshot.
owner *stringThe account owner of the repository. Case-insensitive.
ref *stringThe repository branch reference that triggered this snapshot. Must be a full ref path.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
scanned *stringThe timestamp when the dependency snapshot was scanned.
sha *stringThe commit SHA associated with this dependency snapshot.
url *stringThe URL or documentation link for the detector tool used.
version *integerThe version number of the snapshot submission format being used.
manifestsobjectOptional collection of package manifests representing detected dependencies, organized by logical groups or declaration files.
metadataobjectOptional 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
environmentstringFilter deployments by the target environment name (e.g., `staging` or `production`).
shastringFilter deployments by the commit SHA recorded at creation time.
taskstringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository.
ref *stringThe ref to deploy, which can be a branch name, tag, or commit SHA.
repo *stringThe name of the repository (without the .git extension).
auto_mergebooleanWhether to automatically merge the default branch into the requested ref if it's behind.
descriptionstringA short description of the deployment.
environmentstringThe target deployment environment name, such as production, staging, or qa.
payloadA JSON object containing extra information for the deployment system, such as configuration or metadata.
production_environmentbooleanWhether the environment is directly used by end-users. Defaults to true for production environments, false otherwise.
required_contextsarrayAn 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.
taskstringThe task to execute during deployment, such as deploy or deploy:migrations.
transient_environmentbooleanWhether 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.

ParameterTypeDescription
deployment_id *integerThe unique identifier of the deployment to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
deployment_id *integerThe unique identifier of the deployment to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
deployment_id *integerThe unique identifier of the deployment for which to retrieve statuses.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
deployment_id *integerThe unique identifier of the deployment for which to create a status.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
state *stringThe state of the deployment status. When set to `inactive` on a transient deployment, it will be displayed as `destroyed` in GitHub.
auto_inactivebooleanWhen true, automatically marks all prior successful non-transient, non-production environment deployments with the same repository and environment name as inactive.
descriptionstringA short description of the deployment status. Maximum length is 140 characters.
environmentstringName 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_urlstringThe URL for accessing the deployed environment.
log_urlstringThe 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.

ParameterTypeDescription
deployment_id *integerThe unique identifier of the deployment for which to retrieve the status.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
status_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with forward slashes replaced by `%2F`.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
custom_branch_policies *booleanWhether only branches matching specified name patterns can deploy to this environment. If true, `protected_branches` must be false.
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
protected_branches *booleanWhether only branches with branch protection rules can deploy to this environment. If true, `custom_branch_policies` must be false.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
prevent_self_reviewbooleanWhether to prevent the user who created the job from approving their own job.
reviewersarrayThe 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_timerintegerThe 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).

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with forward slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
name *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
typestringWhether 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.

ParameterTypeDescription
branch_policy_id *integerThe unique identifier of the branch policy to retrieve.
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch_policy_id *integerThe unique identifier of the branch policy to update.
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
name *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch_policy_id *integerThe unique identifier of the branch policy to delete.
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by %2F.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. URL encode special characters, such as replacing forward slashes with `%2F`.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced with `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
protection_rule_id *integerThe unique identifier of the deployment protection rule.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by %2F.
owner *stringThe account owner of the repository. The name is not case sensitive.
protection_rule_id *integerThe unique identifier of the protection rule to disable.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe environment name. Must be URL encoded, with forward slashes replaced by `%2F`.
owner *stringThe owner account of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
secret_name *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
secret_name *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by `%2F`.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
name *stringThe name of the variable to create in the environment.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
value *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. The name must be URL encoded, with slashes replaced by `%2F`.
name *stringThe name of the variable to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by `%2F`.
name *stringThe name of the environment variable to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
valuestringThe 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.

ParameterTypeDescription
environment_name *stringThe name of the environment. Must be URL encoded, with slashes replaced by `%2F`.
name *stringThe name of the environment variable to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
default_branch_onlybooleanWhen enabled, fork only the default branch instead of all branches.
organizationstringThe 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.

ParameterTypeDescription
content *stringThe content to store in the blob object.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
encodingstringThe 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.

ParameterTypeDescription
file_sha *stringThe SHA hash identifier of the blob object to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
message *stringThe commit message describing the changes in this commit.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
tree *stringThe SHA of the tree object that this commit points to, representing the repository state at this commit.
authorstringAuthor identity in RFC 5322 format: 'Name <email@example.com>' or 'email@example.com'
parentsarrayArray 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.
signaturestringAn 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.

ParameterTypeDescription
commit_sha *stringThe SHA (Secure Hash Algorithm) identifier of the commit to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe 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 *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
ref *stringThe Git reference to retrieve, formatted as `heads/<branch name>` for branches or `tags/<tag name>` for tags.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
ref *stringThe 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 *stringThe name of the repository without the `.git` extension. Case-insensitive.
sha *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe Git reference to update, such as a branch name (e.g., `heads/main`) or tag. See Git References documentation for valid reference formats.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
sha *stringThe SHA1 commit hash to set this reference to point at.
forcebooleanForce 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe Git reference to delete, such as a branch or tag (e.g., `heads/feature-a` for branches or `tags/v1.0` for tags).
repo *stringThe 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.

ParameterTypeDescription
email *stringThe email address of the author who created the tag.
message *stringThe message content for the annotated tag.
name *stringThe name of the author who created the tag.
object *stringThe SHA hash of the Git object (commit, tree, or blob) that this tag references.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
tag *stringThe tag's name, typically a version identifier.
type *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
tag_sha *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
tree *arrayArray 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_treestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
tree_sha *stringThe SHA1 value or ref (branch or tag) name identifying the tree to retrieve.
recursivestringEnable 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
activebooleanWhether the webhook is active and will send notifications when triggered. Defaults to `true`.
content_typestringThe media type format for serializing webhook payloads. Defaults to `form` if not specified.
secretstringA secret string used to generate HMAC hex digest signatures for authenticating webhook delivery headers. Enhances security by allowing verification that payloads originated from GitHub.
urlstringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
activebooleanDetermines if notifications are sent when the webhook is triggered. Set to `true` to enable notifications.
content_typestringThe media type used to serialize payloads. Supported values are `json` and `form`, with `form` as the default.
secretstringA 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.
urlstringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
content_typestringThe media type used to serialize the payloads. Supported values are `json` and `form`, with `form` as the default.
secretstringIf provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.
urlstringThe 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.

ParameterTypeDescription
hook_id *integerThe 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 *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe unique identifier of the specific webhook delivery to retrieve.
hook_id *integerThe unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
delivery_id *stringThe unique identifier of the webhook delivery to redeliver.
hook_id *integerThe unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. This value can be found in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
hook_id *integerThe unique identifier of the webhook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository account. This is case-insensitive and can be either a user or organization name.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
invitation_id *integerThe unique identifier of the invitation to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
permissionsstringThe 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.

ParameterTypeDescription
invitation_id *integerThe unique identifier of the invitation to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
creatorstringFilter to issues created by a specific user.
directionstringSort direction for results.
labelsstringFilter by labels. Provide as comma-separated label names.
mentionedstringFilter to issues that mention a specific user.
milestonestringFilter by milestone. Pass a milestone number, `*` for any milestone, or `none` for issues without milestones.
sincestringOnly return issues last updated after this timestamp in ISO 8601 format.
statestringFilter by issue state.
typestringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
title *stringThe title of the issue. Accepts string or integer values.
assigneesarrayGitHub 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.
bodystringThe contents of the issue in markdown format.
labelsarrayLabels 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.
milestonestringThe milestone to associate with this issue. Accepts string or integer identifier.
typestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
directionstringSort direction for results. Only applies when used with a sort parameter.
sincestringOnly 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to retrieve.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
body *stringThe new content for the comment. Supports markdown formatting.
comment_id *stringThe unique identifier of the comment to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to pin.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment to unpin.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
contentstringFilter 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the issue comment to react to.
content *stringThe reaction emoji type to add to the comment. Choose from the supported reaction types.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the comment from which to remove the reaction.
owner *stringThe owner of the repository. This is case-insensitive.
reaction_id *integerThe unique identifier of the reaction to remove.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner account of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
event_id *integerThe unique identifier of the issue event to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue within the repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
assigneesarrayUsernames 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…
bodystringThe contents of the issue body. Supports markdown formatting.
issue_field_valuesarrayAn 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.
labelsarrayLabels 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…
milestonestringThe milestone to associate with this issue. Accepts either a milestone ID (integer) or milestone title (string).
statestringThe open or closed state of the issue.
state_reasonstringThe reason for the state change. Only used when the `state` parameter is changed.
typestringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
assigneesarrayUsernames 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
assigneesarrayUsernames 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.

ParameterTypeDescription
assignee *stringThe username of the user to verify for assignment eligibility to the issue.
issue_number *integerThe issue number that identifies the specific issue to check assignee permissions for.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
sincestringOnly 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.

ParameterTypeDescription
body *stringThe comment text content. Supports markdown formatting.
issue_number *integerThe number that identifies the issue or pull request.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe issue number to retrieve blocking dependencies for.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_id *integerThe ID of the issue that blocks the current issue. This issue must exist in the same repository.
issue_number *integerThe number that identifies the issue that is blocked.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_id *integerThe ID of the blocking issue to remove as a dependency.
issue_number *integerThe number that identifies the issue from which the blocking dependency will be removed.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue's blocking dependencies to retrieve.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue's events to retrieve.
owner *stringThe owner account of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue within the repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue within the repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodyAn 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue to update labels for.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe repository name without the `.git` extension. The name is case-insensitive.
bodyobjectAn 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue within the repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue to remove the label from.
name *stringThe name of the label to remove from the issue.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
lock_reasonstringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe numeric identifier of the sub-issue for which to retrieve the parent issue.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
contentstringFilter 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.

ParameterTypeDescription
content *stringThe emoji reaction type to add to the issue.
issue_number *integerThe number that identifies the issue.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue to remove the reaction from.
owner *stringThe owner of the repository. Case-insensitive.
reaction_id *integerThe unique identifier of the reaction to delete.
repo *stringThe repository name without the `.git` extension. Case-insensitive.

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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies the parent issue containing the sub-issues to list.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.

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.

ParameterTypeDescription
issue_number *integerThe issue number that contains the sub-issue to reorder.
owner *stringThe owner account of the repository. The name is case-insensitive.
repo *stringThe repository name without the `.git` extension. The name is case-insensitive.
sub_issue_id *integerThe unique identifier of the sub-issue to move to a new position in the parent issue's sub-issue list.
after_idintegerThe id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).
before_idintegerThe 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.

ParameterTypeDescription
issue_number *integerThe issue number that identifies which issue's timeline events to retrieve.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
key *stringThe public key contents in OpenSSH format.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
read_onlybooleanIf 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.

ParameterTypeDescription
key_id *integerThe unique identifier of the deploy key to retrieve.
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
key_id *integerThe unique identifier of the deploy key to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
name *stringThe name of the label. Emoji can be added using native emoji or colon-style markup (e.g., `:strawberry:`).
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
colorstringThe hexadecimal color code for the label, without the leading `#`. Must be a valid hex color value.
descriptionstringA 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.

ParameterTypeDescription
name *stringThe name of the label to retrieve. The name is not case sensitive.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
name *stringThe current name of the label to update. Case-sensitive.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
colorstringThe hexadecimal color code for the label without the leading `#` character.
descriptionstringA short description of the label's purpose. Maximum 100 characters.
new_namestringThe 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.

ParameterTypeDescription
name *stringThe name of the label to delete. The name is not case sensitive.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe name of the branch to synchronize with the upstream repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
base *stringThe name of the base branch that will receive the merged changes.
head *stringThe head to merge into the base branch. Can be a branch name or a commit SHA1.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
commit_messagestringOptional 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
directionstringControl the sort order of results: ascending (asc) for oldest first, or descending (desc) for newest first.
statestringFilter 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
title *stringThe title of the milestone. This is the primary identifier displayed in the repository.
descriptionstringA description of the milestone providing additional context about its goals and scope.
due_onstringThe milestone due date in ISO 8601 format, specifying when the milestone should be completed.
statestringThe 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.

ParameterTypeDescription
milestone_number *integerThe numeric identifier that uniquely identifies the milestone within the repository.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
milestone_number *integerThe number that identifies the milestone.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
descriptionstringA description of the milestone. Use this to provide context or details about the milestone's purpose and goals.
due_onstringThe milestone due date in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). Set this to establish a target completion date for the milestone.
statestringThe 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.

ParameterTypeDescription
milestone_number *integerThe numeric identifier of the milestone to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
milestone_number *integerThe numeric identifier of the milestone.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
allbooleanIf true, include notifications marked as read. By default, only unread notifications are returned.
participatingbooleanIf true, show only notifications where the user is directly participating or mentioned. By default, all notifications are returned.
sincestringOnly 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
last_read_atstringThe 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).

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe repository branch that contains the source files for publishing the Pages site.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
build_typestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
build_typestringThe build process for the GitHub Pages site. Use 'workflow' for custom GitHub Actions builds or 'legacy' for automatic builds on branch pushes.
cnamestringA custom domain for the GitHub Pages site. Pass null to remove an existing custom domain.
https_enforcedbooleanWhether 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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).

ParameterTypeDescription
build_id *integerThe unique identifier of the GitHub Pages build to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
oidc_token *stringThe OIDC token issued by GitHub Actions certifying the origin of the deployment.
owner *stringThe account owner of the repository. The name is not case sensitive.
pages_build_version *stringA unique string that represents the version of the build for this deployment.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
artifact_urlstringThe 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.
environmentstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pages_deployment_id *stringThe ID of the Pages deployment. You can also provide the commit SHA of the deployment.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pages_deployment_id *stringThe ID of the Pages deployment. You can also provide the commit SHA of the deployment.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
properties *arrayA 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 *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
basestringFilter pull requests by the base branch name. Matches the target branch where pull requests are being merged.
directionstringThe sort direction for results. Defaults to descending when sorting by creation date or when no sort is specified.
headstringFilter pull requests by the head branch. Specify in the format `user:ref-name` or `organization:ref-name` to match the source branch and owner.
statestringFilter 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.

ParameterTypeDescription
base *stringThe target branch where changes will be merged. Must be an existing branch on the current repository.
head *stringThe branch containing your changes. For cross-repository PRs in the same network, use the format `username:branch` to namespace the head branch.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
bodystringThe pull request description in markdown format.
draftbooleanWhether to create the pull request as a draft. Draft PRs can be marked ready for review later.
head_repostringThe repository where the pull request changes were made. Required for cross-repository PRs when both repositories are owned by the same organization.
maintainer_can_modifybooleanWhether maintainers can modify the pull request branch. Allows maintainers to push commits to your PR branch.
titlestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
directionstringThe direction to sort results. Only applies when used with a sort parameter.
sincestringOnly 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the review comment to retrieve.
owner *stringThe owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
body *stringThe updated text content for the review comment. Supports markdown formatting.
comment_id *stringThe unique identifier of the review comment to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the review comment to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the pull request review comment.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
contentstringFilter 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the pull request review comment.
content *stringThe emoji reaction type to add to the comment.
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
comment_id *stringThe unique identifier of the pull request review comment.
owner *stringThe owner of the repository. The name is case-insensitive.
reaction_id *integerThe unique identifier of the reaction to remove.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
basestringThe 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.
bodystringThe contents of the pull request body. Supports markdown formatting.
maintainer_can_modifybooleanIndicates whether maintainers can modify the pull request branch.
statestringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
pull_number *integerThe pull request number that identifies which PR to create the codespace from.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
devcontainer_pathstringPath to the devcontainer.json configuration file within the repository to use for this codespace.
display_namestringA human-readable display name for this codespace.
geostringThe 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_minutesintegerTime in minutes before the codespace automatically stops due to inactivity.
machinestringThe machine type to use for this codespace (e.g., standard-2core, premium-4core).
multi_repo_permissions_opt_outbooleanWhether to opt out of authorizing permissions requested in the devcontainer.json configuration.
retention_period_minutesintegerDuration in minutes after the codespace becomes idle before it is automatically deleted. Must be between 0 and 43200 (30 days).
working_directorystringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
pull_number *integerThe pull request identifier number.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
directionstringThe sort direction for results. Only applies when used with a sort parameter.
sincestringFilter 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.

ParameterTypeDescription
body *stringThe text content of the review comment. Supports markdown formatting.
commit_id *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
path *stringThe relative path to the file being commented on within the repository.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
in_reply_tointegerThe ID of an existing review comment to reply to. When specified, all other request body parameters except `body` are ignored.
lineinteger**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…
positioninteger**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…
sidestringIn 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_lineintegerThe 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_typestringThe 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.

ParameterTypeDescription
body *stringThe text content of the reply, formatted as markdown.
comment_id *stringThe unique identifier of the top-level review comment to reply to.
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
pull_number *integerThe pull request identifier number.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe pull request number that identifies which pull request's files to retrieve.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
pull_number *integerThe pull request identifier number.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
pull_number *integerThe numeric identifier of the pull request to merge.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
commit_messagestringAdditional details to append to the automatic commit message.
commit_titlestringCustom title for the automatic commit message created by the merge.
merge_methodstringThe merge strategy to use when combining the pull request with the base branch.
shastringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
pull_number *integerThe pull request identifier number.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
reviewersarrayAn array of user login names to request as reviewers. Order is not significant.
team_reviewersarrayAn 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
pull_number *integerThe pull request number that identifies which pull request to modify.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
reviewers *arrayAn array of user login names to remove from the review request. Order is not significant.
team_reviewersarrayAn 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
pull_number *integerThe numeric identifier of the pull request to retrieve reviews for.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodystringThe body text of the pull request review. Required when the `event` parameter is set to `REQUEST_CHANGES` or `COMMENT`.
comment_bodystringText content of the review comment.
comment_lineintegerRequired when using a multi-line comment. The line of the blob in the pull request diff that the comment applies to.
comment_pathstringThe relative path to the file that necessitates a comment.
comment_positionintegerThe line index in the diff. Line numbers start at 1 from the first @@ hunk header.
commit_idstringThe 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…
eventstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
review_id *integerThe 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.

ParameterTypeDescription
body *stringThe body text of the pull request review. Supports markdown formatting.
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
review_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
review_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
pull_number *integerThe pull request number that contains the review.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
review_id *integerThe 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.

ParameterTypeDescription
message *stringThe message explaining the reason for dismissing the review.
owner *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
review_id *integerThe 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.

ParameterTypeDescription
event *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
pull_number *integerThe number that identifies the pull request.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
review_id *integerThe unique identifier of the review to submit.
bodystringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
pull_number *integerThe pull request identifier number.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
dir *stringThe directory path within the repository to search for the README file.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
tag_name *stringThe name of the tag to create or use for this release.
bodystringDescriptive text about the release contents and changes.
discussion_category_namestringCategory name for an automatically created discussion linked to this release. The category must already exist in the repository.
draftbooleanWhether to create an unpublished draft release or a published release.
generate_release_notesbooleanWhether 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_lateststringWhether 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.
namestringThe name of the release.
prereleasebooleanWhether to mark this release as a prerelease or a full release.
target_commitishstringThe 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.

ParameterTypeDescription
asset_id *integerThe unique identifier of the asset to retrieve.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
asset_id *integerThe unique identifier of the asset to update.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
labelstringAn alternate short description of the asset, displayed in place of the filename.
statestringThe 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.

ParameterTypeDescription
asset_id *integerThe unique identifier of the asset to delete.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
tag_name *stringThe tag name for the release. Can be an existing tag or a new one to be created.
configuration_file_pathstringPath 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_namestringThe 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_commitishstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe name of the repository without the `.git` extension. The name is case-insensitive.
tag *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
release_id *integerThe unique identifier of the release to retrieve.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
release_id *integerThe unique identifier of the release to update.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodystringText describing the contents of the tag.
discussion_category_namestringCategory 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.
draftbooleanSet to `true` to mark the release as a draft, or `false` to publish it.
make_lateststringSpecifies 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…
prereleasebooleanSet to `true` to identify the release as a prerelease, or `false` to identify it as a full release.
tag_namestringThe name of the tag associated with this release.
target_commitishstringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
release_id *integerThe unique identifier of the release to delete.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
release_id *integerThe unique identifier of the release to retrieve assets from.
repo *stringThe 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.

ParameterTypeDescription
name *stringThe 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 *stringThe account owner of the repository. The name is not case sensitive.
release_id *integerThe unique identifier of the release to which the asset will be uploaded.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
bodystringBase64-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).
labelstringAn 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
release_id *integerThe unique identifier of the release for which to list reactions.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
contentstringFilter 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.

ParameterTypeDescription
content *stringThe emoji reaction type to add to the release.
owner *stringThe account owner of the repository. The name is not case sensitive.
release_id *integerThe unique identifier of the release to add a reaction to.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. The name is case-insensitive.
reaction_id *integerThe unique identifier of the reaction to delete.
release_id *integerThe unique identifier of the release from which to delete the reaction.
repo *stringThe 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.

ParameterTypeDescription
branch *stringThe branch name to retrieve rules for. Wildcard characters are not supported; use the GraphQL API for wildcard matching.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
actor_namestringThe GitHub user account handle to filter on. When specified, only rule evaluations triggered by this actor will be returned.
rule_suite_resultstringThe rule suite result status to filter on. When specified, only suites with this result will be returned.
time_periodstringThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
rule_suite_id *integerThe 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.

ParameterTypeDescription
owner *stringThe owner of the repository. Case-insensitive.
repo *stringThe repository name without the .git extension. Case-insensitive.
ruleset_id *integerThe unique identifier of the ruleset to retrieve.
includes_parentsbooleanWhether 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
ruleset_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
ruleset_id *integerThe unique identifier of the ruleset.
version_id *integerThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
directionstringSort direction for results.
hide_secretbooleanRedact literal secret values from the response for security purposes.
is_multi_repobooleanFilter to include only alerts detected across multiple repositories.
is_publicly_leakedbooleanFilter to include only alerts that have been publicly leaked.
resolutionstringFilter by one or more resolution statuses using comma-separated values.
secret_typestringFilter by one or more secret types using comma-separated values. Supports both default secret patterns and generic token names.
statestringFilter alerts by their current state.
validitystringFilter 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
hide_secretbooleanWhether 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
resolutionstringThe reason for resolving the alert. Required when `state` is set to `resolved`.
resolution_commentstringAn optional comment when closing or reopening an alert. Cannot be updated or deleted after creation.
statestringSets 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.

ParameterTypeDescription
alert_number *integerThe 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
placeholder_id *stringThe ID of the push protection bypass placeholder returned when a secret is push protected.
reason *stringThe reason for bypassing push protection. Select from predefined reasons that categorize why the secret should be allowed.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
directionstringThe direction to sort the results by.
statestringFilter 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.

ParameterTypeDescription
description *stringA detailed description of what the advisory impacts.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
summary *stringA short summary of the advisory.
vulnerabilities *arrayAn array of products affected by the vulnerability. Each item specifies the package, affected version ranges, and patched versions.
creditsarrayAn array of users to receive credit for their participation in identifying or fixing the security advisory.
cve_idstringThe Common Vulnerabilities and Exposures (CVE) ID for this vulnerability.
cwe_idsarrayAn array of Common Weakness Enumeration (CWE) IDs that relate to this vulnerability.
severitystringThe severity of the advisory. You must choose between setting this field or `cvss_vector_string`.
start_private_forkbooleanWhether 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.

ParameterTypeDescription
description *stringA detailed explanation of what the vulnerability impacts, including affected components and potential consequences.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe repository name without the `.git` extension. Case-insensitive.
summary *stringA concise summary of the security vulnerability.
cwe_idsarrayA list of Common Weakness Enumeration (CWE) IDs that classify the vulnerability type.
start_private_forkbooleanWhether to create a temporary private fork of the repository to facilitate collaborative fix development.
vulnerabilitiesarrayAn 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).

ParameterTypeDescription
ghsa_id *stringThe GitHub Security Advisory (GHSA) identifier that uniquely identifies the security advisory.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
ghsa_id *stringThe GitHub Security Advisory (GHSA) identifier of the advisory to update.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
collaborating_teamsarrayAn array of team slugs which have been granted write access to the advisory.
collaborating_usersarrayAn array of usernames who have been granted write access to the advisory.
creditsarrayAn array of users receiving credit for their participation in the security advisory.
cve_idstringThe Common Vulnerabilities and Exposures (CVE) identifier.
cwe_idsarrayAn array of Common Weakness Enumeration (CWE) identifiers related to the advisory.
descriptionstringA detailed description of what the advisory impacts.
statestringThe publication state of the advisory.
summarystringA short summary of the advisory.
vulnerabilitiesarrayAn 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.

ParameterTypeDescription
ghsa_id *stringThe GHSA (GitHub Security Advisory) identifier of the advisory for which you are requesting a CVE.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
ghsa_id *stringThe GitHub Security Advisory (GHSA) identifier for the vulnerability being addressed.
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
sha *stringThe commit SHA for which to create the status.
state *stringThe state of the commit status, indicating the result of the check or build.
contextstringA string label to differentiate this status from other systems. Case-insensitive. Defaults to 'default' if not provided.
descriptionstringA 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
ignoredbooleanSet to `true` to block all notifications from this repository, or `false` to allow notifications based on other settings.
subscribedbooleanSet 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
ref *stringThe git reference to archive, such as a branch name, tag, or commit SHA. If omitted, the repository's default branch will be used.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
names *arrayAn 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 *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
perstringThe time frame to display clone results for.

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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe name of the repository without the `.git` extension. The name is not case sensitive.
perstringThe 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.

ParameterTypeDescription
new_owner *stringThe username or organization name that will become the new repository owner.
owner *stringThe account owner of the repository. Case-insensitive.
repo *stringThe name of the repository without the `.git` extension. Case-insensitive.
new_namestringOptional new name for the repository after transfer.
team_idsarrayOptional 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. Case-insensitive.
ref *stringThe git reference (branch, tag, or commit SHA) to archive. If omitted, the repository's default branch will be used.
repo *stringThe 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).

ParameterTypeDescription
name *stringThe name for the new repository being created.
template_owner *stringThe account owner of the template repository. Case-insensitive.
template_repo *stringThe name of the template repository without the `.git` extension. Case-insensitive.
descriptionstringA short description of the new repository.
include_all_branchesbooleanSet 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.

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

ParameterTypeDescription
issue_number *integerThe issue number to update with field values.
repository_id *integerThe unique identifier of the repository.
issue_field_valuesarrayAn 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.

ParameterTypeDescription
issue_number *integerThe number that identifies the issue within the repository.
repository_id *integerThe unique identifier of the repository.
issue_field_valuesarrayAn 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.

ParameterTypeDescription
issue_field_id *integerThe unique identifier of the custom field whose value should be deleted from the issue.
issue_number *integerThe issue number that identifies which issue to modify.
repository_id *integerThe 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.

ParameterTypeDescription
q *stringSearch 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.

ParameterTypeDescription
assigneestringFilter by assignee username
authorstringFilter by issue/PR author username
created_afterstringFilter by creation date (ISO 8601 format, e.g., '2023-01-01')
created_beforestringFilter by creation date (ISO 8601 format, e.g., '2023-12-31')
is_qualifierstringQualifier to filter type: 'issue', 'pull-request', or None for both
keywordsarraySearch keywords to find in issues/PRs (e.g., ['windows', 'bug'])
labelsarrayFilter by labels (e.g., ['bug', 'enhancement'])
languagestringFilter by repository primary language (e.g., 'python', 'javascript')
orderstringSort order for search results, determining whether results are ordered by highest or lowest match count. Only applies when using the sort parameter.
repostringFilter by repository in format 'owner/repo'
statestringFilter 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.

ParameterTypeDescription
assigneestringFilter by assignee username
authorstringFilter by issue/PR author username
created_afterstringFilter by creation date (ISO 8601 format, e.g., '2023-01-01')
created_beforestringFilter by creation date (ISO 8601 format, e.g., '2023-12-31')
is_qualifierstringQualifier to filter type: 'issue', 'pull-request', or None for both
keywordsarraySearch keywords to find in issues/PRs (e.g., ['windows', 'bug'])
labelsarrayFilter by labels (e.g., ['bug', 'enhancement'])
languagestringFilter by repository primary language (e.g., 'python', 'javascript')
orderstringSort 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.
repostringFilter by repository in format 'owner/repo'
statestringFilter 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.

ParameterTypeDescription
q *stringThe search keywords to match against label names and descriptions. Qualifiers are not supported in this query.
repository_id *integerThe numeric identifier of the repository to search labels within.
orderstringDetermines 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.

ParameterTypeDescription
q *stringSearch 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…
orderstringSort 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.

ParameterTypeDescription
q *stringSearch 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.

ParameterTypeDescription
assigneestringFilter by assignee username
authorstringFilter by issue/PR author username
created_afterstringFilter by creation date (ISO 8601 format, e.g., '2023-01-01')
created_beforestringFilter by creation date (ISO 8601 format, e.g., '2023-12-31')
is_qualifierstringQualifier to filter type: 'issue', 'pull-request', or None for both
keywordsarraySearch keywords to find in issues/PRs (e.g., ['windows', 'bug'])
labelsarrayFilter by labels (e.g., ['bug', 'enhancement'])
languagestringFilter by repository primary language (e.g., 'python', 'javascript')
orderstringSort 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.
repostringFilter by repository in format 'owner/repo'
statestringFilter 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.

ParameterTypeDescription
biostringA short biography or about section for the user's profile.
blogstringThe user's blog or personal website URL.
companystringThe user's company or organization name.
hireablebooleanWhether the user is available for hiring.
twitter_usernamestringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

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

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

ParameterTypeDescription
secret_name *stringThe 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.

ParameterTypeDescription
key_id *stringThe ID of the public key used to encrypt the secret value.
secret_name *stringThe name of the secret to create or update.
encrypted_valuestringThe encrypted value of the secret, encrypted using LibSodium with the public key from the Get public key endpoint. Must be base64-encoded.
selected_repository_idsarrayAn 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.

ParameterTypeDescription
secret_name *stringThe 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.

ParameterTypeDescription
secret_name *stringThe 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.

ParameterTypeDescription
secret_name *stringThe name of the user secret to configure repository access for.
selected_repository_ids *arrayAn 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.

ParameterTypeDescription
repository_id *integerThe unique identifier of the repository to add to the secret's accessible repositories.
secret_name *stringThe 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.

ParameterTypeDescription
repository_id *integerThe unique identifier of the repository to remove from the secret's access list.
secret_name *stringThe 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).

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe name of the codespace to update.
display_namestringA display name for the codespace.
machinestringThe machine type to transition this codespace to. Changes take effect the next time the codespace is started.
recent_foldersarrayAn 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe name of the codespace to retrieve export details for.
export_id *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
codespace_name *stringThe 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.

ParameterTypeDescription
visibility *stringControls 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).

ParameterTypeDescription
bodyobjectA 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).

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

ParameterTypeDescription
username *stringThe 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).

ParameterTypeDescription
username *stringThe 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).

ParameterTypeDescription
username *stringThe 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).

ParameterTypeDescription
armored_public_key *stringA 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).

ParameterTypeDescription
gpg_key_id *integerThe 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).

ParameterTypeDescription
gpg_key_id *integerThe 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.

ParameterTypeDescription
installation_id *integerThe unique identifier of the installation to which the repository will be added.
repository_id *integerThe 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'.

ParameterTypeDescription
installation_id *integerThe unique identifier of the app installation from which to remove the repository.
repository_id *integerThe 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.

ParameterTypeDescription
directionstringSort direction for results, either ascending or descending by the sort field.
filterstringFilter issues by type of involvement: assigned to you, created by you, mentioning you, subscribed to, or all visible issues.
labelsstringFilter by one or more labels. Provide as comma-separated label names to match issues with any of the specified labels.
sincestringOnly return issues updated after this timestamp. Provide in ISO 8601 format.
statestringFilter 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.

ParameterTypeDescription
key *stringThe 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.

ParameterTypeDescription
key_id *integerThe 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).

ParameterTypeDescription
key_id *integerThe 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.

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

ParameterTypeDescription
org *stringThe 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.

ParameterTypeDescription
org *stringThe name of the organization. Organization names are case-insensitive.
state *stringThe 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.

ParameterTypeDescription
migration_id *integerThe 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.

ParameterTypeDescription
migration_id *integerThe 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.

ParameterTypeDescription
migration_id *integerThe 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.

ParameterTypeDescription
migration_id *integerThe unique identifier of the migration that locked the repository.
repo_name *stringThe 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.

ParameterTypeDescription
migration_id *integerThe 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.

ParameterTypeDescription
package_type *stringThe 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…
visibilitystringFilter 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.

ParameterTypeDescription
package_name *stringThe name of the package to retrieve.
package_type *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to delete.
package_type *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to restore.
package_type *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to retrieve versions for.
package_type *stringThe 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.
statestringFilter 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.

ParameterTypeDescription
package_name *stringThe name of the package to retrieve.
package_type *stringThe 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 *integerThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to delete a version from.
package_type *stringThe package type (e.g., npm, maven, docker). Gradle packages use 'maven', and Container registry images use 'container'.
package_version_id *integerThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to restore.
package_type *stringThe type of package registry (npm, Maven, RubyGems, Docker, NuGet, or Container).
package_version_id *integerThe 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.

ParameterTypeDescription
affiliationstringFilter 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…
directionstringSort direction for results. Defaults to ascending when sorting by full_name, otherwise descending.
sincestringReturn only repositories updated after this timestamp in ISO 8601 format.
typestringFilter repositories by type. Cannot be used together with visibility or affiliation parameters. Defaults to all repository types.
visibilitystringFilter 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.

ParameterTypeDescription
name *stringThe name of the repository. This is a required identifier for the repository.
allow_auto_mergebooleanWhether to allow auto-merge to be used on pull requests, automatically merging when conditions are met.
allow_merge_commitbooleanWhether to allow merge commits for pull requests, preserving the full commit history.
allow_rebase_mergebooleanWhether to allow rebase merges for pull requests, replaying commits on top of the base branch.
allow_squash_mergebooleanWhether to allow squash merges for pull requests, combining all commits into a single commit.
auto_initbooleanWhether the repository is initialized with a minimal README file upon creation.
delete_branch_on_mergebooleanWhether to delete head branches when pull requests are merged, keeping the repository clean.
descriptionstringA short description of the repository to help others understand its purpose.
gitignore_templatestringThe desired language or platform for the .gitignore template to be applied to the repository.
has_discussionsbooleanWhether discussions are enabled for the repository, allowing community conversations.
has_issuesbooleanWhether issues are enabled for the repository, allowing users to report bugs and request features.
has_projectsbooleanWhether projects are enabled for the repository, allowing project board management.
has_wikibooleanWhether the wiki is enabled for the repository, allowing collaborative documentation.
homepagestringA URL with more information about the repository, such as project documentation or homepage.
is_templatebooleanWhether this repository acts as a template that can be used to generate new repositories.
license_templatestringThe license keyword of the open source license to apply to this repository.
merge_commit_messagestringThe 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_titlestringThe 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_messagestringThe 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_titlestringThe 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_idintegerThe 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.

ParameterTypeDescription
invitation_id *integerThe 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.

ParameterTypeDescription
invitation_id *integerThe 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).

ParameterTypeDescription
account_urls *arrayArray 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.

ParameterTypeDescription
account_urls *arrayArray 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.

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

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is not case sensitive.
repo *stringThe 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.

ParameterTypeDescription
owner *stringThe account owner of the repository. The name is case-insensitive.
repo *stringThe 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.

ParameterTypeDescription
account_id *integerThe 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.

ParameterTypeDescription
project_number *integerThe project's number, which uniquely identifies the project within the user's account.
title *stringThe title of the draft issue item. This is the primary heading for the draft.
user_id *stringThe unique identifier of the user who owns the project.
bodystringThe 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.

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

ParameterTypeDescription
layout *stringThe layout type that determines how project items are displayed.
name *stringThe display name for the new view.
project_number *integerThe project's number identifier.
user_id *stringThe unique identifier of the user who owns the project.
filterstringOptional 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_fieldsarrayOptional 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
subject_digests *arrayList of subject digests to fetch attestations for. Each digest identifies an artifact for which attestations are requested.
username *stringThe GitHub username whose attestations should be retrieved.
predicate_typestringOptional 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.

ParameterTypeDescription
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 *stringThe 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.

ParameterTypeDescription
subject_digest *stringThe subject digest that uniquely identifies the attestation to delete.
username *stringThe 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.

ParameterTypeDescription
attestation_id *integerThe unique identifier of the attestation to delete.
username *stringThe 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.

ParameterTypeDescription
subject_digest *stringThe cryptographic digest identifying the artifact subject for which to retrieve attestations.
username *stringThe GitHub user account handle whose repositories will be searched for attestations.
predicate_typestringFilter 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
org *stringThe organization name to filter events for. Organization names are case-insensitive.
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
target_user *stringThe GitHub username of the target user to check if they are being followed.
username *stringThe 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.

ParameterTypeDescription
username *stringThe GitHub username whose gists should be listed.
sincestringFilter 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe GitHub username handle for the user whose hovercard information you want to retrieve.
subject_idstringThe unique identifier for the subject specified in subject_type. Required when subject_type is provided to establish the contextual relationship.
subject_typestringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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).

ParameterTypeDescription
package_type *stringThe 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 *stringThe GitHub username whose packages to list.
visibilitystringFilter 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).

ParameterTypeDescription
package_name *stringThe name of the package to retrieve.
package_type *stringThe 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 *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to delete.
package_type *stringThe 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 *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to restore.
package_type *stringThe package registry type. GitHub's Gradle registry uses 'maven', Container registry uses 'container', and 'docker' finds images in the legacy Docker registry.
username *stringThe 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).

ParameterTypeDescription
package_name *stringThe name of the package to retrieve versions for.
package_type *stringThe 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 *stringThe 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).

ParameterTypeDescription
package_name *stringThe name of the package to retrieve.
package_type *stringThe 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 *integerThe unique numeric identifier for the specific package version.
username *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to delete a version from.
package_type *stringThe 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 *integerThe unique identifier of the package version to delete.
username *stringThe 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.

ParameterTypeDescription
package_name *stringThe name of the package to restore.
package_type *stringThe 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 *integerThe unique identifier of the package version to restore.
username *stringThe 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.

ParameterTypeDescription
username *stringThe GitHub username whose projects should be listed.
qstringFilter 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.

ParameterTypeDescription
project_number *integerThe unique numeric identifier for the project within the user's project collection.
username *stringThe 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.

ParameterTypeDescription
project_number *integerThe numeric identifier of the GitHub Projects (V2) board.
username *stringThe 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.

ParameterTypeDescription
data_type *stringThe data type for the field. Single select fields require at least one option to be provided via single_select_options.
name *stringThe name of the field to create.
project_number *integerThe numeric identifier of the project.
username *stringThe GitHub username of the project owner.
iteration_configurationobjectConfiguration settings for iteration fields, such as duration and start date. Required when data_type is 'iteration'.
single_select_optionsarrayThe 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.

ParameterTypeDescription
field_id *integerThe unique identifier of the field to retrieve from the project.
project_number *integerThe project's unique number identifier within the user's account.
username *stringThe 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.

ParameterTypeDescription
project_number *integerThe numeric identifier for the project.
username *stringThe GitHub username of the project owner.
fieldsRestrict 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.
qstringFilter 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.

ParameterTypeDescription
project_number *integerThe project's unique number identifier.
type *stringThe type of item being added to the project.
username *stringThe 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.

ParameterTypeDescription
item_id *integerThe unique identifier of the project item to retrieve.
project_number *integerThe project's unique number identifier.
username *stringThe GitHub username of the project owner.
fieldsComma-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.

ParameterTypeDescription
fields *arrayAn array of field updates to apply to the item. Each entry specifies a field and its new value.
item_id *integerThe unique identifier of the project item to update.
project_number *integerThe project's unique number identifier.
username *stringThe 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.

ParameterTypeDescription
item_id *integerThe unique numeric identifier of the project item to delete. This identifies which specific item within the project should be removed.
project_number *integerThe project number that identifies which project to modify. This is a unique numeric identifier for the project.
username *stringThe 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.

ParameterTypeDescription
project_number *integerThe numeric identifier for the project.
username *stringThe GitHub username or account handle.
view_number *integerThe numeric identifier for the project view.
fieldsRestrict 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe GitHub username whose repositories should be listed.
directionstringSort direction for the results. Use 'asc' for ascending order or 'desc' for descending order.
typestringFilter 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_premium_request_usage_report_user Get Premium Request Usage Report for User

Retrieve a premium request usage report for a GitHub user, with optional filtering by time period, model, or product. Only data from the past 24 months is available.

ParameterTypeDescription
username *stringThe GitHub username for which to retrieve the premium request usage report.
dayintegerFilter results to a specific day within the month. Must be a value between 1 and 31. If not specified, defaults to the current day.
modelstringFilter results by AI model name. The filter is case-insensitive.
monthintegerFilter results to a specific month within the year. Must be a value between 1 and 12. If not specified, defaults to the current month.
productstringFilter results by product name. The filter is case-insensitive.
yearintegerFilter results to a specific year. Must be a four-digit year value. If not specified, defaults to the current year.

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.

ParameterTypeDescription
username *stringThe GitHub username for which to retrieve the billing usage report.
dayintegerFilter 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.
monthintegerFilter 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.
yearintegerFilter 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.

ParameterTypeDescription
username *stringThe GitHub username for the account to retrieve billing usage for.
dayintegerFilter results to a specific day within the month. Specify as an integer between 1 and 31. Defaults to the current day if not provided.
monthintegerFilter results to a specific month within the year. Specify as an integer between 1 and 12. Defaults to the current month if not provided.
productstringFilter results by product name. The product name is case-insensitive.
skustringFilter results by SKU (stock keeping unit) identifier.
yearintegerFilter 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe 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.

ParameterTypeDescription
username *stringThe GitHub username whose starred repositories should be listed.
directionstringThe 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.

ParameterTypeDescription
username *stringThe GitHub username whose watched repositories should be listed.