pare-github
v0.24.2Pare 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).
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
comments | boolean | Include the PR's conversation comments in output as comments[] (author, createdAt, body). Review comments are in reviews[] |
compact | boolean | Prefer compact output |
maxBodyLength | integer | Maximum 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. |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
app | string | Filter by GitHub App (--app) |
assignee | string | Filter by assignee username (-a/--assignee) |
author | string | Filter by author username |
base | string | Filter by base branch (-B/--base) |
compact | boolean | Prefer compact output |
draft | boolean | Filter by draft status (-d/--draft) |
head | string | Filter by head branch (-H/--head) |
label | string | Filter by label |
labels | array | Filter by multiple labels (each maps to --label) |
limit | number | Maximum number of PRs to return (default: 30) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
search | string | GitHub search syntax (-S/--search). A search using OR is grouped in parentheses so results stay in the repository |
state | string | Filter by PR state (default: open) |
pr-create PR Create
Creates a new pull request. Returns structured data with PR number and URL.
| Parameter | Type | Description |
|---|---|---|
body * | string | Pull request body/description |
title * | string | Pull request title |
assignee | array | Assign users (-a/--assignee) |
base | string | Base branch (default: repo default branch) |
draft | boolean | Create as draft PR |
dryRun | boolean | Preview PR creation without executing (--dry-run) |
fill | boolean | Auto-fill title and body from commits (-f/--fill) |
fillFirst | boolean | Use first commit for title and body (--fill-first) |
fillVerbose | boolean | Use verbose commit messages for body (--fill-verbose) |
head | string | Head branch (default: current branch) |
label | array | Add labels (-l/--label) |
milestone | string | Set milestone (-m/--milestone) |
noMaintainerEdit | boolean | Disallow maintainer edits to the PR (--no-maintainer-edit) |
path | string | Repository 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… |
project | string | Add to project (-p/--project) |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
reviewer | array | Request reviewers by username (-r/--reviewer) |
template | string | Use 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
account | string | Run 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.… |
admin | boolean | Bypass branch protection rules (--admin) |
authorEmail | string | Author email for merge commit (--author-email) |
auto | boolean | Enable auto-merge when requirements are met (--auto) |
commitBody | string | Commit body for merge commit (--body) |
compact | boolean | Prefer compact output |
deleteBranch | boolean | Delete branch after merge |
disableAuto | boolean | Disable auto-merge for this PR (--disable-auto) |
matchHeadCommit | string | Safety check: only merge if HEAD SHA matches this value (--match-head-commit) |
method | string | Merge method (default: squash) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
subject | string | Commit 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text |
number * | string | Pull request number, URL, or branch name |
createIfNone | boolean | When used with editLast, create a new comment if no existing comment exists (--create-if-none) |
deleteLast | boolean | Delete the last comment (--delete-last) |
editLast | boolean | Edit the last comment instead of creating a new one (--edit-last) |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
event * | string | Review type: approve, request-changes, or comment |
number * | string | Pull request number, URL, or branch name |
account | string | Run 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.… |
body | string | Review body (required for request-changes and comment) |
bodyFile | string | Read review body from file (--body-file). Mutually exclusive with body. |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
addAssignees | array | Assignees to add |
addLabels | array | Labels to add |
addProjects | array | Projects to add (--add-project) |
addReviewers | array | Add reviewers (--add-reviewer) |
base | string | Change base branch (-B/--base) |
body | string | New pull request body/description |
milestone | string | Set milestone (--milestone) |
path | string | Repository 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… |
removeAssignees | array | Assignees to remove |
removeLabels | array | Labels to remove |
removeMilestone | boolean | Remove milestone (--remove-milestone) |
removeProjects | array | Projects to remove (--remove-project) |
removeReviewers | array | Remove reviewers (--remove-reviewer) |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
title | string | New 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;…
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
compact | boolean | Prefer compact output |
interval | integer | Polling interval in seconds when watch=true (default 10, min 5, max 300). |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
required | boolean | Filter to show only required checks (--required) |
watch | boolean | Poll 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… |
watchTimeout | integer | Total 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
compact | boolean | Prefer compact output |
full | boolean | Include full patch content in chunks |
nameOnly | boolean | List only changed file names (--name-only) |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
comment | string | Closing comment |
deleteBranch | boolean | Delete the head branch after closing (--delete-branch) |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
comment | string | Comment to post on reopen |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Pull request number, URL, or branch name |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
undo | boolean | Convert 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).
| Parameter | Type | Description |
|---|---|---|
number * | string | Issue number or URL |
comments | boolean | Include issue comments in output (-c/--comments) |
compact | boolean | Prefer compact output |
maxBodyLength | integer | Maximum 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. |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
app | string | Filter by GitHub App (--app) |
assignee | string | Filter by assignee username |
author | string | Filter by author username (-A/--author) |
compact | boolean | Prefer compact output |
label | string | Filter by label |
labels | array | Filter by multiple labels (each maps to --label) |
limit | number | Maximum number of issues to return (default: 30) |
mention | string | Filter by mentioned user (--mention) |
milestone | string | Filter by milestone name or number (-m/--milestone) |
paginate | boolean | Fetch a larger paginated set (up to 1000 issues) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
search | string | GitHub search syntax (-S/--search). A search using OR is grouped in parentheses so results stay in the repository |
state | string | Filter by issue state (default: open) |
issue-create Issue Create
Creates a new issue. Returns structured data with issue number, URL, and labels applied.
| Parameter | Type | Description |
|---|---|---|
body * | string | Issue body/description |
title * | string | Issue title |
assignees | array | Assignee usernames (-a/--assignee) |
labels | array | Labels to apply |
milestone | string | Milestone name or number (-m/--milestone) |
path | string | Repository 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… |
project | string | Project board name (-p/--project) |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
template | string | Issue 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Issue number or URL |
comment | string | Closing comment |
path | string | Repository 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… |
reason | string | Close reason: "completed" or "not planned" |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text |
number * | string | Issue number or URL |
createIfNone | boolean | When used with editLast, create a new comment if no existing comment exists (--create-if-none) |
deleteLast | boolean | Delete the last comment (uses gh issue comment --delete-last) |
editLast | boolean | Edit the last comment instead of creating a new one (--edit-last) |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
number * | string | Issue number or full GitHub issue URL to update |
addAssignees | array | GitHub usernames to assign (preserves existing assignees) |
addLabels | array | Labels to add (preserves existing labels) |
addProjects | array | Project board names to add (--add-project) |
body | string | New issue body/description (replaces existing, sent via stdin) |
milestone | string | Set milestone by name or number (--milestone). Mutually exclusive with removeMilestone. |
path | string | Repository 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… |
removeAssignees | array | GitHub usernames to unassign (ignores users not assigned) |
removeLabels | array | Labels to remove (ignores labels not currently set) |
removeMilestone | boolean | Remove the milestone from the issue (--remove-milestone). Mutually exclusive with milestone. |
removeProjects | array | Project board names to remove (--remove-project) |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
title | string | New 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.
| Parameter | Type | Description |
|---|---|---|
id * | number | Workflow run ID |
attempt | number | View a specific rerun attempt (-a/--attempt) |
compact | boolean | Prefer compact output |
exitStatus | boolean | Exit with non-zero status if run failed (--exit-status) |
grep | string | With 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 |
job | string | View a specific job by ID (-j/--job); ids are in jobs[].id |
log | boolean | Retrieve full run logs (--log) |
logFailed | boolean | Retrieve logs for failed steps only (--log-failed) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
tailLines | integer | With 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.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include runs from disabled workflows (-a/--all) |
branch | string | Filter by branch name |
commit | string | Filter by commit SHA (-c/--commit) |
compact | boolean | Prefer compact output |
created | string | Filter by creation time (--created), e.g. '>2024-01-01' |
event | string | Filter by trigger event type (-e/--event), e.g. push, pull_request |
limit | number | Maximum number of runs to return (default: 20) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (--repo). Default: current repo. |
status | string | Filter by run status |
user | string | Filter by triggering user (-u/--user) |
workflow | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
runId * | number | Workflow run ID to re-run |
debug | boolean | Enable runner diagnostic logging (-d/--debug) |
failedOnly | boolean | Re-run only failed jobs (default: false) |
job | string | Rerun a specific job by its databaseId (-j/--job). Note: requires the job's databaseId, not the job name. |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
tag * | string | Tag name for the release |
assets | array | File paths to upload as release assets (positional args after tag) |
discussionCategory | string | Start a release discussion in this category (--discussion-category) |
draft | boolean | Create as draft release |
failOnNoCommits | boolean | Fail if no commits since last release (--fail-on-no-commits) |
generateNotes | boolean | Auto-generate release notes (--generate-notes) |
latest | boolean | Control the "Latest" badge on the release (--latest/--latest=false) |
notes | string | Release notes/body |
notesFile | string | Read release notes from file (--notes-file). Mutually exclusive with notes. |
notesFromTag | boolean | Use the annotated tag message as release notes (--notes-from-tag) |
notesStartTag | string | Scope auto-generated notes to commits since this tag (--notes-start-tag) |
path | string | Repository 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… |
prerelease | boolean | Mark as prerelease |
repo | string | Repository in owner/repo format (default: current repo) |
target | string | Target commitish (branch or commit SHA) |
title | string | Release title (default: tag name) |
verifyTag | boolean | Verify 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.
| Parameter | Type | Description |
|---|---|---|
content | object | Inline 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. |
description | string | Gist description |
files | array | File paths to include in the gist. Either files or content must be provided. |
path | string | Working directory |
public | boolean | Create 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.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
excludeDrafts | boolean | Exclude draft releases from the list (--exclude-drafts) |
excludePreReleases | boolean | Exclude pre-releases from the list (--exclude-pre-releases) |
limit | number | Maximum number of releases to return (default: 30) |
order | string | Sort order (--order). Default: desc. |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of labels to return (default: 30) |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
search | string | Filter labels by search term |
label-create Label Create
Creates a new repository label. Returns structured data with label name, description, color, and URL.
| Parameter | Type | Description |
|---|---|---|
name * | string | Label name |
color | string | Label color as hex (e.g., 'ff0000' without #) |
description | string | Label description |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Secret name |
value * | string | Secret value |
app | string | GitHub app scope for secrets: actions, codespaces, or dependabot |
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
repos | array | Repositories that can access an organization secret/variable when visibility=selected |
visibility | string | Organization 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.
| Parameter | Type | Description |
|---|---|---|
app | string | GitHub app scope for secrets: actions, codespaces, or dependabot |
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
secret-delete Secret Delete
Deletes a repository, organization, or environment GitHub Actions secret.
| Parameter | Type | Description |
|---|---|---|
name * | string | Secret name |
app | string | GitHub app scope for secrets: actions, codespaces, or dependabot |
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name |
value * | string | Variable value |
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
repos | array | Repositories that can access an organization secret/variable when visibility=selected |
visibility | string | Organization visibility: all, private, or selected |
variable-list Variable List
Lists repository, organization, or environment GitHub Actions variables with values and metadata.
| Parameter | Type | Description |
|---|---|---|
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository in OWNER/REPO format (default: current repo) |
variable-delete Variable Delete
Deletes a repository, organization, or environment GitHub Actions variable.
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name |
env | string | Deployment environment name |
org | string | Organization |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
path | string | Repository 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… |
repo | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository in OWNER/REPO format or full URL |
depth | number | Create a shallow clone with this many commits (passed as -- --depth=N) |
directory | string | Target directory for the clone |
path | string | Working 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository in OWNER/REPO format |
category | string | Filter by discussion category ID |
compact | boolean | Prefer compact output |
limit | number | Maximum number of discussions to return (default: 20) |
path | string | Repository 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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | GitHub API endpoint (e.g., repos/owner/repo/pulls, /user) |
body | object | JSON request body as key-value pairs (sent via --input) |
cache | string | Cache TTL for responses, e.g. '5m', '1h' (--cache) |
fields | object | Key-value pairs sent as --raw-field parameters |
headers | object | Custom HTTP headers as key-value pairs (each maps to -H/--header) |
hostname | string | GitHub Enterprise hostname (--hostname) |
include | boolean | Include response headers in output (-i/--include) |
inputFile | string | Read request body from file (--input). Mutually exclusive with body. |
jq | string | jq filter expression to apply to the response (JSON responses only) |
method | string | HTTP method (default: GET) |
paginate | boolean | Enable pagination (--paginate). Fetches all pages. |
path | string | Repository 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… |
preview | string | API preview feature name (--preview) |
query | string | GraphQL query string. When provided, makes a GraphQL request via `gh api graphql`. |
silent | boolean | Suppress response body output (--silent) |
slurp | boolean | Combine paginated JSON arrays into a single array (--slurp) |
typedFields | object | Key-value pairs sent as --field parameters (typed: booleans, numbers, null parsed by gh) |
variables | object | GraphQL variables as key-value pairs. Only used with `query` parameter. |
verbose | boolean | Show verbose debug output (--verbose) |