Skip to content

Commit 3b883ad

Browse files
ralyodioclaude
andauthored
fix(tcfeed): stop telling --refresh it changed nothing (#136)
The footer is gated on !fix and does not know --refresh exists, so a run that had just pushed a commit to forty-four repositories signed off with Nothing was changed. That is not a cosmetic wording problem. --refresh is the one path that writes to other people's forks without being asked to again, and the line an operator reads at the end of it is the line they will believe. Saying nothing happened after forty-four commits invites re-running it to make something happen. Gated on !fix && !refresh. The read-only pass still prints it, which is where it was always true and is the only place it belongs. Verified both directions: --refresh on an already-current repository prints its result and stops, and a plain check still prints the footer. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 40585ce commit 3b883ad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/tcfeed.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,10 @@ async function checkCommand(argv: string[]): Promise<number> {
22082208
}
22092209
}
22102210

2211-
if (!fix) {
2211+
// Only for the read-only pass. --refresh writes, so telling its operator
2212+
// nothing was changed is false — it said so at the end of a run that had
2213+
// just pushed a commit to forty-four repositories.
2214+
if (!fix && !refresh) {
22122215
console.log('');
22132216
console.log('Nothing was changed. `tcfeed check --fix` acts on the failures marked ours;');
22142217
console.log('failures marked theirs are never touched, whatever --fix says.');

0 commit comments

Comments
 (0)