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 issue, commit combined status, git tree — Get a single issue in a repository by its number
- List pull request files, repo org repos, user repos — List the files changed in a specified pull request
- Set repo subscription, team membership, issue labels — Watch or unwatch a repository
- Run check, workflow — Create a new check run for a specific commit in a repository
- Delete issue comment, file, label — Delete a comment on an issue or pull request
- Create pull request comment, git tree, repo fork — Create a review comment on the diff of a specified pull request at a specific line
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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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)