Repository navigation
Set a new issue's board status to Backlog when gh:create files it - #3550
Conversation
Pragmatic Code ReviewReview Type: Initial Review (no prior reviews or comments on the PR) SummaryA small, atomic change that does what the issue asks. Requirements Check
Path analysis
Code Review FindingsNo Critical or Important findings. 🟢 Suggestion: the status-failure warning drops the cause const statusSet = await this.setItemStatus(itemId, NEW_ISSUE_STATUS)
.then(() => true)
.catch(() => false);The add-failure warning can name a likely cause (token scope). A status write that fails after a successful add has no such obvious cause: the likeliest is a stale 🟢 Suggestion: pin the option id on the 🟢 Nit: caller comments now understate what 🟢 Nit: the option id is looked up twice on the What is good
RecommendationAPPROVE. The change is a net improvement and correct on every path. The two suggestions and two nits are optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressedAll four findings from the review were suggestions or nits, and all four are addressed in the follow-up commit. None was skipped.
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The review approved with no critical or important findings. The follow-up changes a warning's text, a validation expression with the same behaviour, two comments and two test assertions. No control flow or public behaviour changed. |
|
Merge queue: #3550 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
…oses #3549) createIssue added the issue to the project board and left its Status empty, so it sat in no column. It now writes Backlog using the item id the add returns. The status write is shared with updateIssueStatus. A failed status write warns and still returns the issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… pin the option on the gh:status path - The status-failure warning includes the error message, so a stale status field or option id is diagnosable from the log. - The gh:status test asserts the option id it writes, now that the lookup lives in the shared helper. - updateIssueStatus validates the status without a second lookup. - Two caller comments say createIssue also warns on a failed status write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b2bed40 to
1700c66
Compare
Closes #3549.
bun run gh:createadded a new issue to the project board and left its Status empty, so the issue sat on the board in no column and read back with a blank status.What changed
createIssuenow sets the new item's Status toBacklog, using the project item id the add returns. The board is not listed to find it.setItemStatus, shared bycreateIssueandupdateIssueStatus.gh:statusbehaves as before.Tests
Three tests added to
scripts/gh-utils.test.ts:Backlogto the item the add returned, with no board listing;The first two fail against the previous
github-client.tsand pass with the change.bun run test:changed(scripts tier) andbun run quality:fixpass.Docs
development/issue-workflow.mdin nodespace-docs now saysgh:createfiles a new issue as Backlog and that Todo means queued.🤖 Generated with Claude Code