tools: build the Forgejo release body inside the forgejo command #1

Merged
natsukium merged 1 commit from release-notes-stdout into main 2026-10-25 16:20:04 +09:00
Owner

The release gate piped nix develop -c python3 tools/release.py notes into the file it then published, so anything else on the dev shell's stdout became part of the release page. On a runner's fresh checkout the pre-commit installer printed its config path and an "Installed Git hook" line there, and both opened the v0.1.0 notes.

release.py forgejo <tag> now builds the notes itself and posts them, so nothing captures the shell's stdout. It still prints the notes to the job log. A new test checks that the posted body is exactly notes().

The release gate piped `nix develop -c python3 tools/release.py notes` into the file it then published, so anything else on the dev shell's stdout became part of the release page. On a runner's fresh checkout the pre-commit installer printed its config path and an "Installed Git hook" line there, and both opened the v0.1.0 notes. `release.py forgejo <tag>` now builds the notes itself and posts them, so nothing captures the shell's stdout. It still prints the notes to the job log. A new test checks that the posted body is exactly `notes()`.
nix: keep the pre-commit installer off the dev shell's stdout
Some checks failed
ci / cargo test (x86_64-windows) (pull_request) Successful in 1m2s
mutants / cargo mutants on the diff (pull_request) Has been cancelled
ci / flake checks (x86_64-linux) (pull_request) Has been cancelled
ci / flake checks (aarch64-darwin) (pull_request) Has been cancelled
3e6ad86e67
The release gate captures `nix develop -c python3 tools/release.py notes`
as the release body, and on a runner's fresh checkout the shell hook
first installs the git hook and prints where it did so. That line and
the config path landed at the top of the published v0.1.0 notes.

Assisted-by: Claude Code:Opus 5.5
natsukium force-pushed release-notes-stdout from 3e6ad86e67
Some checks failed
ci / cargo test (x86_64-windows) (pull_request) Successful in 1m2s
mutants / cargo mutants on the diff (pull_request) Has been cancelled
ci / flake checks (x86_64-linux) (pull_request) Has been cancelled
ci / flake checks (aarch64-darwin) (pull_request) Has been cancelled
to 3289951574
All checks were successful
ci / cargo test (x86_64-windows) (pull_request) Successful in 1m14s
ci / flake checks (x86_64-linux) (pull_request) Successful in 3m37s
mutants / cargo mutants on the diff (pull_request) Successful in 7s
ci / flake checks (aarch64-darwin) (pull_request) Successful in 4m31s
2026-10-25 16:09:51 +09:00
Compare
natsukium changed title from nix: keep the pre-commit installer off the dev shell's stdout to tools: build the Forgejo release body inside the forgejo command 2026-10-25 16:09:57 +09:00
natsukium deleted branch release-notes-stdout 2026-10-25 16:20:04 +09:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
felis-terminal/pouncer!1
No description provided.