fix(cli): make scaffold commit messaging explicit about pushing to default branch - #2198
Conversation
E2E tests are runningAuthorization passed for this commit. See the E2E Tests workflow for results. |
Site previewPreview: https://24d9f0c8-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 8:35 PM UTC · Completed 8:46 PM UTC |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
ReviewFindingsLow
Info
Previous runReviewFindingsMedium
Low
Info
Previous run (2)ReviewFindingsHigh
Low
Info
|
a67f70e to
bfccc11
Compare
|
🤖 Finished Review · ✅ Success · Started 8:52 PM UTC · Completed 9:03 PM UTC |
…fault branch The install flow commits scaffold files directly to the repo's default branch via the GitHub API, but the output only said "Writing scaffold files" / "Wrote N files" — which didn't make clear that a push was happening. Users were surprised to find changes on their main branch. Now the messaging shows the target repo and branch name before the commit, and says "Pushed N files to <branch>" on success. Signed-off-by: Wayne Sun <gsun@redhat.com>
bfccc11 to
98f7303
Compare
|
🤖 Finished Review · ✅ Success · Started 9:10 PM UTC · Completed 9:26 PM UTC |
| printer.Blank() | ||
| printer.StepDone(fmt.Sprintf("Per-repo installation complete for %s/%s", owner, repo)) | ||
| return nil | ||
| } |
There was a problem hiding this comment.
[low] redundant API call
applyPerRepoScaffold calls client.GetRepo() solely to retrieve DefaultBranch for a display string, but client.CommitFiles() internally also calls GET /repos/{owner}/{repo} to resolve the default branch for the actual commit. Same pattern in workflows.go.
Suggested fix: Consider refactoring CommitFiles to accept or return the branch name to avoid the extra round-trip.
|
🤖 Finished Retro · ✅ Success · Started 12:48 AM UTC · Completed 12:55 AM UTC |
|
Retro on PR #2198: human-authored CLI messaging fix reviewed 3 times by the review agent. The "missing-authorization" finding (no linked issue) was initially rated High, causing Proposals filed
|
Summary
workflows.gofor consistencyTest plan
make go-test— all tests passmake lint— cleanmake go-vet— clean