pare-github

v0.24.2
io.github.Dave-London/pare-github Checked 1 hour ago Published 3 days ago

Pare GitHub ג€” Structured GitHub operations (PRs, issues, actions) as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pr-view PR View

Views a pull request by number, URL, or branch. Returns structured data with state, checks, review decision, diff stats, author, labels, draft status, assignees, milestone, and timestamps. The `body` is capped at 4000 characters (HTML <details> blocks collapsed to their <summary> first) and flagged with `bodyTruncated`/`bodyLength`; raise or lift the cap with `maxBodyLength` (0 = verbatim).

ParameterTypeDescription
number *stringPull request number, URL, or branch name
commentsbooleanInclude the PR's conversation comments in output as comments[] (author, createdAt, body). Review comments are in reviews[]
compactbooleanPrefer compact output
maxBodyLengthintegerMaximum characters kept in the returned body (default 4000). Before capping, HTML <details> blocks are collapsed to their <summary> text. Set to 0 to disable both and return the body verbatim.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.

pr-list PR List

Lists pull requests with optional filters. Returns structured list with PR number, state, title, author, branch, labels, draft status, and merge readiness.

ParameterTypeDescription
appstringFilter by GitHub App (--app)
assigneestringFilter by assignee username (-a/--assignee)
authorstringFilter by author username
basestringFilter by base branch (-B/--base)
compactbooleanPrefer compact output
draftbooleanFilter by draft status (-d/--draft)
headstringFilter by head branch (-H/--head)
labelstringFilter by label
labelsarrayFilter by multiple labels (each maps to --label)
limitnumberMaximum number of PRs to return (default: 30)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
searchstringGitHub search syntax (-S/--search). A search using OR is grouped in parentheses so results stay in the repository
statestringFilter by PR state (default: open)

pr-create PR Create

Creates a new pull request. Returns structured data with PR number and URL.

ParameterTypeDescription
body *stringPull request body/description
title *stringPull request title
assigneearrayAssign users (-a/--assignee)
basestringBase branch (default: repo default branch)
draftbooleanCreate as draft PR
dryRunbooleanPreview PR creation without executing (--dry-run)
fillbooleanAuto-fill title and body from commits (-f/--fill)
fillFirstbooleanUse first commit for title and body (--fill-first)
fillVerbosebooleanUse verbose commit messages for body (--fill-verbose)
headstringHead branch (default: current branch)
labelarrayAdd labels (-l/--label)
milestonestringSet milestone (-m/--milestone)
noMaintainerEditbooleanDisallow maintainer edits to the PR (--no-maintainer-edit)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
projectstringAdd to project (-p/--project)
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
reviewerarrayRequest reviewers by username (-r/--reviewer)
templatestringUse PR template file (--template)

pr-merge PR Merge

Merges a pull request by number, URL, or branch. Returns structured data with merge status, method, URL, and branch deletion status.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
accountstringRun this call as another gh account already logged in locally (see `gh auth status`), without switching the active account. Off unless the server's PARE_GITHUB_ALLOWED_ACCOUNTS env lists the account.…
adminbooleanBypass branch protection rules (--admin)
authorEmailstringAuthor email for merge commit (--author-email)
autobooleanEnable auto-merge when requirements are met (--auto)
commitBodystringCommit body for merge commit (--body)
compactbooleanPrefer compact output
deleteBranchbooleanDelete branch after merge
disableAutobooleanDisable auto-merge for this PR (--disable-auto)
matchHeadCommitstringSafety check: only merge if HEAD SHA matches this value (--match-head-commit)
methodstringMerge method (default: squash)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
subjectstringCommit subject for merge commit (--subject)

pr-comment PR Comment

Adds, edits, or deletes a comment on a pull request. Returns structured data with the comment URL, operation type, comment ID, and body echo.

ParameterTypeDescription
body *stringComment text
number *stringPull request number, URL, or branch name
createIfNonebooleanWhen used with editLast, create a new comment if no existing comment exists (--create-if-none)
deleteLastbooleanDelete the last comment (--delete-last)
editLastbooleanEdit the last comment instead of creating a new one (--edit-last)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.

pr-review PR Review

Submits a review on a pull request (approve, request-changes, or comment). Returns structured data with the review event, URL, and body echo.

ParameterTypeDescription
event *stringReview type: approve, request-changes, or comment
number *stringPull request number, URL, or branch name
accountstringRun this call as another gh account already logged in locally (see `gh auth status`), without switching the active account. Off unless the server's PARE_GITHUB_ALLOWED_ACCOUNTS env lists the account.…
bodystringReview body (required for request-changes and comment)
bodyFilestringRead review body from file (--body-file). Mutually exclusive with body.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.

pr-update PR Update

Updates pull request metadata (title, body, labels, assignees, reviewers, milestone, base branch, projects). Returns structured data with PR number and URL.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
addAssigneesarrayAssignees to add
addLabelsarrayLabels to add
addProjectsarrayProjects to add (--add-project)
addReviewersarrayAdd reviewers (--add-reviewer)
basestringChange base branch (-B/--base)
bodystringNew pull request body/description
milestonestringSet milestone (--milestone)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
removeAssigneesarrayAssignees to remove
removeLabelsarrayLabels to remove
removeMilestonebooleanRemove milestone (--remove-milestone)
removeProjectsarrayProjects to remove (--remove-project)
removeReviewersarrayRemove reviewers (--remove-reviewer)
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
titlestringNew pull request title

pr-checks PR Checks

Lists check/status results for a pull request. Returns structured data with check names, states, URLs, summary counts (passed, failed, pending), and a top-level `conclusion` ("passed" | "failed" | "pending" | "none" | "timed_out") for easy branching. `conclusion: "passed"` is only ever returned when at least one check exists and all of them succeeded; a PR with zero reported checks returns `conclusion: "none"` (never "passed"), so a merge gate cannot mistake "CI has not started" for "CI is green". When watch=true, polls internally until checks appear AND all complete, or watchTimeout elapses;…

ParameterTypeDescription
number *stringPull request number, URL, or branch name
compactbooleanPrefer compact output
intervalintegerPolling interval in seconds when watch=true (default 10, min 5, max 300).
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)
requiredbooleanFilter to show only required checks (--required)
watchbooleanPoll internally until at least one check exists AND all are non-pending, or watchTimeout elapses. A PR with no checks yet keeps the loop running instead of concluding early. The wrapper polls gh JSON…
watchTimeoutintegerTotal wall-clock timeout in seconds for the watch loop (default 600, max 3600).

pr-diff PR Diff

Returns file-level diff statistics for a pull request. Use full=true for patch/hunk content, or nameOnly=true for just the changed file paths.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
compactbooleanPrefer compact output
fullbooleanInclude full patch content in chunks
nameOnlybooleanList only changed file names (--name-only)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

pr-close PR Close

Closes a pull request with an optional comment and optional branch deletion. Returns structured data with PR number, state, URL, and deleted-branch flag.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
commentstringClosing comment
deleteBranchbooleanDelete the head branch after closing (--delete-branch)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

pr-reopen PR Reopen

Reopens a previously closed pull request, optionally with a comment. Returns structured data with PR number, state, and URL.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
commentstringComment to post on reopen
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

pr-ready PR Ready

Marks a pull request as ready for review (or converts it back to draft when undo=true). Returns structured data with PR number, state, URL, and resulting draft status.

ParameterTypeDescription
number *stringPull request number, URL, or branch name
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)
undobooleanConvert PR back to draft instead of marking ready (--undo)

issue-view Issue View

Views an issue by number or URL. Returns structured data with state, labels, assignees, author, milestone, close reason, and body. The `body` is capped at 4000 characters (HTML <details> blocks collapsed to their <summary> first) and flagged with `bodyTruncated`/`bodyLength`; raise or lift the cap with `maxBodyLength` (0 = verbatim).

ParameterTypeDescription
number *stringIssue number or URL
commentsbooleanInclude issue comments in output (-c/--comments)
compactbooleanPrefer compact output
maxBodyLengthintegerMaximum characters kept in the returned body (default 4000). Before capping, HTML <details> blocks are collapsed to their <summary> text. Set to 0 to disable both and return the body verbatim.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.

issue-list Issue List

Lists issues with optional filters. Returns structured list with issue number, state, title, labels, assignees, author, creation date, and milestone.

ParameterTypeDescription
appstringFilter by GitHub App (--app)
assigneestringFilter by assignee username
authorstringFilter by author username (-A/--author)
compactbooleanPrefer compact output
labelstringFilter by label
labelsarrayFilter by multiple labels (each maps to --label)
limitnumberMaximum number of issues to return (default: 30)
mentionstringFilter by mentioned user (--mention)
milestonestringFilter by milestone name or number (-m/--milestone)
paginatebooleanFetch a larger paginated set (up to 1000 issues)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
searchstringGitHub search syntax (-S/--search). A search using OR is grouped in parentheses so results stay in the repository
statestringFilter by issue state (default: open)

issue-create Issue Create

Creates a new issue. Returns structured data with issue number, URL, and labels applied.

ParameterTypeDescription
body *stringIssue body/description
title *stringIssue title
assigneesarrayAssignee usernames (-a/--assignee)
labelsarrayLabels to apply
milestonestringMilestone name or number (-m/--milestone)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
projectstringProject board name (-p/--project)
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
templatestringIssue template file name (--template)

issue-close Issue Close

Closes an issue with an optional comment and reason. Returns structured data with issue number, state, URL, reason, and comment URL.

ParameterTypeDescription
number *stringIssue number or URL
commentstringClosing comment
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
reasonstringClose reason: "completed" or "not planned"
repostringRepository in OWNER/REPO format (default: current repo)

issue-comment Issue Comment

Adds, edits, or deletes a comment on an issue. Returns structured data with the comment URL, operation type, comment ID, issue number, and body echo.

ParameterTypeDescription
body *stringComment text
number *stringIssue number or URL
createIfNonebooleanWhen used with editLast, create a new comment if no existing comment exists (--create-if-none)
deleteLastbooleanDelete the last comment (uses gh issue comment --delete-last)
editLastbooleanEdit the last comment instead of creating a new one (--edit-last)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

issue-update Issue Update

Updates issue metadata (title, body, labels, assignees, milestone, projects). All fields except `number` are optional — only supply the fields you want to change. For list fields (labels, assignees, projects), use `add*` to append and `remove*` to delete specific items without affecting others. Returns structured data with issue number and URL.

ParameterTypeDescription
number *stringIssue number or full GitHub issue URL to update
addAssigneesarrayGitHub usernames to assign (preserves existing assignees)
addLabelsarrayLabels to add (preserves existing labels)
addProjectsarrayProject board names to add (--add-project)
bodystringNew issue body/description (replaces existing, sent via stdin)
milestonestringSet milestone by name or number (--milestone). Mutually exclusive with removeMilestone.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
removeAssigneesarrayGitHub usernames to unassign (ignores users not assigned)
removeLabelsarrayLabels to remove (ignores labels not currently set)
removeMilestonebooleanRemove the milestone from the issue (--remove-milestone). Mutually exclusive with milestone.
removeProjectsarrayProject board names to remove (--remove-project)
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
titlestringNew issue title (replaces existing)

run-view Run View

Views a workflow run by ID. Returns structured data with status, conclusion, jobs (with steps), and workflow details.

ParameterTypeDescription
id *numberWorkflow run ID
attemptnumberView a specific rerun attempt (-a/--attempt)
compactbooleanPrefer compact output
exitStatusbooleanExit with non-zero status if run failed (--exit-status)
grepstringWith log/logFailed: keep only log lines matching this case-insensitive regular expression (e.g. '##\[error\]|FAIL') before the tail is taken. logsMatchedLines gives the match count
jobstringView a specific job by ID (-j/--job); ids are in jobs[].id
logbooleanRetrieve full run logs (--log)
logFailedbooleanRetrieve logs for failed steps only (--log-failed)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
tailLinesintegerWith log/logFailed: return exactly the last N log lines, where test runners print failures and tracebacks. Without it, logs are cut to the last 300 lines and 30000 characters; logsTruncated and logsTo…

run-list Run List

Lists workflow runs with optional filters. Returns structured list with run ID, status, conclusion, and workflow details.

ParameterTypeDescription
allbooleanInclude runs from disabled workflows (-a/--all)
branchstringFilter by branch name
commitstringFilter by commit SHA (-c/--commit)
compactbooleanPrefer compact output
createdstringFilter by creation time (--created), e.g. '>2024-01-01'
eventstringFilter by trigger event type (-e/--event), e.g. push, pull_request
limitnumberMaximum number of runs to return (default: 20)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (--repo). Default: current repo.
statusstringFilter by run status
userstringFilter by triggering user (-u/--user)
workflowstringFilter by workflow file name or ID (-w/--workflow)

run-rerun Run Rerun

Re-runs a workflow run by ID. Optionally re-runs only failed jobs or a specific job. Returns structured result with run ID, status, and URL.

ParameterTypeDescription
runId *numberWorkflow run ID to re-run
debugbooleanEnable runner diagnostic logging (-d/--debug)
failedOnlybooleanRe-run only failed jobs (default: false)
jobstringRerun a specific job by its databaseId (-j/--job). Note: requires the job's databaseId, not the job name.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: detected from git remote)

release-create Release Create

Creates a new GitHub release with optional asset uploads. Returns structured data with tag, URL, draft, prerelease status, and assets uploaded count.

ParameterTypeDescription
tag *stringTag name for the release
assetsarrayFile paths to upload as release assets (positional args after tag)
discussionCategorystringStart a release discussion in this category (--discussion-category)
draftbooleanCreate as draft release
failOnNoCommitsbooleanFail if no commits since last release (--fail-on-no-commits)
generateNotesbooleanAuto-generate release notes (--generate-notes)
latestbooleanControl the "Latest" badge on the release (--latest/--latest=false)
notesstringRelease notes/body
notesFilestringRead release notes from file (--notes-file). Mutually exclusive with notes.
notesFromTagbooleanUse the annotated tag message as release notes (--notes-from-tag)
notesStartTagstringScope auto-generated notes to commits since this tag (--notes-start-tag)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
prereleasebooleanMark as prerelease
repostringRepository in owner/repo format (default: current repo)
targetstringTarget commitish (branch or commit SHA)
titlestringRelease title (default: tag name)
verifyTagbooleanVerify the tag exists before creating release (--verify-tag)

gist-create Gist Create

Creates a new GitHub gist from one or more files. Returns structured data with gist ID, URL, visibility, file names, description, and file count.

ParameterTypeDescription
contentobjectInline content as filename-to-content map (e.g., {'script.py': 'print(1)'}). Creates gist from inline content instead of file paths. Either files or content must be provided.
descriptionstringGist description
filesarrayFile paths to include in the gist. Either files or content must be provided.
pathstringWorking directory
publicbooleanCreate as public gist (default: secret)

release-list Release List

Lists GitHub releases for a repository. Returns structured list with tag, name, draft/prerelease/latest status, publish date, and creation date.

ParameterTypeDescription
compactbooleanPrefer compact output
excludeDraftsbooleanExclude draft releases from the list (--exclude-drafts)
excludePreReleasesbooleanExclude pre-releases from the list (--exclude-pre-releases)
limitnumberMaximum number of releases to return (default: 30)
orderstringSort order (--order). Default: desc.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in owner/repo format (default: current repo)

label-list Label List

Lists repository labels. Returns structured data with label name, description, color, and default status.

ParameterTypeDescription
limitnumberMaximum number of labels to return (default: 30)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)
searchstringFilter labels by search term

label-create Label Create

Creates a new repository label. Returns structured data with label name, description, color, and URL.

ParameterTypeDescription
name *stringLabel name
colorstringLabel color as hex (e.g., 'ff0000' without #)
descriptionstringLabel description
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

secret-set Secret Set

Sets a repository, organization, or environment GitHub Actions secret. Secret values are sent via stdin and never returned.

ParameterTypeDescription
name *stringSecret name
value *stringSecret value
appstringGitHub app scope for secrets: actions, codespaces, or dependabot
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)
reposarrayRepositories that can access an organization secret/variable when visibility=selected
visibilitystringOrganization visibility: all, private, or selected

secret-list Secret List

Lists repository, organization, or environment secret names and metadata. Secret values are not exposed by GitHub.

ParameterTypeDescription
appstringGitHub app scope for secrets: actions, codespaces, or dependabot
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

secret-delete Secret Delete

Deletes a repository, organization, or environment GitHub Actions secret.

ParameterTypeDescription
name *stringSecret name
appstringGitHub app scope for secrets: actions, codespaces, or dependabot
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

variable-set Variable Set

Sets a repository, organization, or environment GitHub Actions variable. Variables are not secret and may be visible in logs.

ParameterTypeDescription
name *stringVariable name
value *stringVariable value
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)
reposarrayRepositories that can access an organization secret/variable when visibility=selected
visibilitystringOrganization visibility: all, private, or selected

variable-list Variable List

Lists repository, organization, or environment GitHub Actions variables with values and metadata.

ParameterTypeDescription
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

variable-delete Variable Delete

Deletes a repository, organization, or environment GitHub Actions variable.

ParameterTypeDescription
name *stringVariable name
envstringDeployment environment name
orgstringOrganization
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

repo-view Repo View

Views repository details. Returns structured data with name, owner, description, stars, forks, languages, topics, license, and dates.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
repostringRepository in OWNER/REPO format (default: current repo)

repo-clone Repo Clone

Clones a GitHub repository. Returns structured data with success status, repo name, target directory, and message.

ParameterTypeDescription
repo *stringRepository in OWNER/REPO format or full URL
depthnumberCreate a shallow clone with this many commits (passed as -- --depth=N)
directorystringTarget directory for the clone
pathstringWorking directory

discussion-list Discussion List

Lists GitHub Discussions for a repository via GraphQL. Returns structured list with discussion number, title, author, category, answered status, and comment count.

ParameterTypeDescription
repo *stringRepository in OWNER/REPO format
categorystringFilter by discussion category ID
compactbooleanPrefer compact output
limitnumberMaximum number of discussions to return (default: 20)
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…

api GitHub API

Makes arbitrary GitHub API calls via `gh api`. Supports all HTTP methods, request bodies, field parameters, pagination, and jq filtering. Returns structured data with status, parsed JSON body, endpoint, and method.

ParameterTypeDescription
endpoint *stringGitHub API endpoint (e.g., repos/owner/repo/pulls, /user)
bodyobjectJSON request body as key-value pairs (sent via --input)
cachestringCache TTL for responses, e.g. '5m', '1h' (--cache)
fieldsobjectKey-value pairs sent as --raw-field parameters
headersobjectCustom HTTP headers as key-value pairs (each maps to -H/--header)
hostnamestringGitHub Enterprise hostname (--hostname)
includebooleanInclude response headers in output (-i/--include)
inputFilestringRead request body from file (--input). Mutually exclusive with body.
jqstringjq filter expression to apply to the response (JSON responses only)
methodstringHTTP method (default: GET)
paginatebooleanEnable pagination (--paginate). Fetches all pages.
pathstringRepository path. Authoritative — when omitted, the server uses its own process working directory (its launch dir, not the caller's cwd). Callers in a git worktree or other directory MUST pass this e…
previewstringAPI preview feature name (--preview)
querystringGraphQL query string. When provided, makes a GraphQL request via `gh api graphql`.
silentbooleanSuppress response body output (--silent)
slurpbooleanCombine paginated JSON arrays into a single array (--slurp)
typedFieldsobjectKey-value pairs sent as --field parameters (typed: booleans, numbers, null parsed by gh)
variablesobjectGraphQL variables as key-value pairs. Only used with `query` parameter.
verbosebooleanShow verbose debug output (--verbose)