GitHub (Personal Access Token) connector
Bearer TokenDeveloper ToolsCollaborationGitHub is a cloud-based Git repository hosting service that allows developers to store, manage, and track changes to their code. This variant...
GitHub (Personal Access Token) connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Make your first call
Section titled “Make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'githubpat'const identifier = 'user_123'// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'githubpat_gists_list',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "githubpat"identifier = "user_123"# Make your first callresult = actions.execute_tool(tool_input={},tool_name="githubpat_gists_list",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- Get workflow, webhook, team membership — Get a single workflow by its ID or filename
- Enable workflow — Enable a workflow that was previously disabled
- Disable workflow — Disable a workflow, preventing it from running until re-enabled
- List webhooks, sub issues, secret scanning alerts — List webhooks configured on a repository
- Update webhook, team, repo variable — Update the configuration, events, or active state of an existing repository webhook
- Ping webhook — Trigger a ping event to test that a repository webhook is configured correctly
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
githubpat_artifact_delete#Delete a workflow run artifact.3 params
Delete a workflow run artifact.
artifact_idnumberrequiredThe unique identifier of the artifactownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_artifact_get#Get a single workflow run artifact's metadata by its ID.3 params
Get a single workflow run artifact's metadata by its ID.
artifact_idnumberrequiredThe unique identifier of the artifactownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_artifacts_list#List artifacts produced by workflow runs in a repository.5 params
List artifacts produced by workflow runs in a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorynamestringoptionalFilter artifacts by exact match on their namepagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_branch_create#Create a new branch in a GitHub repository. Requires the SHA of the commit to branch from (typically the HEAD of main).4 params
Create a new branch in a GitHub repository. Requires the SHA of the commit to branch from (typically the HEAD of main).
branch_namestringrequiredName of the new branch to createownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryshastringrequiredThe SHA of the commit to branch from. Use the HEAD SHA of the base branch (e.g. main).githubpat_branch_get#Get details of a specific branch in a GitHub repository. Returns the branch name, latest commit SHA, and protection status.3 params
Get details of a specific branch in a GitHub repository. Returns the branch name, latest commit SHA, and protection status.
branchstringrequiredThe name of the branch to retrieveownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_branch_merge#Merge a branch (or commit) into another branch, creating a merge commit. Returns 204 when the base branch is already up to date and no merge was necessary.5 params
Merge a branch (or commit) into another branch, creating a merge commit. Returns 204 when the base branch is already up to date and no merge was necessary.
basestringrequiredThe name of the base branch that the head will be merged intoheadstringrequiredThe head to merge. This can be a branch name or a commit SHA1ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorycommit_messagestringoptionalCommit message to use for the merge commit. If omitted, a default message is usedgithubpat_branch_merge_upstream#Sync a branch of a forked repository to keep it up-to-date with the upstream repository.3 params
Sync a branch of a forked repository to keep it up-to-date with the upstream repository.
branchstringrequiredThe name of the branch which should be updated to match upstreamownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_branch_protection_delete#Remove all branch protection settings from a branch.3 params
Remove all branch protection settings from a branch.
branchstringrequiredThe name of the branchownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_branch_protection_get#Get the branch protection settings currently configured for a branch.3 params
Get the branch protection settings currently configured for a branch.
branchstringrequiredThe name of the branchownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_branch_protection_update#Protect a branch, or update an existing branch's protection settings. Protecting a branch requires admin or owner permissions.14 params
Protect a branch, or update an existing branch's protection settings. Protecting a branch requires admin or owner permissions.
branchstringrequiredThe name of the branchenforce_adminsbooleanrequiredEnforce all configured restrictions for administrators. Set to null to disableownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrequired_pull_request_reviewsobjectrequiredRequire at least one approving review before merging. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.required_status_checksobjectrequiredRequire status checks to pass before merging. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.restrictionsobjectrequiredRestrict who can push to the protected branch. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.allow_deletionsbooleanoptionalAllow users with push access to delete the branchallow_force_pushesbooleanoptionalPermit force pushes for all users with push accessallow_fork_syncingbooleanoptionalWhether users can pull changes from upstream when the branch is lockedblock_creationsbooleanoptionalRestrict pushes that create matching brancheslock_branchbooleanoptionalWhether to set the branch as read-only, preventing any pushes to itrequired_conversation_resolutionbooleanoptionalRequire all conversations on code to be resolved before a pull request can be mergedrequired_linear_historybooleanoptionalEnforce a linear commit history and prevent merge commits from being pushedgithubpat_branch_rename#Rename a branch in a repository. Tags and releases are not updated by this operation.4 params
Rename a branch in a repository. Tags and releases are not updated by this operation.
branchstringrequiredThe name of the branchnew_namestringrequiredThe new name of the branchownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_branches_list#List all branches in a GitHub repository. Returns branch names, commit SHAs, and protection status. Supports pagination.5 params
List all branches in a GitHub repository. Returns branch names, commit SHAs, and protection status. Supports pagination.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypageintegeroptionalPage number of results to return (default 1)per_pageintegeroptionalNumber of results per page (max 100, default 30)protectedbooleanoptionalFilter to only protected branchesgithubpat_check_run_create#Create a new check run for a specific commit in a repository. Creating a check run requires a GitHub App; OAuth apps and authenticated users are not able to create a check suite.8 params
Create a new check run for a specific commit in a repository. Creating a check run requires a GitHub App; OAuth apps and authenticated users are not able to create a check suite.
head_shastringrequiredThe SHA of the commitnamestringrequiredThe name of the check. For example, 'code-coverage'.ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryconclusionstringoptionalThe final conclusion of the check. Required if you provide completed_at or a status of completed.outputobjectoptionalCheck runs can accept a variety of data in the output object, including a title and summary, and can optionally provide descriptive details about the run.started_atstringoptionalThe time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.statusstringoptionalThe current status of the check run. Only GitHub Actions can set a status of waiting, pending, or requested.githubpat_check_run_get#Get a single check run using its id. OAuth app tokens and personal access tokens (classic) need the repo scope for private repositories.3 params
Get a single check run using its id. OAuth app tokens and personal access tokens (classic) need the repo scope for private repositories.
check_run_idnumberrequiredThe unique identifier of the check runownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_check_runs_list_for_ref#List check runs for a commit ref. The ref can be a SHA, branch name, or tag name.7 params
List check runs for a commit ref. The ref can be a SHA, branch name, or tag name.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME)repostringrequiredThe name of the repositorycheck_namestringoptionalReturns check runs with the specified namepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)statusstringoptionalReturns check runs with the specified statusgithubpat_code_scanning_alerts_list#List code scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and for private/internal repositories your token needs the security_events scope (public_repo is sufficient for public repositories).15 params
List code scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and for private/internal repositories your token needs the security_events scope (public_repo is sufficient for public repositories).
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryafterstringoptionalA cursor, as given in the Link response header. Only search for results after this cursor.assigneesstringoptionalComma-separated list of user handles to filter by, or '*' for alerts with at least one assignee, or 'none' for unassigned alertsbeforestringoptionalA cursor, as given in the Link response header. Only search for results before this cursor.directionstringoptionalThe direction to sort the results bypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)prnumberoptionalOnly list alerts for this pull request numberrefstringoptionalThe Git reference for the results, e.g. refs/heads/main or simply main. Use refs/pull/<number>/merge for a pull request.severitystringoptionalOnly list alerts with this severitysortstringoptionalThe property by which to sort the resultsstatestringoptionalOnly list alerts with this statetool_guidstringoptionalOnly list alerts from the code scanning tool with this GUID. Cannot be used together with tool_name.tool_namestringoptionalOnly list alerts from this code scanning tool. Cannot be used together with tool_guid.githubpat_collaborator_add#Add a user as a collaborator to a repository with a specified permission level. On organization-owned repositories this may create an invitation.4 params
Add a user as a collaborator to a repository with a specified permission level. On organization-owned repositories this may create an invitation.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryusernamestringrequiredThe username of the collaborator to addpermissionstringoptionalThe permission to grant the collaborator (only valid on organization-owned repositories)githubpat_collaborator_check#Check if a user is a collaborator on a repository. Returns a 404 if the user is not a collaborator.3 params
Check if a user is a collaborator on a repository. Returns a 404 if the user is not a collaborator.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryusernamestringrequiredThe handle for the GitHub user accountgithubpat_collaborator_remove#Remove a collaborator from a repository. Requires admin access to the repository.3 params
Remove a collaborator from a repository. Requires admin access to the repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryusernamestringrequiredThe username of the collaborator to removegithubpat_collaborators_list#List collaborators for a repository, optionally filtered by affiliation or permission level.6 params
List collaborators for a repository, optionally filtered by affiliation or permission level.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryaffiliationstringoptionalFilter collaborators by affiliation: outside, direct, or allpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)permissionstringoptionalFilter collaborators by permission levelgithubpat_commit_combined_status_get#Access a combined view of commit statuses for a given ref (SHA, branch name, or tag name). Returns a combined state of failure, pending, or success.5 params
Access a combined view of commit statuses for a given ref (SHA, branch name, or tag name). Returns a combined state of failure, pending, or success.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe commit SHA, branch name, or tag namerepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_commit_comment_create#Create a comment for a commit using its SHA. Triggers notifications.7 params
Create a comment for a commit using its SHA. Triggers notifications.
bodystringrequiredThe contents of the commentcommit_shastringrequiredThe SHA of the commit to comment onownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorylinenumberoptionalLine number in the file to comment on (deprecated, use position instead)pathstringoptionalRelative path of the file to comment onpositionnumberoptionalLine index in the diff to comment ongithubpat_commit_comment_delete#Delete a commit comment.3 params
Delete a commit comment.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_commit_comment_get#Get a single commit comment by its ID.3 params
Get a single commit comment by its ID.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_commit_comment_update#Update the text of an existing commit comment.4 params
Update the text of an existing commit comment.
bodystringrequiredThe contents of the commentcomment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_commit_comments_list#Lists the comments for a specified commit.5 params
Lists the comments for a specified commit.
commit_shastringrequiredThe SHA of the commitownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_commit_get#Get the contents of a single commit reference, including files changed and stats.5 params
Get the contents of a single commit reference, including files changed and stats.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe commit reference. Can be a commit SHA, branch name, or tag namerepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_commit_pull_requests_list#List the merged pull request that introduced a commit to a repository, plus unmerged pull requests that reference the commit.5 params
List the merged pull request that introduced a commit to a repository, plus unmerged pull requests that reference the commit.
commit_shastringrequiredThe SHA of the commitownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_commit_status_create#Create a commit status for a given SHA. Requires push access to the repository. Limited to 1000 statuses per sha and context.7 params
Create a commit status for a given SHA. Requires push access to the repository. Limited to 1000 statuses per sha and context.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryshastringrequiredThe commit SHA to create a status forstatestringrequiredThe state of the statuscontextstringoptionalA string label to differentiate this status from the status of other systemsdescriptionstringoptionalA short description of the statustarget_urlstringoptionalThe target URL to associate with this status, linked from the GitHub UIgithubpat_commit_statuses_list#Lists commit statuses for a given ref (SHA, branch name, or tag name). Statuses are returned in reverse chronological order; the first status is the latest.5 params
Lists commit statuses for a given ref (SHA, branch name, or tag name). Statuses are returned in reverse chronological order; the first status is the latest.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe commit SHA, branch name, or tag namerepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_commits_compare#Compare two commits against one another. Equivalent to running 'git log BASE..HEAD', returning commits in chronological order along with details of changed files.5 params
Compare two commits against one another. Equivalent to running 'git log BASE..HEAD', returning commits in chronological order along with details of changed files.
baseheadstringrequiredThe base branch and head branch to compare, in the format BASE...HEAD. Both must be branch names in repo, or USERNAME:BASE...USERNAME:HEAD to compare across forksownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_commits_list#List commits on a repository, optionally filtered by SHA/branch, file path, author, or a date range.9 params
List commits on a repository, optionally filtered by SHA/branch, file path, author, or a date range.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryauthorstringoptionalGitHub username or email address to use to filter by commit authorpagenumberoptionalPage number of results to fetchpathstringoptionalOnly commits containing this file path will be returnedper_pagenumberoptionalNumber of results per page (max 100)shastringoptionalSHA or branch to start listing commits from. Default: the repository's default branch (usually main).sincestringoptionalOnly show results that were last updated after the given time. Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZuntilstringoptionalOnly commits before this date will be returned. Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZgithubpat_dependabot_alerts_list#List Dependabot alerts for a repository. To use this endpoint, you must have read access to the repository, and for private repositories your token needs the security_events scope (public_repo is sufficient for public repositories).18 params
List Dependabot alerts for a repository. To use this endpoint, you must have read access to the repository, and for private repositories your token needs the security_events scope (public_repo is sufficient for public repositories).
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryafterstringoptionalA cursor, as given in the Link response header. Only search for results after this cursor.assigneestringoptionalFilter by assignee username, '*' for any assignee, or 'none' for unassignedbeforestringoptionalA cursor, as given in the Link response header. Only search for results before this cursor.classificationstringoptionalComma-separated list of vulnerability classifications to filter bydirectionstringoptionalThe direction to sort the results byecosystemstringoptionalComma-separated list of package ecosystems to filter byepss_percentagestringoptionalFilter by EPSS percentage: an exact number, a comparator expression (>n, <n, >=n, <=n), or a range (n..n), where n is between 0.0 and 1.0hasstringoptionalFilter alerts that have the given attribute. Currently only 'patch' is supported (alerts for which a patch is available).manifeststringoptionalComma-separated list of full manifest file paths to filter bypackagestringoptionalComma-separated list of package names to filter byper_pagenumberoptionalNumber of results per page (max 100)relationshipstringoptionalComma-separated list of relationships of the vulnerable dependency to your project (e.g. direct, transitive) to filter byscopestringoptionalThe scope of the vulnerable dependency to filter byseveritystringoptionalComma-separated list of severities to filter bysortstringoptionalThe property by which to sort the resultsstatestringoptionalComma-separated list of states to filter bygithubpat_deployment_create#Create a deployment for a ref (branch, tag, or SHA). Deployments offer a way to track the status of code as it is deployed to different environments.11 params
Create a deployment for a ref (branch, tag, or SHA). Deployments offer a way to track the status of code as it is deployed to different environments.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe ref to deploy. This can be a branch, tag, or SHArepostringrequiredThe name of the repositoryauto_mergebooleanoptionalAttempts to automatically merge the default branch into the requested ref, if it is behind the default branchdescriptionstringoptionalShort description of the deploymentenvironmentstringoptionalName for the target deployment environment (e.g., production, staging, qa)payloadobjectoptionalJSON payload with extra information about the deploymentproduction_environmentbooleanoptionalSpecifies if the given environment is one that end-users directly interact withrequired_contextsarrayoptionalStatus contexts to verify against commit status checks. Pass an empty array to bypass checking entirely. Defaults to all unique contextstaskstringoptionalSpecifies a task to execute (e.g., deploy or deploy:migrations)transient_environmentbooleanoptionalSpecifies if the given environment is specific to this deployment and will no longer exist at some point in the futuregithubpat_deployment_delete#Delete a deployment. Only inactive deployments can be deleted; transition the deployment to inactive first.3 params
Delete a deployment. Only inactive deployments can be deleted; transition the deployment to inactive first.
deployment_idnumberrequiredThe unique identifier of the deploymentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_deployment_get#Get a single deployment by its ID.3 params
Get a single deployment by its ID.
deployment_idnumberrequiredThe unique identifier of the deploymentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_deployment_status_create#Create a new status for a deployment, used to track the deployment's progress through states like in_progress, success, or failure.9 params
Create a new status for a deployment, used to track the deployment's progress through states like in_progress, success, or failure.
deployment_idnumberrequiredThe unique identifier of the deploymentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorystatestringrequiredThe state of the statusauto_inactivebooleanoptionalAdds an inactive status to all prior non-transient, non-production deployments with the same repository and environment namedescriptionstringoptionalA short description of the status. Maximum 140 charactersenvironmentstringoptionalName for the target deployment environment, which can be changed when setting a deploy statusenvironment_urlstringoptionalSets the URL for accessing your environmentlog_urlstringoptionalThe full URL of the deployment's output, shown while the task runs or as historical information afterwardgithubpat_deployments_list#List deployments for a repository, optionally filtered by ref, task, or environment.8 params
List deployments for a repository, optionally filtered by ref, task, or environment.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryenvironmentstringoptionalThe name of the environment that was deployed to (e.g., staging or production)pagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)refstringoptionalThe name of the ref, branch, or tagshastringoptionalThe SHA recorded at creation timetaskstringoptionalThe name of the task for the deployment (e.g., deploy or deploy:migrations)githubpat_environment_create_update#Create a new deployment environment on a repository, or update an existing one's protection rules (wait timer, required reviewers, deployment branch policy). Environment creation requires admin access to the repository.7 params
Create a new deployment environment on a repository, or update an existing one's protection rules (wait timer, required reviewers, deployment branch policy). Environment creation requires admin access to the repository.
environment_namestringrequiredThe name of the environment to create or updateownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorydeployment_branch_policyobjectoptionalRestricts which branches/tags can deploy to this environment. Set to null to allow all branches to deploy. Shape: {"protected_branches": bool, "custom_branch_policies": bool} — exactly one of the two booleans may be true.prevent_self_reviewbooleanoptionalWhether or not a user who created the job is prevented from approving their own jobreviewersarrayoptionalUp to 6 users or teams that must approve deployments to this environment. Each item is an object like {"type": "User", "id": 123} or {"type": "Team", "id": 456}, where id is the numeric user or team id.wait_timernumberoptionalThe amount of time (in minutes, 0-43200) to delay a job after the job is initially triggeredgithubpat_environments_list#List the deployment environments configured for a repository (e.g. staging, production), including their protection rules.4 params
List the deployment environments configured for a repository (e.g. staging, production), including their protection rules.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_file_contents_get#Get the contents of a file or directory from a GitHub repository. Returns Base64 encoded content for files.4 params
Get the contents of a file or directory from a GitHub repository. Returns Base64 encoded content for files.
ownerstringrequiredThe account owner of the repositorypathstringrequiredThe content path (file or directory path in the repository)repostringrequiredThe name of the repositoryrefstringoptionalThe name of the commit/branch/taggithubpat_file_create_update#Create a new file or update an existing file in a GitHub repository. Content must be Base64 encoded. Requires SHA when updating existing files.9 params
Create a new file or update an existing file in a GitHub repository. Content must be Base64 encoded. Requires SHA when updating existing files.
contentstringrequiredThe new file content (Base64 encoded)messagestringrequiredThe commit message for this changeownerstringrequiredThe account owner of the repositorypathstringrequiredThe file path in the repositoryrepostringrequiredThe name of the repositoryauthorobjectoptionalAuthor information object with name and emailbranchstringoptionalThe branch namecommitterobjectoptionalCommitter information object with name and emailshastringoptionalThe blob SHA of the file being replaced (required when updating existing files)githubpat_file_delete#Delete a file in a repository. Requires the blob SHA of the file being deleted.6 params
Delete a file in a repository. Requires the blob SHA of the file being deleted.
messagestringrequiredThe commit messageownerstringrequiredThe account owner of the repositorypathstringrequiredThe path to the file to deleterepostringrequiredThe name of the repositoryshastringrequiredThe blob SHA of the file being deletedbranchstringoptionalThe branch name. Default: the repository's default branchgithubpat_gist_comment_create#Create a comment on a gist.2 params
Create a comment on a gist.
bodystringrequiredThe comment textgist_idstringrequiredThe unique identifier of the gistgithubpat_gist_comment_delete#Delete a gist comment.2 params
Delete a gist comment.
comment_idnumberrequiredThe unique identifier of the commentgist_idstringrequiredThe unique identifier of the gistgithubpat_gist_comment_update#Update the text of an existing gist comment.3 params
Update the text of an existing gist comment.
bodystringrequiredThe comment textcomment_idnumberrequiredThe unique identifier of the commentgist_idstringrequiredThe unique identifier of the gistgithubpat_gist_comments_list#List comments left on a gist.3 params
List comments left on a gist.
gist_idstringrequiredThe unique identifier of the gistpagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_gist_create#Create a new gist with one or more files. Files are provided as a map of filename to an object containing the file's content.3 params
Create a new gist with one or more files. Files are provided as a map of filename to an object containing the file's content.
filesobjectrequiredNames and content for the files that make up the gist. Each key is a filename, mapped to an object with a 'content' field.descriptionstringoptionalDescription of the gistpublicbooleanoptionalFlag indicating whether the gist is publicgithubpat_gist_delete#Permanently delete a gist owned by the authenticated user.1 param
Permanently delete a gist owned by the authenticated user.
gist_idstringrequiredThe unique identifier of the gist to deletegithubpat_gist_get#Get a specified gist by its ID.1 param
Get a specified gist by its ID.
gist_idstringrequiredThe unique identifier of the gistgithubpat_gist_star#Star a gist for the authenticated user.1 param
Star a gist for the authenticated user.
gist_idstringrequiredThe unique identifier of the gistgithubpat_gist_unstar#Unstar a gist for the authenticated user.1 param
Unstar a gist for the authenticated user.
gist_idstringrequiredThe unique identifier of the gistgithubpat_gist_update#Update a gist's description and/or update, rename, or delete its files. Files from the previous version that aren't explicitly changed remain unchanged. At least one of description or files is required.3 params
Update a gist's description and/or update, rename, or delete its files. Files from the previous version that aren't explicitly changed remain unchanged. At least one of description or files is required.
gist_idstringrequiredThe unique identifier of the gist to updatedescriptionstringoptionalThe description of the gistfilesobjectoptionalThe gist files to be updated, renamed, or deleted. Each key must match the current filename of the targeted gist file. To delete a file, set its value to null.githubpat_gists_list#List the authenticated user's gists, sorted by most recently updated to least recently updated.3 params
List the authenticated user's gists, sorted by most recently updated to least recently updated.
pagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sincestringoptionalOnly show results updated after the given time (ISO 8601 format)githubpat_git_blob_create#Create a Git blob object in a repository. Requires push access to the repository.4 params
Create a Git blob object in a repository. Requires push access to the repository.
contentstringrequiredThe new blob's contentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryencodingstringoptionalThe encoding used for content. Currently utf-8 and base64 are supportedgithubpat_git_commit_create#Creates a new Git commit object. Requires push access to the repository.6 params
Creates a new Git commit object. Requires push access to the repository.
messagestringrequiredThe commit messageownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytreestringrequiredThe SHA of the tree object this commit points toauthorobjectoptionalInformation about the author of the commit: name, email, and optional ISO 8601 date. By default the author is the authenticated user and the current date. Expected shape: {"name": "Monalisa Octocat", "email": "octocat@github.com", "date": "2008-07-09T16:13:30+12:00"}parentsarrayoptionalThe full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit is written as a root commit. Provide an array of one SHA for a normal commit, or more than one for a merge commit. Expected shape: ["7d1b31e74ee336d15cbd21741bc88a537ed063a0"]githubpat_git_ref_delete#Deletes the provided reference. This permanently removes a branch or tag ref from the Git database.3 params
Deletes the provided reference. This permanently removes a branch or tag ref from the Git database.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe reference name, formatted as heads/<branch name> or tags/<tag name>repostringrequiredThe name of the repositorygithubpat_git_ref_get#Returns a single reference from the Git database. The ref must be formatted as heads/<branch name> for branches and tags/<tag name> for tags.3 params
Returns a single reference from the Git database. The ref must be formatted as heads/<branch name> for branches and tags/<tag name> for tags.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe reference name, formatted as heads/<branch name> or tags/<tag name>repostringrequiredThe name of the repositorygithubpat_git_ref_update#Updates the provided reference to point to a new SHA. Leaving force out or false ensures the update is a fast-forward update.5 params
Updates the provided reference to point to a new SHA. Leaving force out or false ensures the update is a fast-forward update.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe reference name, formatted as heads/<branch name> or tags/<tag name>repostringrequiredThe name of the repositoryshastringrequiredThe SHA1 value to set this reference toforcebooleanoptionalIndicates whether to force the update or to make sure the update is a fast-forward updategithubpat_git_tag_create#Create a Git tag object in the repository's low-level Git database (an annotated tag). Note this only creates the tag object itself — to make it a real ref you can list/checkout, also create a matching reference at refs/tags/<tag> pointing at this tag object's SHA.9 params
Create a Git tag object in the repository's low-level Git database (an annotated tag). Note this only creates the tag object itself — to make it a real ref you can list/checkout, also create a matching reference at refs/tags/<tag> pointing at this tag object's SHA.
messagestringrequiredThe tag messageobjectstringrequiredThe SHA of the git object this is taggingownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytagstringrequiredThe tag's name, typically a version such as 'v0.0.1'typestringrequiredThe type of the object being taggedtagger_datestringoptionalWhen this tag was created, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZtagger_emailstringoptionalEmail of the person creating the tag. Required if any tagger field is provided.tagger_namestringoptionalName of the person creating the tag. Required if any tagger field is provided.githubpat_git_tag_get#Get a single Git tag object from the repository's low-level Git database by its SHA. Note this returns the annotated tag object, not the tag ref itself.3 params
Get a single Git tag object from the repository's low-level Git database by its SHA. Note this returns the annotated tag object, not the tag ref itself.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytag_shastringrequiredThe SHA of the tag object to retrievegithubpat_git_tree_create#Creates a Git tree object, accepting nested entries. If both a tree and a nested path modifying that tree are specified, this overwrites the contents of the tree and creates a new tree structure. Returns an error if trying to delete a file that does not exist.4 params
Creates a Git tree object, accepting nested entries. If both a tree and a nested path modifying that tree are specified, this overwrites the contents of the tree and creates a new tree structure. Returns an error if trying to delete a file that does not exist.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytreearrayrequiredArray of objects specifying a tree structure, each with path, mode (100644 file, 100755 executable, 040000 subdirectory, 160000 submodule, 120000 symlink), type (blob, tree, or commit), and either sha or content. Expected shape: [{"path": "file.rb", "mode": "100644", "type": "blob", "sha": "44b4fc6d56897b048c772eb4087f854f46256132"}]base_treestringoptionalThe SHA1 of an existing Git tree object to use as the base for the new tree. If provided, a new tree is created from entries in base_tree plus entries in the tree parameter (which overwrite base_tree entries with the same path). If omitted, only entries in tree are used, and any files from the parent commit not defined in tree will be listed as deleted.githubpat_git_tree_get#Get a Git tree by its SHA or ref. Optionally return the full recursive tree including all subtrees.4 params
Get a Git tree by its SHA or ref. Optionally return the full recursive tree including all subtrees.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytree_shastringrequiredThe SHA1 value or ref (branch or tag) name of the treerecursivebooleanoptionalWhether to recursively return objects or subtrees referenced by the treegithubpat_gitignore_template_get#Get the content of a gitignore template by name.1 param
Get the content of a gitignore template by name.
namestringrequiredThe name of the gitignore templategithubpat_gitignore_templates_list#List all gitignore templates available to pass as an option when creating a repository.0 params
List all gitignore templates available to pass as an option when creating a repository.
githubpat_issue_assignees_add#Add up to 10 assignees to an issue. Users already assigned remain assigned; only users with push access are actually added.4 params
Add up to 10 assignees to an issue. Users already assigned remain assigned; only users with push access are actually added.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryassigneesarrayoptionalUsernames of people to assign to this issuegithubpat_issue_assignees_remove#Remove one or more assignees from an issue.4 params
Remove one or more assignees from an issue.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryassigneesarrayoptionalUsernames of assignees to remove from the issuegithubpat_issue_comment_create#Create a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.4 params
Create a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.
bodystringrequiredThe contents of the commentissue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_comment_delete#Delete a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.3 params
Delete a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_comment_get#Get a single issue comment by its ID.3 params
Get a single issue comment by its ID.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_comment_update#Update a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.4 params
Update a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.
bodystringrequiredThe contents of the commentcomment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_comments_list#List comments on an issue or pull request, ordered by ascending ID. Every pull request is an issue, but not every issue is a pull request.6 params
List comments on an issue or pull request, ordered by ascending ID. Every pull request is an issue, but not every issue is a pull request.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sincestringoptionalOnly show comments updated after this timestamp (ISO 8601 format)githubpat_issue_create#Create a new issue in a repository. Requires push access to set assignees, milestones, and labels.8 params
Create a new issue in a repository. Requires push access to set assignees, milestones, and labels.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytitlestringrequiredThe title of the issueassigneesarrayoptionalGitHub usernames to assign to the issuebodystringoptionalThe contents of the issuelabelsarrayoptionalLabels to associate with the issuemilestonenumberoptionalMilestone number to associate with the issuetypestringoptionalThe name of the issue typegithubpat_issue_events_list#List events for an issue, such as labeling, assignment, and milestone changes.5 params
List events for an issue, such as labeling, assignment, and milestone changes.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_issue_get#Get a single issue in a repository by its number. Both issues and pull requests are returned as issues in the GitHub API.3 params
Get a single issue in a repository by its number. Both issues and pull requests are returned as issues in the GitHub API.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_label_remove#Remove a single label from an issue.4 params
Remove a single label from an issue.
issue_numbernumberrequiredThe number that identifies the issuelabel_namestringrequiredThe name of the labelownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_labels_add#Add labels to an issue, appending to any existing labels. To replace all labels instead, use github_issue_labels_set.4 params
Add labels to an issue, appending to any existing labels. To replace all labels instead, use github_issue_labels_set.
issue_numbernumberrequiredThe number that identifies the issuelabelsarrayrequiredThe names of the labels to add to the issue's existing labelsownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_labels_remove_all#Remove all labels from an issue.3 params
Remove all labels from an issue.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_labels_set#Remove any previous labels and set the new labels for an issue. Pass an empty array to remove all labels.4 params
Remove any previous labels and set the new labels for an issue. Pass an empty array to remove all labels.
issue_numbernumberrequiredThe number that identifies the issuelabelsarrayrequiredThe names of the labels to set for the issue, replacing any existing labels. Pass an empty array to remove all labelsownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_lock#Lock an issue or pull request conversation to prevent further comments from being added. Only users with push access can lock an issue or pull request conversation.4 params
Lock an issue or pull request conversation to prevent further comments from being added. Only users with push access can lock an issue or pull request conversation.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorylock_reasonstringoptionalThe reason for locking the issue or pull request conversationgithubpat_issue_reaction_create#Create a reaction (emoji) to an issue. If you create a reaction that already exists on this issue, GitHub responds with a 200 OK and returns the existing reaction instead of creating a duplicate.4 params
Create a reaction (emoji) to an issue. If you create a reaction that already exists on this issue, GitHub responds with a 200 OK and returns the existing reaction instead of creating a duplicate.
contentstringrequiredThe reaction type to add to the issueissue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_reaction_list#List the reactions (emoji) left on an issue. Optionally filter to a single reaction type.6 params
List the reactions (emoji) left on an issue. Optionally filter to a single reaction type.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorycontentstringoptionalFilter results to only include reactions of this typepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_issue_timeline_list#List timeline events for an issue, including comments, cross-references, and state changes, in chronological order.5 params
List timeline events for an issue, including comments, cross-references, and state changes, in chronological order.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_issue_unlock#Unlock an issue, allowing new comments from users who are not collaborators.3 params
Unlock an issue, allowing new comments from users who are not collaborators.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_issue_update#Update an existing issue in a repository. Issue owners and users with push access or Triage role can edit an issue.10 params
Update an existing issue in a repository. Issue owners and users with push access or Triage role can edit an issue.
issue_numbernumberrequiredThe number that identifies the issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryassigneesarrayoptionalUsernames to replace the set of assignees on this issue. Send an empty array to clear all assigneesbodystringoptionalThe contents of the issuelabelsarrayoptionalLabels to replace the set of labels on this issue. Send an empty array to clear all labelsmilestonenumberoptionalMilestone number to associate with the issue, or null to remove the current milestonestatestringoptionalThe open or closed state of the issuestate_reasonstringoptionalThe reason for the state change. Ignored unless state is changedtitlestringoptionalThe title of the issuegithubpat_issues_list#List issues in a repository. Both issues and pull requests are returned as issues in the GitHub API.12 params
List issues in a repository. Both issues and pull requests are returned as issues in the GitHub API.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryassigneestringoptionalFilter by assigned usercreatorstringoptionalFilter by issue creatordirectionstringoptionalSort orderlabelsstringoptionalFilter by comma-separated list of label namesmilestonestringoptionalFilter by milestone number or statepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sincestringoptionalShow issues updated after this timestamp (ISO 8601 format)sortstringoptionalProperty to sort issues bystatestringoptionalFilter by issue stategithubpat_label_create#Create a label for a repository with the given name and color. The name and color are required; color must be a hexadecimal code without the leading '#'.5 params
Create a label for a repository with the given name and color. The name and color are required; color must be a hexadecimal code without the leading '#'.
namestringrequiredThe name of the labelownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorycolorstringoptionalThe hexadecimal color code for the label, without the leading '#'descriptionstringoptionalA short description of the label. Must be 100 characters or fewergithubpat_label_delete#Delete a label from a repository using the given label name.3 params
Delete a label from a repository using the given label name.
namestringrequiredThe name of the label to deleteownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_label_get#Get a single label by name.3 params
Get a single label by name.
label_namestringrequiredThe name of the labelownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_label_update#Update a label in a repository using its current name.6 params
Update a label in a repository using its current name.
namestringrequiredThe current name of the label to updateownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorycolorstringoptionalThe hexadecimal color code for the label, without the leading '#'descriptionstringoptionalA short description of the label. Must be 100 characters or fewernew_namestringoptionalThe new name of the labelgithubpat_labels_list#List all labels for a repository.4 params
List all labels for a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_license_get#Get information about a specific open source license by its SPDX keyword (e.g. 'mit').1 param
Get information about a specific open source license by its SPDX keyword (e.g. 'mit').
licensestringrequiredThe license keyword (SPDX id)githubpat_milestone_create#Create a milestone in a repository.6 params
Create a milestone in a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytitlestringrequiredThe title of the milestonedescriptionstringoptionalA description of the milestonedue_onstringoptionalThe milestone due date, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZstatestringoptionalThe state of the milestone. Either open or closedgithubpat_milestone_delete#Delete a milestone from a repository using the given milestone number.3 params
Delete a milestone from a repository using the given milestone number.
milestone_numbernumberrequiredThe number that identifies the milestoneownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_milestone_get#Get a single milestone by its number.3 params
Get a single milestone by its number.
milestone_numbernumberrequiredThe number that identifies the milestoneownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_milestone_update#Update a milestone in a repository using the given milestone number. All fields are optional.7 params
Update a milestone in a repository using the given milestone number. All fields are optional.
milestone_numbernumberrequiredThe number that identifies the milestoneownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorydescriptionstringoptionalA description of the milestonedue_onstringoptionalThe milestone due date, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZstatestringoptionalThe state of the milestone. Either open or closedtitlestringoptionalThe title of the milestonegithubpat_milestones_list#List milestones for a repository, with optional filtering by state and sorting.7 params
List milestones for a repository, with optional filtering by state and sorting.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorydirectionstringoptionalThe direction of the sort. Either asc or descpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalWhat to sort results by. Either due_on or completenessstatestringoptionalThe state of the milestone. Either open, closed, or allgithubpat_notifications_list#List notifications for the authenticated user across all repositories they have access to. By default only unread notifications are returned.6 params
List notifications for the authenticated user across all repositories they have access to. By default only unread notifications are returned.
allbooleanoptionalIf true, show notifications marked as readbeforestringoptionalOnly show notifications updated before this time, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZpagenumberoptionalPage number of results to fetchparticipatingbooleanoptionalIf true, only show notifications in which the user is directly participating or mentionedper_pagenumberoptionalNumber of results per page (max 50)sincestringoptionalOnly show results updated after this time, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZgithubpat_org_get#Get information about an organization, including its profile details, billing settings visibility, and security settings.1 param
Get information about an organization, including its profile details, billing settings visibility, and security settings.
orgstringrequiredThe organization name (case-insensitive)githubpat_org_issue_types_list#List the issue types (e.g. Bug, Feature, Task) configured for an organization. Issue types can be assigned to issues to categorize them.1 param
List the issue types (e.g. Bug, Feature, Task) configured for an organization. Issue types can be assigned to issues to categorize them.
orgstringrequiredThe organization name (case-insensitive)githubpat_org_issues_list#List issues in an organization assigned to the authenticated user, across all visible repositories.9 params
List issues in an organization assigned to the authenticated user, across all visible repositories.
orgstringrequiredThe organization name (case-insensitive)directionstringoptionalThe direction to sort the results byfilterstringoptionalIndicates which sorts of issues to returnlabelsstringoptionalA list of comma separated label namespagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)sincestringoptionalOnly show results updated after this time (ISO 8601 format)sortstringoptionalWhat to sort results bystatestringoptionalIndicates the state of the issues to returngithubpat_org_member_remove#Remove a member from an organization. Removing them will also remove them from all teams and revoke access to organization repositories.2 params
Remove a member from an organization. Removing them will also remove them from all teams and revoke access to organization repositories.
orgstringrequiredThe organization name (case-insensitive)usernamestringrequiredThe handle for the GitHub user accountgithubpat_org_members_list#List all users who are members of an organization. If the authenticated user is also a member, both concealed and public members are returned.5 params
List all users who are members of an organization. If the authenticated user is also a member, both concealed and public members are returned.
orgstringrequiredThe organization name (case-insensitive)filterstringoptionalFilter members returned in the list. 2fa_disabled means only members without two-factor authentication enabled will be returned (organization owners only).pagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)rolestringoptionalFilter members returned by their rolegithubpat_org_membership_get#Get a user's membership with an organization. The authenticated user must be an organization member. The response's 'state' field identifies the user's membership status.2 params
Get a user's membership with an organization. The authenticated user must be an organization member. The response's 'state' field identifies the user's membership status.
orgstringrequiredThe organization name (case-insensitive)usernamestringrequiredThe handle for the GitHub user accountgithubpat_org_membership_set#Add or update a user's membership in an organization, optionally inviting them if they are not already a member.3 params
Add or update a user's membership in an organization, optionally inviting them if they are not already a member.
orgstringrequiredThe organization name (case-insensitive)usernamestringrequiredThe handle for the GitHub user accountrolestringoptionalThe role to give the user in the organizationgithubpat_org_update#Update the profile and settings of an organization. Requires admin access.11 params
Update the profile and settings of an organization. Requires admin access.
orgstringrequiredThe organization name (case-insensitive)billing_emailstringoptionalBilling email address; not publicizedcompanystringoptionalThe company namedefault_repository_permissionstringoptionalDefault permission level members have for organization repositoriesdescriptionstringoptionalThe description of the company. Maximum 160 charactersemailstringoptionalThe publicly visible email addresshas_organization_projectsbooleanoptionalWhether an organization can use organization projectshas_repository_projectsbooleanoptionalWhether repositories that belong to the organization can use repository projectslocationstringoptionalThe locationmembers_can_create_repositoriesbooleanoptionalWhether non-admin organization members can create repositoriesnamestringoptionalThe shorthand name of the companygithubpat_public_repos_list#List public repositories for a specified user. Does not require authentication.6 params
List public repositories for a specified user. Does not require authentication.
usernamestringrequiredThe GitHub username to list repositories fordirectionstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalProperty to sort repositories bytypestringoptionalFilter repositories by typegithubpat_pull_request_branch_update#Update a pull request branch with the latest upstream changes by merging the base branch into the head branch, asynchronously.4 params
Update a pull request branch with the latest upstream changes by merging the base branch into the head branch, asynchronously.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryexpected_head_shastringoptionalThe expected SHA of the pull request's HEAD ref. Default: the SHA of the pull request's current HEAD refgithubpat_pull_request_comment_create#Create a review comment on the diff of a specified pull request at a specific line. Use line and side (and optionally start_line/start_side for multi-line comments); the position parameter is deprecated in favor of line.11 params
Create a review comment on the diff of a specified pull request at a specific line. Use line and side (and optionally start_line/start_side for multi-line comments); the position parameter is deprecated in favor of line.
bodystringrequiredThe text of the review commentcommit_idstringrequiredThe SHA of the commit needing a comment. Not using the latest commit SHA may render the comment outdated if a later commit modifies the specified lineownerstringrequiredThe account owner of the repositorypathstringrequiredThe relative path to the file that necessitates a commentpull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorylinenumberoptionalThe line of the blob in the pull request diff that the comment applies to. Required unless using subject_type:file. For a multi-line comment, the last line of the rangepositionnumberoptionalDeprecated. The position in the diff where you want to add a review comment, counted from the first @@ hunk header. Use line insteadsidestringoptionalIn a split diff view, the side of the diff the changes appear on. LEFT for deletions, RIGHT for additions or unchanged context linesstart_linenumberoptionalRequired when using multi-line comments unless using in_reply_to. The first line in the pull request diff that the multi-line comment applies tostart_sidestringoptionalRequired when using multi-line comments unless using in_reply_to. The starting side of the diff the comment applies togithubpat_pull_request_commits_list#List the commits on a pull request. Results may not include all commits on very large pull requests.5 params
List the commits on a pull request. Results may not include all commits on very large pull requests.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_pull_request_create#Create a new pull request in a repository. Requires write access to the head branch.8 params
Create a new pull request in a repository. Requires write access to the head branch.
basestringrequiredThe name of the branch you want the changes pulled intoheadstringrequiredThe name of the branch where your changes are implemented (format: user:branch)ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorybodystringoptionalThe contents of the pull request descriptiondraftbooleanoptionalIndicates whether the pull request is a draftmaintainer_can_modifybooleanoptionalIndicates whether maintainers can modify the pull requesttitlestringoptionalThe title of the pull requestgithubpat_pull_request_files_list#List the files changed in a specified pull request. Responses include a maximum of 3000 files, paginated at 30 files per page by default.5 params
List the files changed in a specified pull request. Responses include a maximum of 3000 files, paginated at 30 files per page by default.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_pull_request_get#Get details of a pull request by its number, including mergeable status, commits, and metadata.3 params
Get details of a pull request by its number, including mergeable status, commits, and metadata.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorygithubpat_pull_request_merge#Merge a pull request into its base branch using the merge, squash, or rebase method.7 params
Merge a pull request into its base branch using the merge, squash, or rebase method.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorycommit_messagestringoptionalExtra detail to append to automatic merge commit messagecommit_titlestringoptionalTitle for the automatic merge commit messagemerge_methodstringoptionalThe merge method to useshastringoptionalSHA that pull request head must match to allow mergegithubpat_pull_request_merge_check#Checks if a pull request has been merged into the base branch. GitHub signals this via HTTP status only: 204 means merged, 404 means the pull request has not been merged (this is a normal, non-error outcome, not a failure).3 params
Checks if a pull request has been merged into the base branch. GitHub signals this via HTTP status only: 204 means merged, 404 means the pull request has not been merged (this is a normal, non-error outcome, not a failure).
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorygithubpat_pull_request_requested_reviewers_list#Get the users and teams whose review has been requested but not yet given for a pull request.3 params
Get the users and teams whose review has been requested but not yet given for a pull request.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorygithubpat_pull_request_review_comment_delete#Delete a pull request review comment.3 params
Delete a pull request review comment.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_pull_request_review_comment_get#Get a single review comment on a pull request by its ID.3 params
Get a single review comment on a pull request by its ID.
comment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_pull_request_review_comment_update#Update the text of a pull request review comment.4 params
Update the text of a pull request review comment.
bodystringrequiredThe text of the reply to the review commentcomment_idnumberrequiredThe unique identifier of the commentownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_pull_request_review_comments_list#List review comments left on a pull request's diff.8 params
List review comments left on a pull request's diff.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorydirectionstringoptionalThe direction to sort results bypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)sincestringoptionalOnly show results updated after this time (ISO 8601 format)sortstringoptionalThe property to sort results bygithubpat_pull_request_review_create#Create a review on a pull request. Leave event blank to create a PENDING review that must later be submitted, or set event to APPROVE, REQUEST_CHANGES, or COMMENT to submit it immediately.7 params
Create a review on a pull request. Leave event blank to create a PENDING review that must later be submitted, or set event to APPROVE, REQUEST_CHANGES, or COMMENT to submit it immediately.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorybodystringoptionalThe body text of the review. Required when event is REQUEST_CHANGES or COMMENTcommentsarrayoptionalDraft review comments specifying the location, destination, and contents of inline comments. Each item needs path and body, plus line/position to locate the diff linecommit_idstringoptionalThe SHA of the commit that needs a review. Defaults to the most recent commit in the pull request when not specifiedeventstringoptionalThe review action to perform. Leave blank to create a PENDING reviewgithubpat_pull_request_review_delete#Delete a pull request review that is still pending (has not been submitted).4 params
Delete a pull request review that is still pending (has not been submitted).
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreview_idnumberrequiredThe unique identifier of the reviewgithubpat_pull_request_review_dismiss#Dismiss a review on a pull request. Dismissed reviews no longer count toward required review approvals.6 params
Dismiss a review on a pull request. Dismissed reviews no longer count toward required review approvals.
messagestringrequiredThe message for the pull request review dismissalownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreview_idnumberrequiredThe unique identifier of the revieweventstringoptionalThe dismissal eventgithubpat_pull_request_review_get#Get a single review left on a pull request by its ID.4 params
Get a single review left on a pull request by its ID.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreview_idnumberrequiredThe unique identifier of the reviewgithubpat_pull_request_review_submit#Submit a pending review for a pull request that was previously created without an event (PENDING state).6 params
Submit a pending review for a pull request that was previously created without an event (PENDING state).
eventstringrequiredThe review action to perform. Leaving this blank returns HTTP 422 since a submitted review requires an actionownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreview_idnumberrequiredThe unique identifier of the pending review to submitbodystringoptionalThe body text of the pull request reviewgithubpat_pull_request_review_update#Update the body text of an existing pull request review.5 params
Update the body text of an existing pull request review.
bodystringrequiredThe body text of the pull request reviewownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreview_idnumberrequiredThe unique identifier of the reviewgithubpat_pull_request_reviewers_remove#Remove requested reviewers, users and/or teams, from a pull request.5 params
Remove requested reviewers, users and/or teams, from a pull request.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreviewersarrayrequiredAn array of user logins whose review requests will be removedteam_reviewersarrayoptionalAn array of team slugs whose review requests will be removedgithubpat_pull_request_reviewers_request#Request reviews for a pull request from a given set of users and/or teams. Triggers notifications to the requested reviewers.5 params
Request reviews for a pull request from a given set of users and/or teams. Triggers notifications to the requested reviewers.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositoryreviewersarrayoptionalAn array of user logins that will be requested to reviewteam_reviewersarrayoptionalAn array of team slugs that will be requested to reviewgithubpat_pull_request_reviews_list#List all reviews for a specified pull request, returned in chronological order.5 params
List all reviews for a specified pull request, returned in chronological order.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_pull_request_update#Update a pull request's title, body, state, or base branch. Requires write access to the head or source branch.7 params
Update a pull request's title, body, state, or base branch. Requires write access to the head or source branch.
ownerstringrequiredThe account owner of the repositorypull_numbernumberrequiredThe number that identifies the pull requestrepostringrequiredThe name of the repositorybasestringoptionalThe name of the branch you want your changes pulled into. Must be an existing branch on the current repositorybodystringoptionalThe contents of the pull requeststatestringoptionalState of this pull request. Either open or closedtitlestringoptionalThe title of the pull requestgithubpat_pull_requests_list#List pull requests in a repository with optional filtering by state, head, and base branches.9 params
List pull requests in a repository with optional filtering by state, head, and base branches.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorybasestringoptionalFilter by base branch namedirectionstringoptionalSort orderheadstringoptionalFilter by head branch (format: user:ref-name)pagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalProperty to sort pull requests bystatestringoptionalFilter by pull request stategithubpat_readme_get#Get the preferred README for a repository.3 params
Get the preferred README for a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrefstringoptionalThe name of the commit/branch/tag. Default: the repository's default branchgithubpat_release_asset_delete#Delete a release asset from a repository. This permanently removes the uploaded binary file from the release.3 params
Delete a release asset from a repository. This permanently removes the uploaded binary file from the release.
asset_idnumberrequiredThe unique identifier of the release assetownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_release_asset_get#Get a single release asset's metadata by its ID.3 params
Get a single release asset's metadata by its ID.
asset_idnumberrequiredThe unique identifier of the release assetownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_release_assets_list#List the assets (binary files) attached to a release in a repository.5 params
List the assets (binary files) attached to a release in a repository.
ownerstringrequiredThe account owner of the repositoryrelease_idnumberrequiredThe unique identifier of the releaserepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_release_create#Create a new release in a repository. Requires push access to the repository.9 params
Create a new release in a repository. Requires push access to the repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytag_namestringrequiredThe name of the tagbodystringoptionalText describing the contents of the tagdraftbooleanoptionaltrue to create a draft (unpublished) release, false to create a published onegenerate_release_notesbooleanoptionalWhether to automatically generate the name and body for this release. If name is specified, it will be used; otherwise a name is auto-generated. If body is specified, it is pre-pended to the automatically generated notesnamestringoptionalThe name of the releaseprereleasebooleanoptionaltrue to identify the release as a prerelease, false to identify the release as a full releasetarget_commitishstringoptionalSpecifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branchgithubpat_release_delete#Delete a release. Requires push access to the repository. This action cannot be undone.3 params
Delete a release. Requires push access to the repository. This action cannot be undone.
ownerstringrequiredThe account owner of the repositoryrelease_idnumberrequiredThe unique identifier of the releaserepostringrequiredThe name of the repositorygithubpat_release_get#Get a public release with the specified release ID.3 params
Get a public release with the specified release ID.
ownerstringrequiredThe account owner of the repositoryrelease_idnumberrequiredThe unique identifier of the releaserepostringrequiredThe name of the repositorygithubpat_release_get_by_tag#Get a published release with the specified tag.3 params
Get a published release with the specified tag.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorytagstringrequiredThe name of the taggithubpat_release_get_latest#View the latest published full release for the repository. The latest release is the most recent non-prerelease, non-draft release, sorted by created_at.2 params
View the latest published full release for the repository. The latest release is the most recent non-prerelease, non-draft release, sorted by created_at.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_release_update#Update an existing release. Requires push access to the repository. All fields except owner, repo, and release_id are optional.10 params
Update an existing release. Requires push access to the repository. All fields except owner, repo, and release_id are optional.
ownerstringrequiredThe account owner of the repositoryrelease_idnumberrequiredThe unique identifier of the releaserepostringrequiredThe name of the repositorybodystringoptionalText describing the contents of the tagdraftbooleanoptionaltrue makes the release a draft, and false publishes the releasegenerate_release_notesbooleanoptionalWhether to automatically generate the name and body for this release. If name is specified, it will be used; otherwise a name is auto-generated. If body is specified, it is pre-pended to the automatically generated notesnamestringoptionalThe name of the releaseprereleasebooleanoptionaltrue to identify the release as a prerelease, false to identify the release as a full releasetag_namestringoptionalThe name of the tagtarget_commitishstringoptionalSpecifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branchgithubpat_releases_list#List releases for a repository. Does not include Git tags that have not been associated with a release.4 params
List releases for a repository. Does not include Git tags that have not been associated with a release.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_repo_contributors_list#List contributors to a repository, sorted by number of commits, and including anonymous contributors when requested.5 params
List contributors to a repository, sorted by number of commits, and including anonymous contributors when requested.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryanonstringoptionalSet to '1' or 'true' to include anonymous contributors in the resultspagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_repo_create_for_user#Create a new repository for the authenticated user.11 params
Create a new repository for the authenticated user.
namestringrequiredThe name of the repositoryauto_initbooleanoptionalWhether the repository is initialized with a minimal READMEdescriptionstringoptionalA short description of the repositorygitignore_templatestringoptionalThe desired language or platform to apply to the .gitignorehas_issuesbooleanoptionalWhether issues are enabledhas_projectsbooleanoptionalWhether projects are enabledhas_wikibooleanoptionalWhether the wiki is enabledhomepagestringoptionalA URL with more information about the repositoryis_templatebooleanoptionalWhether this repository acts as a template that can be used to generate new repositorieslicense_templatestringoptionalThe license keyword of the open source license for this repositoryprivatebooleanoptionalWhether the repository is privategithubpat_repo_create_from_template#Create a new repository using a repository template. The authenticated user must own or be a member of an organization that owns the template.7 params
Create a new repository using a repository template. The authenticated user must own or be a member of an organization that owns the template.
namestringrequiredThe name of the new repositorytemplate_ownerstringrequiredThe account owner of the template repositorytemplate_repostringrequiredThe name of the template repositorydescriptionstringoptionalA short description of the new repositoryinclude_all_branchesbooleanoptionalSet to true to include the directory structure and files from all branches in the template, not just the default branchownerstringoptionalThe organization or person who will own the new repositoryprivatebooleanoptionalEither true to create a new private repository or false to create a new public onegithubpat_repo_create_in_org#Create a new repository in the specified organization. The authenticated user must be a member of the organization.12 params
Create a new repository in the specified organization. The authenticated user must be a member of the organization.
namestringrequiredThe name of the repositoryorgstringrequiredThe organization nameauto_initbooleanoptionalPass true to create an initial commit with empty READMEdescriptionstringoptionalA short description of the repositorygitignore_templatestringoptionalDesired language or platform .gitignore template to applyhas_issuesbooleanoptionalEither true to enable issues for this repository or false to disable themhas_projectsbooleanoptionalEither true to enable projects for this repository or false to disable themhas_wikibooleanoptionalEither true to enable the wiki for this repository or false to disable ithomepagestringoptionalA URL with more information about the repositoryis_templatebooleanoptionalEither true to make this repo available as a template repository or false to prevent itlicense_templatestringoptionalLicense keyword such as mit or mpl-2.0privatebooleanoptionalWhether the repository is privategithubpat_repo_delete#Delete a repository. Deleting a repository requires admin access. This action is irreversible.2 params
Delete a repository. Deleting a repository requires admin access. This action is irreversible.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_dispatch_event_create#Trigger a repository_dispatch webhook event that workflows listening for the repository_dispatch event can use to run a workflow.4 params
Trigger a repository_dispatch webhook event that workflows listening for the repository_dispatch event can use to run a workflow.
event_typestringrequiredA custom webhook event name. Must be 100 characters or fewerownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryclient_payloadobjectoptionalJSON payload with extra information about the event. Maximum 10 top-level properties and 64KB total sizegithubpat_repo_fork_create#Create a fork of a repository for the authenticated user. Forking happens asynchronously; git objects may not be immediately accessible.5 params
Create a fork of a repository for the authenticated user. Forking happens asynchronously; git objects may not be immediately accessible.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorydefault_branch_onlybooleanoptionalWhen forking from an existing repository, fork with only the default branchnamestringoptionalWhen forking from an existing repository, a new name for the forkorganizationstringoptionalOptional parameter to specify the organization name if forking into an organizationgithubpat_repo_forks_list#List forks of a repository.5 params
List forks of a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)sortstringoptionalThe sort order for the resultsgithubpat_repo_get#Get detailed information about a GitHub repository including metadata, settings, and statistics.2 params
Get detailed information about a GitHub repository including metadata, settings, and statistics.
ownerstringrequiredThe account owner of the repository (case-insensitive)repostringrequiredThe name of the repository without the .git extension (case-insensitive)githubpat_repo_invitation_delete#Delete a repository invitation, revoking the invite before it is accepted.3 params
Delete a repository invitation, revoking the invite before it is accepted.
invitation_idnumberrequiredThe unique identifier of the repository invitationownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_invitation_update#Update an existing repository invitation, changing the permission level the invitee will receive when they accept.4 params
Update an existing repository invitation, changing the permission level the invitee will receive when they accept.
invitation_idnumberrequiredThe unique identifier of the repository invitationownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypermissionsstringoptionalThe permissions that the associated user will have on the repositorygithubpat_repo_invitations_list#List all currently open repository invitations.4 params
List all currently open repository invitations.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_repo_languages_list#List the programming languages used in a repository, with the number of bytes of code written in each language.2 params
List the programming languages used in a repository, with the number of bytes of code written in each language.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_license_get#Get the contents of the repository's license file, if one is detected.3 params
Get the contents of the repository's license file, if one is detected.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrefstringoptionalThe name of the commit/branch/tag. Default: the repository's default branchgithubpat_repo_org_repos_list#List repositories for the specified organization.6 params
List repositories for the specified organization.
orgstringrequiredThe organization namedirectionstringoptionalThe order to sort by. Default: asc when using full_name, otherwise descpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalThe property to sort the results bytypestringoptionalSpecifies the types of repositories you want returnedgithubpat_repo_secret_delete#Delete an Actions secret from a repository.3 params
Delete an Actions secret from a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorysecret_namestringrequiredThe name of the secretgithubpat_repo_secret_get#Get metadata about a single Actions secret on a repository. The value is never returned by the GitHub API.3 params
Get metadata about a single Actions secret on a repository. The value is never returned by the GitHub API.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorysecret_namestringrequiredThe name of the secretgithubpat_repo_secrets_list#List the names of Actions secrets configured on a repository. Secret values are never returned by the GitHub API.4 params
List the names of Actions secrets configured on a repository. Secret values are never returned by the GitHub API.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_repo_star#Star a repository for the authenticated user.2 params
Star a repository for the authenticated user.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_subscription_set#Watch or unwatch a repository. Set 'subscribed' to true to watch the repository, or 'ignored' to true to stop notifications from it.4 params
Watch or unwatch a repository. Set 'subscribed' to true to watch the repository, or 'ignored' to true to stop notifications from it.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryignoredbooleanoptionalDetermines if all notifications should be blocked from this repositorysubscribedbooleanoptionalDetermines if notifications should be received from this repositorygithubpat_repo_topics_get#Get all topics associated with a repository.4 params
Get all topics associated with a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_repo_topics_replace#Replace all topics for a repository. Send an empty array to clear all topics. Topic names are saved as lowercase.3 params
Replace all topics for a repository. Send an empty array to clear all topics. Topic names are saved as lowercase.
namesarrayrequiredAn array of topics to add to the repository, replacing the existing set of topicsownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_transfer#Transfer a repository owned by an organization or personal account to a new owner. Requires admin access, and the new owner must accept the transfer if it is not owned by an org you also own.5 params
Transfer a repository owned by an organization or personal account to a new owner. Requires admin access, and the new owner must accept the transfer if it is not owned by an org you also own.
new_ownerstringrequiredThe username or organization name the repository will be transferred toownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorynew_namestringoptionalThe new name to be given to the repositoryteam_idsarrayoptionalID of the team or teams to add to the repository (organization-owned repositories only)githubpat_repo_unstar#Unstar a repository that the authenticated user has previously starred.2 params
Unstar a repository that the authenticated user has previously starred.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_repo_update#Update a repository's settings such as name, description, visibility, default branch, and issue/wiki features.17 params
Update a repository's settings such as name, description, visibility, default branch, and issue/wiki features.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryallow_auto_mergebooleanoptionalEither true to allow auto-merge on pull requests, or false to disallow auto-mergeallow_forkingbooleanoptionalEither true to allow private forks, or false to prevent private forksallow_merge_commitbooleanoptionalEither true to allow merging pull requests with a merge commit, or false to prevent itallow_rebase_mergebooleanoptionalEither true to allow rebase-merging pull requests, or false to prevent itallow_squash_mergebooleanoptionalEither true to allow squash-merging pull requests, or false to prevent squash-mergingarchivedbooleanoptionalWhether to archive this repository. false will unarchive a previously archived repositorydefault_branchstringoptionalUpdates the default branch for this repositorydelete_branch_on_mergebooleanoptionalEither true to allow automatically deleting head branches when pull requests are merged, or false to prevent itdescriptionstringoptionalA short description of the repositoryhas_issuesbooleanoptionalEither true to enable issues for this repository or false to disable themhas_projectsbooleanoptionalEither true to enable projects for this repository or false to disable themhas_wikibooleanoptionalEither true to enable the wiki for this repository or false to disable ithomepagestringoptionalA URL with more information about the repositorynamestringoptionalThe name of the repositoryprivatebooleanoptionalEither true to make the repository private or false to make it publicgithubpat_repo_variable_create#Create a new Actions variable on a repository, for use in GitHub Actions workflows.4 params
Create a new Actions variable on a repository, for use in GitHub Actions workflows.
namestringrequiredThe name of the variableownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryvaluestringrequiredThe value of the variablegithubpat_repo_variable_delete#Delete an Actions variable from a repository.3 params
Delete an Actions variable from a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryvariable_namestringrequiredThe name of the variablegithubpat_repo_variable_get#Get a single Actions variable's name and value from a repository.3 params
Get a single Actions variable's name and value from a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryvariable_namestringrequiredThe name of the variablegithubpat_repo_variable_update#Update the name or value of an existing Actions variable on a repository.5 params
Update the name or value of an existing Actions variable on a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryvariable_namestringrequiredThe name of the variablenamestringoptionalThe name of the variablevaluestringoptionalThe value of the variablegithubpat_repo_variables_list#List the Actions variables configured on a repository, including their values.4 params
List the Actions variables configured on a repository, including their values.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_search_code#Search for code across GitHub using search qualifiers (e.g. 'addClass in:file language:js repo:jquery/jquery'). Returns up to 100 results per page. Requires authentication and is limited to 10 requests per minute.5 params
Search for code across GitHub using search qualifiers (e.g. 'addClass in:file language:js repo:jquery/jquery'). Returns up to 100 results per page. Requires authentication and is limited to 10 requests per minute.
qstringrequiredSearch query with optional qualifiers (e.g. 'addClass in:file language:js repo:jquery/jquery')orderstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalSort results by indexed (how recently the file was indexed)githubpat_search_commits#Search for commits across all of GitHub, or scoped with search qualifiers.5 params
Search for commits across all of GitHub, or scoped with search qualifiers.
qstringrequiredThe search query, using GitHub search syntaxorderstringoptionalDetermines whether the first search result returned is the highest or lowest number of matchespagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)sortstringoptionalSorts the results by author-date or committer-date. Default: best matchgithubpat_search_issues#Search for issues and pull requests across GitHub by state and keyword (e.g. 'windows label:bug language:python state:open'). Returns up to 100 results per page, sortable by comments, reactions, interactions, created, or updated.5 params
Search for issues and pull requests across GitHub by state and keyword (e.g. 'windows label:bug language:python state:open'). Returns up to 100 results per page, sortable by comments, reactions, interactions, created, or updated.
qstringrequiredSearch query with optional qualifiers (e.g. 'windows label:bug language:python state:open')orderstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalSort results by comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, or updatedgithubpat_search_repos#Search for repositories via GitHub's search qualifiers (e.g. 'tetris language:assembly'). Returns up to 100 results per page, sortable by stars, forks, help-wanted-issues, or updated.5 params
Search for repositories via GitHub's search qualifiers (e.g. 'tetris language:assembly'). Returns up to 100 results per page, sortable by stars, forks, help-wanted-issues, or updated.
qstringrequiredSearch query with optional qualifiers (e.g. 'tetris language:assembly')orderstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalSort results by stars, forks, help-wanted-issues, or updatedgithubpat_search_topics#Search for topics defined on GitHub.3 params
Search for topics defined on GitHub.
qstringrequiredThe search query, using GitHub search syntaxpagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_search_users#Search for users across GitHub via search qualifiers (e.g. 'tom repos:>42 followers:>1000'). Returns up to 100 results per page, sortable by followers, repositories, or joined date.5 params
Search for users across GitHub via search qualifiers (e.g. 'tom repos:>42 followers:>1000'). Returns up to 100 results per page, sortable by followers, repositories, or joined date.
qstringrequiredSearch query with optional qualifiers (e.g. 'tom repos:>42 followers:>1000')orderstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalSort results by followers, repositories, or joined dategithubpat_secret_scanning_alerts_list#List secret scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and your token needs the repo scope (or security_events for public repositories).18 params
List secret scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and your token needs the repo scope (or security_events for public repositories).
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryafterstringoptionalA cursor, as given in the Link response header. Only search for results after this cursor.assigneestringoptionalFilter by assignee username, '*' for any assignee, or 'none' for unassignedbeforestringoptionalA cursor, as given in the Link response header. Only search for results before this cursor.directionstringoptionalThe direction to sort the results byexclude_providersstringoptionalComma-separated list of provider slugs to exclude. Cannot be combined with providers.exclude_secret_typesstringoptionalComma-separated list of secret types to exclude. Cannot be combined with secret_type.is_multi_repobooleanoptionalFilter alerts by whether the multi-repo tag is presentis_publicly_leakedbooleanoptionalFilter alerts by whether the publicly-leaked tag is presentpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)providersstringoptionalComma-separated list of provider slugs to filter by. Cannot be combined with exclude_providers.resolutionstringoptionalComma-separated list of resolutions to filter bysecret_typestringoptionalComma-separated list of secret types to return. All default secret patterns are returned when omitted.sortstringoptionalThe property by which to sort the resultsstatestringoptionalSet to filter alerts by statevaliditystringoptionalComma-separated list of validities to filter bygithubpat_stargazers_list#Lists the people that have starred the repository.4 params
Lists the people that have starred the repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_starred_repos_list#List repositories the authenticated user has starred.4 params
List repositories the authenticated user has starred.
directionstringoptionalDirection to sort resultspagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalThe property to sort the results by. 'created' means when the repository was starred. 'updated' means when the repository was last pushed to.githubpat_sub_issue_add#Add an existing issue as a sub-issue of a parent issue, creating a parent/child relationship between them.5 params
Add an existing issue as a sub-issue of a parent issue, creating a parent/child relationship between them.
issue_numbernumberrequiredThe number that identifies the parent issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorysub_issue_idnumberrequiredThe internal id (not the issue number) of the issue to add as a sub-issue. Find it in the 'id' field of the get-issue response for the issue you want to add.replace_parentbooleanoptionalWhen true, replaces the sub-issue's current parent issue (if it already has one) with this parentgithubpat_sub_issue_remove#Remove a sub-issue from its parent issue, breaking the parent/child relationship between them. The issue itself is not deleted.4 params
Remove a sub-issue from its parent issue, breaking the parent/child relationship between them. The issue itself is not deleted.
issue_numbernumberrequiredThe number that identifies the parent issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorysub_issue_idnumberrequiredThe internal id (not the issue number) of the sub-issue to remove from the parentgithubpat_sub_issues_list#List the sub-issues that have been added underneath a parent issue.5 params
List the sub-issues that have been added underneath a parent issue.
issue_numbernumberrequiredThe number that identifies the parent issueownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_tags_list#List repository tags.4 params
List repository tags.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_team_create#Create a new team in an organization. The authenticated user must be an organization owner or a team maintainer.7 params
Create a new team in an organization. The authenticated user must be an organization owner or a team maintainer.
namestringrequiredThe name of the teamorgstringrequiredThe organization name (case-insensitive)descriptionstringoptionalThe description of the teammaintainersarrayoptionalGitHub usernames of organization members who will become team maintainersparent_team_idnumberoptionalThe ID of a team to set as the parent teamprivacystringoptionalThe level of privacy this team should haverepo_namesarrayoptionalFull name (e.g., 'org/repo') of repositories to add the team togithubpat_team_delete#Delete a team from an organization. This does not delete the repositories the team had access to; only the team itself.2 params
Delete a team from an organization. This does not delete the repositories the team had access to; only the team itself.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team namegithubpat_team_get#Get a team using the team's slug. To create the slug, GitHub replaces special characters in the name, lowercases all words, and replaces spaces with a '-' separator.2 params
Get a team using the team's slug. To create the slug, GitHub replaces special characters in the name, lowercases all words, and replaces spaces with a '-' separator.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team namegithubpat_team_member_remove#Remove a user from a team. Does not remove them from the organization itself.3 params
Remove a user from a team. Does not remove them from the organization itself.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team nameusernamestringrequiredThe handle for the GitHub user accountgithubpat_team_members_list#List a team's members, including members of child teams. Each member includes their role on the team (member or maintainer) and whether the membership is inherited. The team must be visible to the authenticated user.5 params
List a team's members, including members of child teams. Each member includes their role on the team (member or maintainer) and whether the membership is inherited. The team must be visible to the authenticated user.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team namepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)rolestringoptionalFilters members returned by their role in the teamgithubpat_team_membership_get#Get a user's membership state and role (member or maintainer) on a team.3 params
Get a user's membership state and role (member or maintainer) on a team.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team nameusernamestringrequiredThe handle for the GitHub user accountgithubpat_team_membership_set#Add an organization member to a team, or update their role on the team. An authenticated organization owner or team maintainer can perform this action. If the user is not an organization member, this sends an email invitation and the membership stays 'pending' until accepted.4 params
Add an organization member to a team, or update their role on the team. An authenticated organization owner or team maintainer can perform this action. If the user is not an organization member, this sends an email invitation and the membership stays 'pending' until accepted.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team nameusernamestringrequiredThe handle for the GitHub user accountrolestringoptionalThe role that this user should have in the teamgithubpat_team_repo_add#Add a repository to a team, or update the team's permission level on a repository it already has access to.5 params
Add a repository to a team, or update the team's permission level on a repository it already has access to.
orgstringrequiredThe organization name (case-insensitive)ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryteam_slugstringrequiredThe slug of the team namepermissionstringoptionalThe permission to grant the team on this repository. Custom repository roles are also accepted if the organization has defined anygithubpat_team_repo_remove#Remove a repository from a team. The repository itself is not deleted, only the team's access to it.4 params
Remove a repository from a team. The repository itself is not deleted, only the team's access to it.
orgstringrequiredThe organization name (case-insensitive)ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryteam_slugstringrequiredThe slug of the team namegithubpat_team_repos_list#List a team's repositories visible to the authenticated user.4 params
List a team's repositories visible to the authenticated user.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team namepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_team_update#Update a team's name, description, privacy, or parent team.6 params
Update a team's name, description, privacy, or parent team.
orgstringrequiredThe organization name (case-insensitive)team_slugstringrequiredThe slug of the team namedescriptionstringoptionalThe description of the teamnamestringoptionalThe name of the teamparent_team_idnumberoptionalThe ID of a team to set as the parent teamprivacystringoptionalThe level of privacy this team should havegithubpat_teams_list#List all teams in an organization that are visible to the authenticated user.3 params
List all teams in an organization that are visible to the authenticated user.
orgstringrequiredThe organization name (case-insensitive)pagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_user_get_authenticated#Get the profile information for the currently authenticated user. OAuth app tokens and personal access tokens (classic) need the 'user' scope to include private profile information.0 params
Get the profile information for the currently authenticated user. OAuth app tokens and personal access tokens (classic) need the 'user' scope to include private profile information.
githubpat_user_get_by_username#Get publicly available profile information about a user with a GitHub account.1 param
Get publicly available profile information about a user with a GitHub account.
usernamestringrequiredThe handle for the GitHub user accountgithubpat_user_issues_list#List issues assigned to the authenticated user across all visible repositories, including owned, member, and organization repositories. Use the filter parameter to fetch issues not necessarily assigned to you.8 params
List issues assigned to the authenticated user across all visible repositories, including owned, member, and organization repositories. Use the filter parameter to fetch issues not necessarily assigned to you.
directionstringoptionalSort orderfilterstringoptionalIndicates which sorts of issues to return. 'assigned' means issues assigned to you, 'created' means issues created by you, 'mentioned' means issues mentioning you, 'subscribed' means issues you're subscribed to updates for, 'all' or 'repos' means all issues you can seelabelsstringoptionalFilter by comma-separated list of label namespagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sincestringoptionalShow issues updated after this timestamp (ISO 8601 format)sortstringoptionalProperty to sort issues bystatestringoptionalIndicates the state of the issues to returngithubpat_user_repos_list#List repositories for the authenticated user. Requires authentication.5 params
List repositories for the authenticated user. Requires authentication.
directionstringoptionalSort orderpagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)sortstringoptionalProperty to sort repositories bytypestringoptionalFilter repositories by typegithubpat_webhook_create#Create a webhook on a repository. Repositories can have up to 20 webhooks.6 params
Create a webhook on a repository. Repositories can have up to 20 webhooks.
configobjectrequiredKey/value pairs to provide settings for this webhook, including url, content_type, secret, and insecure_sslownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryactivebooleanoptionalDetermines if notifications are sent when the webhook is triggeredeventsarrayoptionalDetermines what events the hook is triggered fornamestringoptionalUse 'web' to create a webhook. Default: web. This parameter only accepts the value 'web'githubpat_webhook_delete#Delete a repository webhook.3 params
Delete a repository webhook.
hook_idnumberrequiredThe unique identifier of the webhookownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_webhook_get#Get a single repository webhook by its ID.3 params
Get a single repository webhook by its ID.
hook_idnumberrequiredThe unique identifier of the webhookownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_webhook_ping#Trigger a ping event to test that a repository webhook is configured correctly.3 params
Trigger a ping event to test that a repository webhook is configured correctly.
hook_idnumberrequiredThe unique identifier of the webhookownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorygithubpat_webhook_update#Update the configuration, events, or active state of an existing repository webhook.8 params
Update the configuration, events, or active state of an existing repository webhook.
hook_idnumberrequiredThe unique identifier of the webhookownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryactivebooleanoptionalDetermines if notifications are sent when the webhook is triggeredadd_eventsarrayoptionalA list of events to be added to the list of events that the hook triggers forconfigobjectoptionalKey/value pairs to provide settings for this webhook, including url, content_type, secret, and insecure_ssleventsarrayoptionalDetermines what events the hook is triggered for. This replaces the entire array of eventsremove_eventsarrayoptionalA list of events to be removed from the list of events that the hook triggers forgithubpat_webhooks_list#List webhooks configured on a repository.4 params
List webhooks configured on a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of the results to fetchper_pagenumberoptionalThe number of results per page (max 100)githubpat_workflow_disable#Disable a workflow, preventing it from running until re-enabled.3 params
Disable a workflow, preventing it from running until re-enabled.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryworkflow_idstringrequiredThe ID of the workflow, or the workflow file namegithubpat_workflow_dispatch#Trigger a workflow run using the workflow's ID or filename. The workflow must declare a workflow_dispatch trigger to be dispatched this way.5 params
Trigger a workflow run using the workflow's ID or filename. The workflow must declare a workflow_dispatch trigger to be dispatched this way.
ownerstringrequiredThe account owner of the repositoryrefstringrequiredThe git reference for the workflow. The reference can be a branch or tag namerepostringrequiredThe name of the repositoryworkflow_idstringrequiredThe ID of the workflow, or the workflow file nameinputsobjectoptionalInput keys and values configured in the workflow file. The maximum number of properties is 25githubpat_workflow_enable#Enable a workflow that was previously disabled.3 params
Enable a workflow that was previously disabled.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryworkflow_idstringrequiredThe ID of the workflow, or the workflow file namegithubpat_workflow_get#Get a single workflow by its ID or filename.3 params
Get a single workflow by its ID or filename.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryworkflow_idstringrequiredThe ID of the workflow, or the workflow file namegithubpat_workflow_run_cancel#Cancel a workflow run using its ID. You can use this endpoint to cancel a workflow run that is either in_progress or queued.3 params
Cancel a workflow run using its ID. You can use this endpoint to cancel a workflow run that is either in_progress or queued.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrun_idnumberrequiredThe unique identifier of the workflow rungithubpat_workflow_run_get#Get a specific workflow run for a repository.3 params
Get a specific workflow run for a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrun_idnumberrequiredThe unique identifier of the workflow rungithubpat_workflow_run_jobs_list#List all jobs for a workflow run, including jobs from old executions of the run if requested.6 params
List all jobs for a workflow run, including jobs from old executions of the run if requested.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrun_idnumberrequiredThe unique identifier of the workflow runfilterstringoptionalFilters jobs by their completed_at timestamp. latest returns jobs from the most recent execution; all returns every job including old executionspagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)githubpat_workflow_run_rerun#Trigger a re-run of all the jobs in a workflow run using its ID.4 params
Trigger a re-run of all the jobs in a workflow run using its ID.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryrun_idnumberrequiredThe unique identifier of the workflow runenable_debug_loggingbooleanoptionalWhether to enable debug logging for the re-rungithubpat_workflow_runs_list#List all workflow runs for a repository. You can filter by actor, branch, event, and status.8 params
List all workflow runs for a repository. You can filter by actor, branch, event, and status.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositoryactorstringoptionalReturns someone's workflow runs. Use the login for the user who created the pushbranchstringoptionalReturns workflow runs associated with a branch. Use the name of the branch of the pusheventstringoptionalReturns workflow runs triggered by the event you specify, e.g. push, pull_request, or issuepagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)statusstringoptionalReturns workflow runs with the check run status or conclusion that you specifygithubpat_workflows_list#List the workflows defined in a repository.4 params
List the workflows defined in a repository.
ownerstringrequiredThe account owner of the repositoryrepostringrequiredThe name of the repositorypagenumberoptionalPage number of results to fetchper_pagenumberoptionalNumber of results per page (max 100)