Skip to content

bin/release no longer crashes on gh's stderr hints - #62

Merged
czj merged 1 commit into
mainfrom
claude/magical-noether-qcvl8n
Nov 21, 2026
Merged

czj merged 1 commit into
mainfrom
claude/magical-noether-qcvl8n

Conversation

@czj

@czj czj commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

gh 2.105 writes hint: lines on stderr. run captured stdout and stderr together, so the JSON of gh pr view came back with a hint in front of it and the release crashed right after opening its pull request.

run now returns stdout alone and shows stderr only when the command fails. The same change goes to the five gems, keeping bin/release identical.

  • Stdout only for everything run parses: JSON, branch names, commit ids, git status.
  • Errors keep everything: a failing command still prints its stdout and stderr.
  • Release workflow untouched: --check, --notes and --title never call run.
Check

With a stub gh that prints hint: something on stderr and JSON on stdout, JSON.parse(run("gh", "pr", "view")) returns the Hash; a command that fails still prints both streams. RuboCop is clean.

Siblings: levups/super-slim, levups/gamba, levups/crumbly, levups/maptain, same branch.


Generated by Claude Code

gh 2.105 writes hint: lines on stderr, which run mixed into the JSON of
gh pr view, so the release crashed right after opening its pull request.
stderr is now shown only when a command fails.

Assisted-by: Claude [Claude Code]
@czj
czj enabled auto-merge (squash) November 21, 2026 11:31
@czj
czj merged commit fe42e97 into main Nov 21, 2026
19 checks passed
@czj
czj deleted the claude/magical-noether-qcvl8n branch November 21, 2026 11:32
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