Repository navigation
fix: report push titles that aren't tracked - #36
Merged
Merged
Conversation
push silently skipped a title missing from the manifest and printed "no local changes to push" with exit 0, so a mistyped title looked like a run with nothing to publish. It now names each such title on stderr, as diff does, and exits 1, in a tracked tree and in an empty one. Closes #24
CameronBrooks11
added a commit
that referenced
this pull request
Nov 11, 2026
Prepares v0.3.1: the version constant becomes 0.3.1, and the CHANGELOG's Unreleased section becomes 0.3.1. User-facing change since v0.3.0: #36 (push reports titles that aren't tracked, #24). CI action updates since then: #27, #30, #31, #34, #35. This tag is the first run of the updated release workflow (goreleaser-action 7, checkout 7, setup-go 7). The tag is pushed after this merges.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #24.
pushsilently skipped a title missing from the manifest and printed "nolocal changes to push" with exit 0, so a mistyped title looked like a run with
nothing to publish. It now names each such title on stderr, as
diffdoes, andexits 1. That applies in a tracked tree, alongside real pages, and in an empty
tree.
Before and after
The issue's reproduction, run with this branch's build against a tree pulled
from Appropedia (read-only preview):
Tests
TestPushReportsUntrackedTitlescovers four cases:The three typo cases failed before the fix with exit 0. Removing either of the
two new call sites fails the cases it covers.
docs/commands.mddrops its "check the spelling againststatus" caveat, andthe exit-code table lists the new case. The CHANGELOG has a Fixed entry under
Unreleased.