DX-2999: add git create-issue and attachments to the SDKs and CLI - #237
Merged
Merged
Conversation
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.
CahidArda
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows upstash/box-backend#248, which added
POST /v2/box/:id/git/create-issue and an
attachfield on create-issue and create-pr.JS SDK:
git.createIssue(), plusattachoncreatePRandcreateIssue.attachtakes image or video paths relative to the working directory, written asshot.png#alt textfor an image. Both responses carry an optionalwarning, 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--attachon 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_syncregenerated. The parity check is a hard CI failure for a JS symbol with no Python counterpart, socreate_issuecould not be left out.