github-tools
v0.17.0GitHub tools for coding agents: issues, boards, pull requests, repositories, releases and Actions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
github_issue_read Read GitHub issues
Read GitHub issues. method "view": one issue in full: state, body, kind, labels, assignees, milestone, issue fields, parent, sub-issues with progress, blocked-by and blocking (dependencies_error says when those could not be read), linked branches, closing pull requests, boards and the latest comments. method "list": a repository's issues (with issue fields) filtered by state (default open), kind, milestone, label, assignee and extra search words in query (repo:, org:, user: are refused), or with parent, that issue's sub-issues; truncated says more matched than limit. An issue is 12, #12, owner…
| Parameter | Type | Description |
|---|---|---|
method * | string | "view" reads one issue in full; "list" lists issues. |
assignee | string | list: a login, "@me", or "none" for unassigned issues. |
comments | integer | view: how many of the latest comments to include (default 5, 0 for none). |
issue | string | view: the issue, as 12, #12, owner/repo#12 or its URL. |
kind | string | list: the kind to match, such as bug: the organization's Issue Type of that name, else the type:<kind> label. |
label | string | list: a label every issue must carry. |
limit | integer | list: the most issues to return (default 30). |
milestone | string | list: a milestone title, or "none" for issues without one. |
parent | string | list: an issue (12, #12, owner/repo#12 or URL) whose sub-issues to list instead of searching. |
query | string | list: more GitHub search words, such as "sort:updated-desc crash"; repo:, org: and user: are refused. field.<name>:<value> filters by an issue field, e.g. field.priority:high or field."target date":>=… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
state | string | list: open, closed or all (default open). |
github_issue_create Create a GitHub issue
Create an issue in a repository the viewer may write to, and settle its place in the same call: kind (an Issue Type, else a type:<kind> label that is created when missing), labels, assignees (they are notified), milestone, parent and blocked-by issues, organization issue fields, and a project board with field values (the Status starts as Todo, or Waiting when an open issue blocks it). Everything that can fail is checked before the issue is made: the milestone exists (unless create_milestone is true), the issue fields, their options and values exist (a repository without issue fields refuses th…
| Parameter | Type | Description |
|---|---|---|
title * | string | The issue's title. |
assignees | array | Logins, or "@me". |
blocked_by | array | Issues that block this one, in the same forms as parent. |
body | string | Markdown body; empty when left out. |
create_milestone | boolean | Create the milestone when it does not exist; needs milestone. |
fields | object | Board field values to set, by field name: {"Target": "2026-12-01"}; needs project. A Status given here replaces the default. The issue's organization fields go in issue_fields. |
issue_fields | object | The organization's issue fields to set, by field name (without regard to case): {"Priority": "High", "Target date": "2026-12-01"}. Each takes a text, a number, a date as YYYY-MM-DD, an option name, or… |
kind | string | Such as bug or feature: the organization's Issue Type of that name, else the type:<kind> label. |
labels | array | Labels to add; they must exist. |
milestone | string | A milestone title. |
parent | string | The parent issue: 12, #12, owner/repo#12 or its URL. |
project | string | A board to put the issue on: its number, owner/number or its URL, or its title; none by default. The issue starts as Todo on the board when it has that Status option, or Waiting when it is blocked by… |
repo | string | owner/name; defaults to the working tree's repository (its origin). |
github_issue_edit Edit a GitHub issue
Change an issue in one call: title, body (body replaces it, append_body adds after a blank line), kind (an Issue Type, else a type:<kind> label that replaces the other type: labels), labels and assignees to add or remove (added assignees are notified), milestone or remove_milestone, and organization issue fields to set or clear. A milestone that does not exist is an error unless create_milestone is true. Issue fields, their options and values are checked before anything is written; a repository without issue fields refuses them. Needs write permission on the repository. An issue is 12, #12, ow…
| Parameter | Type | Description |
|---|---|---|
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
add_assignees | array | Logins, or "@me". |
add_labels | array | Labels to add; they must exist. |
append_body | string | Text added after the current body, set off by a blank line. |
body | string | The new body, which replaces the whole old one; empty clears it. |
clear_issue_fields | array | Issue fields to clear, by name. |
create_milestone | boolean | Create the milestone when it does not exist; needs milestone. |
issue_fields | object | The organization's issue fields to set, by field name (without regard to case): {"Priority": "High", "Target date": "2026-12-01"}. Each takes a text, a number, a date as YYYY-MM-DD, an option name, or… |
kind | string | Such as bug: the organization's Issue Type of that name, else the type:<kind> label, replacing other type: labels. |
milestone | string | A milestone title to set. |
remove_assignees | array | |
remove_labels | array | |
remove_milestone | boolean | Take the issue out of its milestone. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
title | string | The new title. |
github_issue_comment Comment on a GitHub issue
Post a comment on an issue; the people following it are notified and the comment stays on the issue. Needs write permission on the repository. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment, in Markdown. |
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_issue_close Close a GitHub issue
Close an issue with a reason: completed, not_planned or duplicate (duplicate_of names the original, in the same forms as an issue). The comment, if any, is posted as it closes, and the people following the issue are notified. An issue that is closed already is left as it is: nothing is sent, the comment is not posted, changed is false and state_reason is its current reason. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
reason * | string | Why it is closed. |
comment | string | A comment to post as the issue closes. |
duplicate_of | string | With reason duplicate: the issue it duplicates, as 12, #12, owner/repo#12 or its URL. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_issue_reopen Reopen a GitHub issue
Reopen a closed issue; the comment, if any, is posted as it reopens, and the people following the issue are notified. An issue that is open already is left as it is: nothing is sent, the comment is not posted and changed is false. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
comment | string | A comment to post as the issue reopens. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_issue_relate Relate GitHub issues
Set an issue's parent (parent or remove_parent), sub-issues, blocked-by and blocking issues (add_ and remove_ lists) in one call. It reads the current relations first and sends only the difference, so a rerun is safe; what already holds is listed as unchanged. GitHub allows 100 sub-issues per parent, all of one owner. Every other repository named needs write permission too and is listed in other_repos. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.
| Parameter | Type | Description |
|---|---|---|
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
add_blocked_by | array | Issues that block this one, in the same forms. |
add_blocking | array | Issues this one blocks, in the same forms. |
add_sub_issues | array | Issues to add as sub-issues: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository. |
parent | string | The issue to set as the parent: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository. |
remove_blocked_by | array | |
remove_blocking | array | |
remove_parent | boolean | Take the issue out of its parent; not with parent. |
remove_sub_issues | array | |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_issue_develop Link a development branch to a GitHub issue
Create a branch on GitHub linked to an issue (its Development panel), or return the linked branch that exists already. It goes through the API: nothing is fetched or checked out locally. With branch, a linked branch of that name is reused; without it, the first linked branch in the branch repository. A new branch starts from base (it must exist) or the default branch. A pull request opened from a linked branch closes the issue when it merges, with no closing keyword; use a plain branch when the first merge should not close it.
| Parameter | Type | Description |
|---|---|---|
issue * | string | The issue, as 12, #12, owner/repo#12 or its URL. |
base | string | The branch to start from, which must exist; defaults to the branch repository's default branch. |
branch | string | The branch name; when left out, a linked branch in the branch repository is reused, else GitHub names one. |
branch_repo | string | owner/name of the repository to create the branch in; defaults to the issue's repository. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_pr_read Read GitHub pull requests
Read GitHub pull requests. method "view": one pull request in full: state, draft, body, branches, mergeability, reviews, unresolved threads, closing issues, auto-merge, its place in a stack, check summary, boards and the latest comments. A cancelled check counts as failed. method "list": a repository's pull requests filtered by state (default open), author, assignee, base, head, label and extra search words in query (repo:, org:, user: are refused); truncated says more matched than limit. method "checks": the checks of the last commit, each with its outcome, and the end of the log of failed Gi…
| Parameter | Type | Description |
|---|---|---|
method * | string | "view" reads one pull request in full; "list" lists pull requests; "checks" reads (and waits for) its checks; "diff" reads its changed files and patches. |
assignee | string | list: a login, "@me", or "none" for unassigned pull requests. |
author | string | list: an author login or "@me". |
base | string | list: the base branch name. |
comments | integer | view: how many of the latest comments to include (default 5, 0 for none). |
fail_fast | boolean | checks: stop waiting as soon as one check fails (default true). |
head | string | list: the head branch name. |
label | string | list: a label every pull request must carry. |
limit | integer | list: the most pull requests to return (default 30). |
log_lines | integer | checks: lines from the end of each failed job's log (default 80, 0 reads no logs). |
patch | boolean | diff: include each file's patch (default true). |
paths | array | diff: keep only files at one of these paths or under one as a directory, such as src/core. |
pr | string | view, checks, diff: the pull request, as 12, #12, owner/repo#12 or its URL. |
query | string | list: more GitHub search words, such as "sort:updated-desc crash"; repo:, org: and user: are refused. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
state | string | list: open, closed, merged or all (default open). |
wait | integer | checks: seconds this call may wait for the checks to settle (default 45, 0 reads once). |
github_pr_create Create a GitHub pull request
Open a pull request from a pushed branch of a repository the viewer may write to into another branch of it (default: the default branch), and settle its place in the same call: draft, labels, assignees and reviewers (they are notified), milestone, the issues it closes (a `Closes #12` line at the end of the body) and a project board with field values (the Status starts as Todo). Pull requests from forks are not supported yet. Everything that can fail is checked before the pull request is made: the branches exist, head_sha (when given) is still the head, no pull request is open from head into ba…
| Parameter | Type | Description |
|---|---|---|
head * | string | The branch of the repository to merge from; it must be pushed already. |
title * | string | The pull request's title. |
assignees | array | Logins, or "@me". |
attachments | array | Images and videos to upload with the text. |
base | string | The branch of the repository to merge into; defaults to its default branch. |
body | string | Markdown body; empty when left out. |
closes | array | Issues this pull request closes when it merges, as 12, #12, owner/repo#12 or an issue URL (a bare number means the pull request's repository): a `Closes #12` line is added to the end of the body. GitH… |
draft | boolean | Open it as a draft (default false). |
fields | object | Board field values to set, by field name: {"Target": "2026-12-01"}; needs project. A Status given here replaces the Todo default. |
head_sha | string | The commit the head branch must be at (40 hex characters): the call fails with stale, creating nothing, when the branch moved. |
labels | array | Labels to add; they must exist. |
milestone | string | A milestone title; it must exist. |
project | string | A board to put the pull request on: its number, owner/number or its URL, or its title; none by default. The pull request starts as Todo on the board when it has that Status option. |
repo | string | owner/name; defaults to the working tree's repository (its origin). |
reviewers | array | Logins, or org/team, to request a review from; they are notified. |
github_pr_edit Edit a GitHub pull request
Change a pull request in one call: title, body (body replaces it, append_body adds after a blank line), base branch (not for a merged pull request), labels, assignees and reviewers to add or remove (added assignees and reviewers are notified), milestone or remove_milestone, and the issues it closes (add_closes adds a `Closes #12` line to the body, remove_closes removes such lines). A milestone that does not exist is an error. Needs write permission on the repository. append_body goes before the closing lines (Closes #12) the body ends with, so those stay the last lines. After closing issues ch…
| Parameter | Type | Description |
|---|---|---|
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
add_assignees | array | Logins, or "@me". |
add_closes | array | Issues to close when it merges, in the same forms as closes: a `Closes #12` line is added to the end of the body unless the body has one already. |
add_labels | array | Labels to add; they must exist. |
add_reviewers | array | Logins, or org/team, to request a review from; they are notified. |
append_body | string | Text added after the current body, set off by a blank line. |
attachments | array | Images and videos to upload with the text. |
base | string | The branch of the repository to merge into; not for a merged pull request. |
body | string | The new body, which replaces the whole old one; empty clears it. |
milestone | string | A milestone title to set; it must exist. |
remove_assignees | array | |
remove_closes | array | Issues to stop closing: the body's lines that are only a closing keyword and that issue are removed. A mention in a sentence or a commit message is left as it is, so the issue can stay linked. |
remove_labels | array | |
remove_milestone | boolean | Take the pull request out of its milestone. |
remove_reviewers | array | |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
title | string | The new title. |
github_pr_comment Comment on a GitHub pull request
Post a comment on a pull request; the people following it are notified and the comment stays on the pull request. Needs write permission on the repository. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo. Attachments are images (png, jpg, gif, webp, svg, up to 10 MiB) and videos (mp4, mov, webm, up to 100 MiB), up to 50, uploaded with the text: a body reference like `` becomes the uploaded file and the others are appended; they need gh 2.99 or newer, and a file that fails to upload is listed under errors.attachme…
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment, in Markdown. |
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
attachments | array | Images and videos to upload with the text. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_pr_ready Mark a GitHub pull request ready, or back to draft
Mark a draft pull request ready for review, or with undo true turn it back into a draft. Marking it ready notifies the people asked to review it. A pull request that is in the asked state already is left as it is: nothing is sent and changed is false. Only an open pull request can change; a closed or merged one is an error. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
undo | boolean | Turn the pull request back into a draft instead of marking it ready. |
github_pr_close Close a GitHub pull request
Close a pull request without merging it; its branch is not deleted. The comment, if any, is posted as it closes, and the people following the pull request are notified. A pull request that is closed or merged already is left as it is: nothing is sent, the comment is not posted, changed is false and state says which. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
comment | string | A comment to post as the pull request closes. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_pr_reopen Reopen a GitHub pull request
Reopen a closed pull request; the comment, if any, is posted as it reopens, and the people following the pull request are notified. A merged pull request cannot be reopened. A pull request that is open already is left as it is: nothing is sent, the comment is not posted and changed is false. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
| Parameter | Type | Description |
|---|---|---|
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
comment | string | A comment to post as the pull request reopens. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_pr_review Review a GitHub pull request
Post a review on a pull request: approve to approve changes, request_changes to request revisions (body required), or comment for general feedback. Only an open pull request can be approved or have changes requested, and GitHub does not let an author approve their own pull request or request changes on it. Line comments can be attached: path and line in the new version (or side left for a removed line), and start_line for a multi-line range. Pass head_sha to ensure the review posts only on the commit that was reviewed; if new commits arrived, the call fails without posting. A pull request is 1…
| Parameter | Type | Description |
|---|---|---|
event * | string | The review action: approve, request_changes, or comment. |
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
body | string | The review text. Required for request_changes and for comment without line comments; optional for approve. |
comments | array | Optional array of up to 50 line comments. |
head_sha | string | Optional 40-character commit SHA the review was based on. Fails if new commits arrived. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_pr_merge Merge a GitHub pull request
Merge a pull request with merge, squash or rebase. Every pull request, stacked or not, merges through one GitHub request that this call follows until it ends. method may be left out when the repository allows only one; when it allows several, or the one asked is not allowed, the call fails saying which are. Pass head_sha, the commit that was reviewed, to merge only that: if new commits arrived the call fails with stale and merges nothing. The head merged is always the one read at the start. subject and body set the merge or squash commit's title and message; a rebase makes no merge commit, so…
| Parameter | Type | Description |
|---|---|---|
pr * | string | The pull request, as 12, #12, owner/repo#12 or its URL. |
body | string | The merge or squash commit's message. Not for rebase. For a stacked merge it applies to the named pull request only. |
delete_branch | boolean | Delete the head branch of each pull request that merged, best effort (default false). |
head_sha | string | Optional 40-character commit SHA the pull request was reviewed at. Fails with stale, merging nothing, if new commits arrived. |
method | string | How to merge: merge, squash or rebase. Optional when the repository allows only one; required when it allows several. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
subject | string | The merge or squash commit's title. Not for rebase. For a stacked merge it applies to the named pull request only. |
with_lower_layers | boolean | For a pull request in a stack: also merge the open layers below it, which merging it does anyway (default false: refuse and list them). |
github_stack_read Read GitHub stacks of pull requests
Read GitHub native stacks, chains of pull requests where each is based on the head branch of the one below. method "view": one stack with its pull requests bottom to top (position 1 is the bottom): state, draft, branches and head commit of each; name it by stack number or by a pull request in it, and a pull request in no stack gives stack null (not an error). method "list": a repository's stacks, open ones by default (state all adds the others), each with its pull request numbers bottom to top; truncated says more matched than limit (default 30). A pull request is 12, #12, owner/repo#12 or its…
| Parameter | Type | Description |
|---|---|---|
method * | string | "view" reads one stack with its pull requests; "list" lists the repository's stacks. |
limit | integer | list: the most stacks to return (default 30). |
pr | string | view: a pull request in the stack, as 12, #12, owner/repo#12 or its URL. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
stack | integer | view: the stack's number (not a pull request's). |
state | string | list: open or all (default open). |
github_stack_link Link GitHub pull requests into a stack
Make a native stack of open pull requests of one repository, listed bottom to top, or put more of them on top of an existing stack. Each pull request's base branch must be the head branch of the one below it. It never changes a base or opens a pull request: github_pr_create and github_pr_edit do that, and a chain whose bases do not match is refused with the base to fix. An existing stack only grows on top: list its top pull request (or a longer run of its top, up to all of it) and then the new ones. It is idempotent: pull requests that are in the stack already change nothing and changed is fal…
| Parameter | Type | Description |
|---|---|---|
prs * | array | The pull request numbers of the repository, bottom to top; at least 2 unless some are in a stack already, and at most 100. Each one's base branch is the head branch of the one before it. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
github_stack_unlink Take GitHub pull requests out of a stack
Take the pull requests out of a native stack, named by its number or by a pull request in it. Every unmerged pull request leaves (open, draft and closed ones); merged and queued ones stay in the stack, and remaining shows what is left, null when the stack is gone. The pull requests stay open with their branches and bases as they were, and nothing is deleted: github_stack_link can build the stack again. A pull request in no stack is left alone: nothing is sent and changed is false. A pull request is 12, #12, owner/repo#12 or its URL.
| Parameter | Type | Description |
|---|---|---|
pr | string | A pull request in the stack. The pull request, as 12, #12, owner/repo#12 or its URL. |
repo | string | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. |
stack | integer | The stack's number (not a pull request's). |
github_project_read Read GitHub project boards
Read GitHub project boards (Projects v2). method "view": the board the lookup finds, its fields (with single-select options and iterations; a field mirroring an issue field is marked issue_field) and its views, with the route that found it and what every route considered. method "list": an owner's boards (owner, a login or @me) or the boards linked to a repository (repo, default the working tree's), open ones unless include_closed; truncated says more matched than limit (default 30). method "item_list": the board's items, filtered here by status (names, comma-separated, "-Name" leaves one out)…
| Parameter | Type | Description |
|---|---|---|
method * | string | "view" reads a board with its fields and views; "list" lists boards; "item_list" lists a board's items. |
content_repo | string | item_list: only issues and pull requests of this owner/name; drafts never match. |
content_type | string | item_list: only issues, pull requests or drafts. |
include_archived | boolean | item_list: include archived items (default false). |
include_closed | boolean | list: include closed boards (default false). |
limit | integer | list: the most boards to return (1-100, default 30). item_list: the most items to return (1-2000, default 100). |
owner | string | A user or organization login, or "@me". view, item_list: the owner of a numbered board, else the only owner whose boards are searched for a title. list: whose boards to list. |
project | string | view, item_list: the board, as its number, owner/number or its URL (used as it is, closed too; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title,… |
repo | string | owner/name; defaults to the working tree's repository (its origin). view, item_list: where the lookup starts, and the owner of a bare board number. list: the repository whose linked boards to list. |
search | string | item_list: a case-insensitive part of the item's title. |
status | string | item_list: Status option names, comma-separated, case-insensitive; "-Name" leaves that status out. Both kinds apply. |
github_project_create Create a GitHub project board
Create a project board for a user or organization, or reuse the open board of that owner and exact title (case-insensitive; several are invalid_argument), and bring it to the standard template. The title defaults to Roadmap. A board that has to be made is empty, or a copy of template without its draft items. With standard (the default): the fields Status (Todo, In Progress, Waiting, Done, Cancelled, each with a color and a description), Start and Target (dates), and the views Roadmap, Kanban and Backlog. On a board this call made, Status gets exactly those options, keeping the ids of GitHub's…
| Parameter | Type | Description |
|---|---|---|
owner * | string | The user or organization login that owns the board, or "@me". |
dates | string | "board" (default) makes the board's own date fields Start and Target; "issue_fields" uses the organization's issue fields Start date and Target date instead, so an issue carries the same dates on ever… |
link_repo | string | owner/name of a repository to link the board to; needs write permission. |
standard | boolean | Bring the board to the standard template: its fields and views (default true). |
template | string | A board to copy, without its draft items, when the board has to be made: its number, owner/number or URL (a bare number or a title is looked up among owner's boards). |
title | string | The board's title (default Roadmap). |
github_project_link Link a GitHub project to a repository
Link a project board to a repository, so the board lookup finds it among that repository's boards. The viewer must be able to update the board and write to the repository; a board that is already linked is left as it is (changed: false). GitHub links only boards of the repository's own owner, so a board of another user or organization is invalid_argument, before anything is written. A board is named by project: its number, owner/number or its URL, used as it is; any other project is a title, and no project is Roadmap: the open board of that whole title is looked up, never guessed, in owner's b…
| Parameter | Type | Description |
|---|---|---|
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name of the repository to link or unlink; defaults to the working tree's repository (its origin). Also where the board lookup starts. |
github_project_unlink Unlink a GitHub project from a repository
Unlink a project board from a repository. The viewer must be able to update the board and write to the repository; a board that is not linked is left as it is (changed: false). Nothing on the board is deleted. A board is named by project: its number, owner/number or its URL, used as it is; any other project is a title, and no project is Roadmap: the open board of that whole title is looked up, never guessed, in owner's boards if owner is given, else in the boards linked to repo, then its organization's, then the viewer's. Needs a token with the project scope; if GitHub reports missing scopes,…
| Parameter | Type | Description |
|---|---|---|
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name of the repository to link or unlink; defaults to the working tree's repository (its origin). Also where the board lookup starts. |
github_project_field_ensure Ensure a GitHub project field
Make sure a field exists on a project board the viewer may update, without ever making a second one: a missing field is created, and the missing options of an existing single select are appended after its own, which keep their id, name, color, description and order, so nothing already set moves. A new single_select field needs options. Status can be extended but not created. A field of that name with another type, options on a field that is not single_select, a repeated option name and a color GitHub does not list are invalid_argument, before anything is written. With issue_field: true (organi…
| Parameter | Type | Description |
|---|---|---|
name * | string | The field's name, matched without regard to case. |
issue_field | boolean | Add a column that mirrors the organization's issue field of that name instead of a field of the board's own; its options and values are the organization's and the issue's. |
options | array | single_select only, not with issue_field: Name, Name:COLOR or Name:COLOR:Description (the description is everything after the second colon). COLOR is one of GRAY, BLUE, GREEN, YELLOW, ORANGE, RED, PIN… |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, and the owner of a bare board number. |
type | string | The field's type; a field of that name with another type is invalid_argument. Required unless issue_field is true, where it only checks the issue field's type. |
github_project_view_ensure Ensure a GitHub project view
Make sure a saved view exists on a project board the viewer may update: a view of that name (without regard to case) is left exactly as it is, and a missing one is created through the REST API with its layout, filter, fields, sorting and grouping. A field name the board lacks, fields on a roadmap, column_by on a layout other than board, grouping by Sub-issues progress or Linked pull requests and sort_desc without sort_by are invalid_argument, before anything is written. The API cannot set a roadmap's date fields. A board is named by project: its number, owner/number or its URL, used as it is;…
| Parameter | Type | Description |
|---|---|---|
layout * | string | |
name * | string | The view's name, matched without regard to case. |
column_by | string | board layout only: the field name the columns follow. |
fields | array | The fields shown, by name and in order (built-in ones too, such as Assignees or Parent issue); not for a roadmap. |
filter | string | A project filter, such as "-status:Done -status:Cancelled". |
group_by | string | A field name to group by; not Sub-issues progress or Linked pull requests. |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, and the owner of a bare board number. |
sort_by | string | A field name to sort by. |
sort_desc | boolean | Sort descending (default false); needs sort_by. |
github_project_item_add Add an issue or pull request to a GitHub project
Put an issue or pull request on a project board the viewer may update, and set field values in the same call. Adding is idempotent: one that is already on the board (archived or not) is returned as it is (created: false) and only the given fields are set. A new item with no Status given starts as Waiting when it is an issue with an open blocking issue and the board has a Waiting option, else as Todo when the board has that option; a board without a Status single select gets no default. Once the item is on the board, a field that fails to set does not fail the call: it is listed in errors as fi…
| Parameter | Type | Description |
|---|---|---|
item * | string | The issue or pull request to put on the board: 12, #12, owner/repo#12 or its URL; a bare number means repo, else the working tree's repository. |
fields | object | Field values to set, by field name: {"Status": "Todo", "Target": "2026-12-01"}. Values are text, a number, a YYYY-MM-DD date, an option name or an iteration title (@current is the one containing today… |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, the owner of a bare board number, and the repository of a bare issue or pull request number. |
github_project_item_create Create a draft item on a GitHub project
Create a draft item (a title and a body that live only on the board, with no repository, labels or milestone) on a project board the viewer may update, and set field values in the same call. github_project_item_convert turns a draft into an issue. With no Status given the draft starts as Todo when the board has a Status single select with that option. Once the draft exists, a field that fails to set does not fail the call: it is listed in errors as fields.<Field name>, and the item is still returned. Field values are set by field name and option or iteration name, matched without regard to cas…
| Parameter | Type | Description |
|---|---|---|
title * | string | The draft's title. |
body | string | Markdown body; empty when left out. |
fields | object | Field values to set, by field name: {"Status": "Todo", "Target": "2026-12-01"}. Values are text, a number, a YYYY-MM-DD date, an option name or an iteration title (@current is the one containing today… |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, and the owner of a bare board number. |
github_project_item_edit Edit a GitHub project item
Change a project item in one call: field values (fields) and fields to empty (clear_fields), and, for a draft only, its title, body (replaces it) or append_body (adds after a blank line). A value an item already holds, and an empty field to clear, are skipped; if everything is in place nothing is written (changed: []). Everything is checked before the first write: a field in both fields and clear_fields, body with append_body, a blank title, draft text on an issue or pull request, an unknown field, option or iteration, a bad date and nothing to change are invalid_argument. A write that fails t…
| Parameter | Type | Description |
|---|---|---|
item * | string | The board item: its node ID (PVTI_…), or an issue or pull request as 12, #12, owner/repo#12 or its URL, found on the board that project, owner and repo choose. A draft can only be named by its ID. |
append_body | string | Drafts only: text added after the current body, set off by a blank line. |
body | string | Drafts only: the new body, which replaces the whole old one; empty clears it. |
clear_fields | array | Names of the fields to empty. A column that mirrors an issue field is cleared with clear_issue_fields in github_issue_edit, not here. |
fields | object | Field values to set, by field name: {"Status": "Todo", "Target": "2026-12-01"}. Values are text, a number, a YYYY-MM-DD date, an option name or an iteration title (@current is the one containing today… |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, the owner of a bare board number, and the repository of a bare issue or pull request number. |
title | string | Drafts only: the new title. |
github_project_item_archive Archive a GitHub project item
Archive an item on a project board the viewer may update: it leaves the board's views and github_project_read's item_list unless include_archived, and github_project_item_unarchive brings it back. Nothing is deleted. An item that is already archived is left as it is (changed: false). An item is named by its node ID (PVTI_…), which also tells its board (a project given beside it must be that board), or by an issue or pull request (12, #12, owner/repo#12 or its URL) that is on the board the lookup finds. A draft can only be named by its ID. A board is named by project: its number, owner/number…
| Parameter | Type | Description |
|---|---|---|
item * | string | The board item: its node ID (PVTI_…), or an issue or pull request as 12, #12, owner/repo#12 or its URL, found on the board that project, owner and repo choose. A draft can only be named by its ID. |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, the owner of a bare board number, and the repository of a bare issue or pull request number. |
github_project_item_unarchive Unarchive a GitHub project item
Bring an archived item back onto a project board the viewer may update, with its field values. An item that is not archived is left as it is (changed: false). An item is named by its node ID (PVTI_…), which also tells its board (a project given beside it must be that board), or by an issue or pull request (12, #12, owner/repo#12 or its URL) that is on the board the lookup finds. A draft can only be named by its ID. A board is named by project: its number, owner/number or its URL, used as it is; any other project is a title, and no project is Roadmap: the open board of that whole title is loo…
| Parameter | Type | Description |
|---|---|---|
item * | string | The board item: its node ID (PVTI_…), or an issue or pull request as 12, #12, owner/repo#12 or its URL, found on the board that project, owner and repo choose. A draft can only be named by its ID. |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, the owner of a bare board number, and the repository of a bare issue or pull request number. |
github_project_item_convert Convert a GitHub project draft into an issue
Turn a draft item into an issue of a repository the viewer may write to: the draft's title and body become the issue, and the item stays on the board with its field values. The viewer must also be able to update the board; both are checked before anything is written. An item that is not a draft is invalid_argument. Then settle the issue as github_issue_create does: kind (an Issue Type, else a type:<kind> label that is created when missing), labels and milestone. A milestone that does not exist fails before the draft is converted unless create_milestone is true. Once the issue exists, a failed…
| Parameter | Type | Description |
|---|---|---|
item * | string | The draft item's node ID (PVTI_…); only a draft can be turned into an issue. |
create_milestone | boolean | Create the milestone when it does not exist; needs milestone. |
kind | string | Such as bug or feature: the organization's Issue Type of that name, else the type:<kind> label. |
labels | array | Labels to add; they must exist. |
milestone | string | A milestone title. |
owner | string | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. |
project | string | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (… |
repo | string | owner/name of the repository the issue is created in; defaults to the working tree's repository (its origin). Also where the board lookup starts. |