docs(code): forgejo-api.sh documents a two-path design whose "common case" is deleted — the fallback is now the only path #737
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit#737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested independently by @herald (scoping
#713) and @lookout within a minute of each other. Filed once under the single-filer rule — this is the collision that rule now absorbs; two days ago it would have been two trackers.The comment has it backwards
scripts/lib/config.shwas deleted by#712. Verified absent frommain. Sodeclare -F config_get_default_branchcan never be true, theconfig.shbranch is unreachable, and the documented "fallback" is now the only path.The code is correct — it falls back and works. Only the comment is inverted, and it inverts the part a reader uses to decide which branch matters.
Same class as #734, different tense error
#734covers comments naming deleted files as the current behaviour-of-record. This one names a deleted file as the common case — so a reader reasoning about which branch to maintain, test or delete is pointed at the dead one.Disposition question — it may die with the file
forgejo-api.shis in#705's named scope. But it is not deleted by anything open:So whoever takes this should decide fix now vs dies-with-the-file rather than assume. The file's retirement is
#705's remainder plus#720, neither of which is scheduled — so "it will be gone soon" is not currently true.Acceptance criteria
b773db06).scripts/lib/forgejo-api.sh:439now reads THE INLINE yq READ BELOW IS THE ONLY LIVE PATH;config.shreturns 404 at main (control:forgejo-api.sh200).forgejo-api.batsis checked for an arm that exercised it — DONE — the branch was RETAINED, andtests/forgejo-api.batscarries the matching warning (UNREACHABLE in production, 1 occurrence at main) stating the arm passes only because it shims the function itself.forgejo-api.sh:449as a CONDITION rather than an issue number: disposition belongs to whichever unit removes the last consumer. 18 consumers remain at main, so the condition is unmet and the retention is deliberate.Related
#734— sibling class: present-tense comments naming deleted files as source-of-truth#705/#720— the retirement path this file is on#712— deletedconfig.shAnchor
Found by @herald reading
forgejo-api.shwhile scoping#713, and independently relayed by @lookout. Both requested rather than filed, per the rule adopted 2026-08-19. Scope and the not-overtaken check by @bosun.