github-tools

v0.17.0
io.github.craft-agent/github-tools Checked 2 hours ago Published 1 day ago

GitHub 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…

ParameterTypeDescription
method *string"view" reads one issue in full; "list" lists issues.
assigneestringlist: a login, "@me", or "none" for unassigned issues.
commentsintegerview: how many of the latest comments to include (default 5, 0 for none).
issuestringview: the issue, as 12, #12, owner/repo#12 or its URL.
kindstringlist: the kind to match, such as bug: the organization's Issue Type of that name, else the type:<kind> label.
labelstringlist: a label every issue must carry.
limitintegerlist: the most issues to return (default 30).
milestonestringlist: a milestone title, or "none" for issues without one.
parentstringlist: an issue (12, #12, owner/repo#12 or URL) whose sub-issues to list instead of searching.
querystringlist: 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":>=…
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
statestringlist: 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…

ParameterTypeDescription
title *stringThe issue's title.
assigneesarrayLogins, or "@me".
blocked_byarrayIssues that block this one, in the same forms as parent.
bodystringMarkdown body; empty when left out.
create_milestonebooleanCreate the milestone when it does not exist; needs milestone.
fieldsobjectBoard 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_fieldsobjectThe 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…
kindstringSuch as bug or feature: the organization's Issue Type of that name, else the type:<kind> label.
labelsarrayLabels to add; they must exist.
milestonestringA milestone title.
parentstringThe parent issue: 12, #12, owner/repo#12 or its URL.
projectstringA 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…
repostringowner/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…

ParameterTypeDescription
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
add_assigneesarrayLogins, or "@me".
add_labelsarrayLabels to add; they must exist.
append_bodystringText added after the current body, set off by a blank line.
bodystringThe new body, which replaces the whole old one; empty clears it.
clear_issue_fieldsarrayIssue fields to clear, by name.
create_milestonebooleanCreate the milestone when it does not exist; needs milestone.
issue_fieldsobjectThe 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…
kindstringSuch as bug: the organization's Issue Type of that name, else the type:<kind> label, replacing other type: labels.
milestonestringA milestone title to set.
remove_assigneesarray
remove_labelsarray
remove_milestonebooleanTake the issue out of its milestone.
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
titlestringThe 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.

ParameterTypeDescription
body *stringThe comment, in Markdown.
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
repostringowner/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.

ParameterTypeDescription
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
reason *stringWhy it is closed.
commentstringA comment to post as the issue closes.
duplicate_ofstringWith reason duplicate: the issue it duplicates, as 12, #12, owner/repo#12 or its URL.
repostringowner/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.

ParameterTypeDescription
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
commentstringA comment to post as the issue reopens.
repostringowner/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.

ParameterTypeDescription
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
add_blocked_byarrayIssues that block this one, in the same forms.
add_blockingarrayIssues this one blocks, in the same forms.
add_sub_issuesarrayIssues to add as sub-issues: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.
parentstringThe issue to set as the parent: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.
remove_blocked_byarray
remove_blockingarray
remove_parentbooleanTake the issue out of its parent; not with parent.
remove_sub_issuesarray
repostringowner/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.

ParameterTypeDescription
issue *stringThe issue, as 12, #12, owner/repo#12 or its URL.
basestringThe branch to start from, which must exist; defaults to the branch repository's default branch.
branchstringThe branch name; when left out, a linked branch in the branch repository is reused, else GitHub names one.
branch_repostringowner/name of the repository to create the branch in; defaults to the issue's repository.
repostringowner/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…

ParameterTypeDescription
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.
assigneestringlist: a login, "@me", or "none" for unassigned pull requests.
authorstringlist: an author login or "@me".
basestringlist: the base branch name.
commentsintegerview: how many of the latest comments to include (default 5, 0 for none).
fail_fastbooleanchecks: stop waiting as soon as one check fails (default true).
headstringlist: the head branch name.
labelstringlist: a label every pull request must carry.
limitintegerlist: the most pull requests to return (default 30).
log_linesintegerchecks: lines from the end of each failed job's log (default 80, 0 reads no logs).
patchbooleandiff: include each file's patch (default true).
pathsarraydiff: keep only files at one of these paths or under one as a directory, such as src/core.
prstringview, checks, diff: the pull request, as 12, #12, owner/repo#12 or its URL.
querystringlist: more GitHub search words, such as "sort:updated-desc crash"; repo:, org: and user: are refused.
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
statestringlist: open, closed, merged or all (default open).
waitintegerchecks: 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…

ParameterTypeDescription
head *stringThe branch of the repository to merge from; it must be pushed already.
title *stringThe pull request's title.
assigneesarrayLogins, or "@me".
attachmentsarrayImages and videos to upload with the text.
basestringThe branch of the repository to merge into; defaults to its default branch.
bodystringMarkdown body; empty when left out.
closesarrayIssues 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…
draftbooleanOpen it as a draft (default false).
fieldsobjectBoard field values to set, by field name: {"Target": "2026-12-01"}; needs project. A Status given here replaces the Todo default.
head_shastringThe commit the head branch must be at (40 hex characters): the call fails with stale, creating nothing, when the branch moved.
labelsarrayLabels to add; they must exist.
milestonestringA milestone title; it must exist.
projectstringA 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.
repostringowner/name; defaults to the working tree's repository (its origin).
reviewersarrayLogins, 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…

ParameterTypeDescription
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
add_assigneesarrayLogins, or "@me".
add_closesarrayIssues 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_labelsarrayLabels to add; they must exist.
add_reviewersarrayLogins, or org/team, to request a review from; they are notified.
append_bodystringText added after the current body, set off by a blank line.
attachmentsarrayImages and videos to upload with the text.
basestringThe branch of the repository to merge into; not for a merged pull request.
bodystringThe new body, which replaces the whole old one; empty clears it.
milestonestringA milestone title to set; it must exist.
remove_assigneesarray
remove_closesarrayIssues 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_labelsarray
remove_milestonebooleanTake the pull request out of its milestone.
remove_reviewersarray
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
titlestringThe 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 `![alt](./shot.png)` 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…

ParameterTypeDescription
body *stringThe comment, in Markdown.
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
attachmentsarrayImages and videos to upload with the text.
repostringowner/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.

ParameterTypeDescription
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
undobooleanTurn 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.

ParameterTypeDescription
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
commentstringA comment to post as the pull request closes.
repostringowner/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.

ParameterTypeDescription
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
commentstringA comment to post as the pull request reopens.
repostringowner/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…

ParameterTypeDescription
event *stringThe review action: approve, request_changes, or comment.
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
bodystringThe review text. Required for request_changes and for comment without line comments; optional for approve.
commentsarrayOptional array of up to 50 line comments.
head_shastringOptional 40-character commit SHA the review was based on. Fails if new commits arrived.
repostringowner/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…

ParameterTypeDescription
pr *stringThe pull request, as 12, #12, owner/repo#12 or its URL.
bodystringThe merge or squash commit's message. Not for rebase. For a stacked merge it applies to the named pull request only.
delete_branchbooleanDelete the head branch of each pull request that merged, best effort (default false).
head_shastringOptional 40-character commit SHA the pull request was reviewed at. Fails with stale, merging nothing, if new commits arrived.
methodstringHow to merge: merge, squash or rebase. Optional when the repository allows only one; required when it allows several.
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
subjectstringThe merge or squash commit's title. Not for rebase. For a stacked merge it applies to the named pull request only.
with_lower_layersbooleanFor 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…

ParameterTypeDescription
method *string"view" reads one stack with its pull requests; "list" lists the repository's stacks.
limitintegerlist: the most stacks to return (default 30).
prstringview: a pull request in the stack, as 12, #12, owner/repo#12 or its URL.
repostringowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
stackintegerview: the stack's number (not a pull request's).
statestringlist: open or all (default open).

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)…

ParameterTypeDescription
method *string"view" reads a board with its fields and views; "list" lists boards; "item_list" lists a board's items.
content_repostringitem_list: only issues and pull requests of this owner/name; drafts never match.
content_typestringitem_list: only issues, pull requests or drafts.
include_archivedbooleanitem_list: include archived items (default false).
include_closedbooleanlist: include closed boards (default false).
limitintegerlist: the most boards to return (1-100, default 30). item_list: the most items to return (1-2000, default 100).
ownerstringA 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.
projectstringview, 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,…
repostringowner/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.
searchstringitem_list: a case-insensitive part of the item's title.
statusstringitem_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…

ParameterTypeDescription
owner *stringThe user or organization login that owns the board, or "@me".
datesstring"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_repostringowner/name of a repository to link the board to; needs write permission.
standardbooleanBring the board to the standard template: its fields and views (default true).
templatestringA 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).
titlestringThe board's title (default Roadmap).

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…

ParameterTypeDescription
name *stringThe field's name, matched without regard to case.
issue_fieldbooleanAdd 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.
optionsarraysingle_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…
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, and the owner of a bare board number.
typestringThe 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;…

ParameterTypeDescription
layout *string
name *stringThe view's name, matched without regard to case.
column_bystringboard layout only: the field name the columns follow.
fieldsarrayThe fields shown, by name and in order (built-in ones too, such as Assignees or Parent issue); not for a roadmap.
filterstringA project filter, such as "-status:Done -status:Cancelled".
group_bystringA field name to group by; not Sub-issues progress or Linked pull requests.
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/name; defaults to the working tree's repository (its origin). Where the board lookup starts, and the owner of a bare board number.
sort_bystringA field name to sort by.
sort_descbooleanSort 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…

ParameterTypeDescription
item *stringThe 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.
fieldsobjectField 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…
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/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…

ParameterTypeDescription
title *stringThe draft's title.
bodystringMarkdown body; empty when left out.
fieldsobjectField 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…
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/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…

ParameterTypeDescription
item *stringThe 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_bodystringDrafts only: text added after the current body, set off by a blank line.
bodystringDrafts only: the new body, which replaces the whole old one; empty clears it.
clear_fieldsarrayNames of the fields to empty. A column that mirrors an issue field is cleared with clear_issue_fields in github_issue_edit, not here.
fieldsobjectField 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…
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/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.
titlestringDrafts 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…

ParameterTypeDescription
item *stringThe 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.
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/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…

ParameterTypeDescription
item *stringThe 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.
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/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…

ParameterTypeDescription
item *stringThe draft item's node ID (PVTI_…); only a draft can be turned into an issue.
create_milestonebooleanCreate the milestone when it does not exist; needs milestone.
kindstringSuch as bug or feature: the organization's Issue Type of that name, else the type:<kind> label.
labelsarrayLabels to add; they must exist.
milestonestringA milestone title.
ownerstringA user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title.
projectstringThe 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 (…
repostringowner/name of the repository the issue is created in; defaults to the working tree's repository (its origin). Also where the board lookup starts.