GeezerVison is showing github.com — fix(fleet): accept --comment as close reason text in the fleet gh closure layer by developing-today-fleet[bot] · Pull Request #15077 · developing-today/code
Conversation
Refs dezren39/fleet#118
Defect
fleet gh issue close / pr close refused every invocation carrying gh's native --comment/-c flag with "--comment is not accepted on a closure: use --reason-text" — including shapes that also passed --reason-text. The natural gh close shape therefore could not attach evidence text at all; the 2026-11-24 lane closing code#5864 fell back to the REST API (dezren39/fleet#118).
Reproduction matrix against the pre-fix binary (stub gh, no GitHub writes):
--reason implemented --reason-text "x" → works
--reason implemented --comment "x" → refused with the error above
--reason implemented -c "x" → refused, same error
--reason implemented --comment "x" --reason-text "y" → refused, same error
Fix (pkgs/fleet/crates/fleet/src/gh_closure.rs)
- On a close,
--comment/-c is an alias of --reason-text: the text folds into the composed close comment ("Closed as . "), and the two flags combine in argument order when both are given. Exactly one --comment reaches gh — the composed one.
- On a reopen there is no composed comment, so
--comment forwards to gh unchanged (real gh accepts it there).
- The fleet gh: closure records + reason-required closes (audit trail by construction) #9221 taxonomy
--reason requirement (implemented / superseded / cancelled / started-incorrectly) is unchanged, including the verbatim policy error.
- Book page
pkgs/fleet/book/concepts/gh.md updated in the same change to document the flag handling.
Tests
Three new oracle tests in gh_closure::tests, named for dezren39/fleet#118: comment_flag_is_the_reason_text_on_a_close, short_comment_flag_and_reason_text_combine_in_order, comment_forwards_to_gh_on_a_reopen.
Verification (remote, fleet-command workflow bypass after queue dispatch hit the known fleet-forks 403): run 45609208762, conclusion success — cargo test -p fleet gh_ ran 66 tests, 66 passed / 0 failed, including all three new tests by name and every pre-existing gh_closure/gh_guard test.
Left unmerged for Felix's review.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T12:08:46Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch/workspace/issue-fleet-118/wt",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch/workspace/issue-fleet-118/wt",
"repo": "developing-today/code",
"branch": "felix/fleet118-gh-close-comment",
"sha": "28293707b7697865ca400b531a41061c17977c55"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… layer
gh's native --comment/-c on an issue/pr close was refused with
"--comment is not accepted on a closure: use --reason-text", so the
natural gh close shape could not attach evidence text at all
(dezren39/fleet#118). On a close, --comment/-c is now an alias of
--reason-text: the text folds into the composed close comment, and
the two flags combine in argument order. On a reopen --comment
forwards to gh, which accepts it there. The #9221 taxonomy --reason
requirement is unchanged. Book page updated in the same change.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
721cd8af-95cc-4c86-8a7e-b55943740dc5
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|