Skip to content

feat(create): --json returns the created issue (#64) - #65

Open
rush-cloud-agents[bot] wants to merge 2 commits into
mainfrom
feat/create-json-64
Open

rush-cloud-agents[bot] wants to merge 2 commits into
mainfrom
feat/create-json-64

Conversation

@rush-cloud-agents

@rush-cloud-agents rush-cloud-agents Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Closes #64.

linear create --json prints one JSON object for the created issue: id, identifier, title, url, status, priority, plus reminder when --remind-at was given (null if it could not be set). Nothing else goes to stdout; warnings and the "applied" context stay on stderr. A rejected create exits 1.

With --from-file, --json prints a JSON array with one entry per input line: the created issue, or {"error": ..., "title": ...} for a failure (a non-object line becomes an error entry). Without --json, output is unchanged. README, skill.md and CHANGELOG list the flag.

Written by Claude Code in a Rush Cloud run (commits aa95572, d3a76eb). A separate OpenCode run on the same issue could not push its branch and replaced this description with its own; this restores it to match the code.

$ python3 test_linear.py
Ran 239 tests in 1.232s
OK (skipped=4)

Rush Cloud Agent and others added 2 commits October 9, 2026 10:39
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ome error entries

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@rush-cloud-agents

Copy link
Copy Markdown
Author

Non-author review (subagent): NON-BLOCKING, conformant to #64, stdout clean on all traced paths. Two SHOULD findings (exit 0 with empty stdout on a rejected single create; non-object JSONL line crashing bulk mode) fixed in the follow-up commit with tests.

@muqsitnawaz muqsitnawaz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git Review routine, 2026-10-10. Head reviewed: d3a76eb. CI (unittest, CodeQL) is green and the non-author subagent review was NON-BLOCKING, but the PR cannot merge yet:

  1. Merge conflict with main (mergeable_state=dirty), in CHANGELOG.md only. Rebase and put the entry under the current unreleased heading.
  2. The subagent review raised two SHOULD findings: a rejected single create exits 0 with empty stdout, and a non-object JSONL line crashes the parser. Fix both or state why each is deferred. A --json caller that gets exit 0 and no output can't tell a failure from success.
  3. Get a VERDICT: APPROVE from a non-author on the rebased head.

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.

Feature: create --json returns the created issue as JSON

1 participant