Skip to content

DX-2999: add git create-issue and attachments to the SDKs and CLI - #237

Merged
CahidArda merged 1 commit into
mainfrom
DX-2999-git-create-issue-attach
Sep 8, 2026
Merged

CahidArda merged 1 commit into
mainfrom
DX-2999-git-create-issue-attach

Conversation

@alitariksahin

Copy link
Copy Markdown
Collaborator

Follows upstash/box-backend#248, which added
POST /v2/box/:id/git/create-issue and an attach field on create-issue and create-pr.

JS SDK: git.createIssue(), plus attach on createPR and createIssue. attach takes image or video paths relative to the working directory, written as shot.png#alt text for an image. Both responses carry an optional warning, which the backend sets when gh exits non-zero but still returns a URL, meaning the item exists while an attachment is missing or the pull request was already open.

CLI: box git create-issue --title <title> and a repeatable --attach on both create commands. Text output prints the warning on its own line, because it would otherwise read as a clean success. The REPL, the git help text, and shell completions list the new subcommand.

Python SDK: mirrors the above in _async, with _sync regenerated. The parity check is a hard CI failure for a JS symbol with no Python counterpart, so create_issue could not be left out.

Follows upstash/box-backend#248, which added
POST /v2/box/:id/git/create-issue and an `attach` field on create-issue
and create-pr.

JS SDK: `git.createIssue()`, plus `attach` on `createPR` and
`createIssue`. `attach` takes image or video paths relative to the
working directory, written as `shot.png#alt text` for an image. Both
responses carry an optional `warning`, which the backend sets when gh
exits non-zero but still returns a URL, meaning the item exists while an
attachment is missing or the pull request was already open.

CLI: `box git create-issue --title <title>` and a repeatable `--attach`
on both create commands. Text output prints the warning on its own line,
because it would otherwise read as a clean success. The REPL, the git
help text, and shell completions list the new subcommand.

Python SDK: mirrors the above in `_async`, with `_sync` regenerated. The
parity check is a hard CI failure for a JS symbol with no Python
counterpart, so `create_issue` could not be left out.
@alitariksahin alitariksahin self-assigned this Sep 7, 2026
@linear-code

linear-code Bot commented Sep 7, 2026

Copy link
Copy Markdown

DX-2999

@CahidArda
CahidArda merged commit 7e6feb5 into main Sep 8, 2026
10 of 11 checks passed
@CahidArda
CahidArda deleted the DX-2999-git-create-issue-attach branch September 8, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants