fix: refactor: extract push_to_forge() and webhook setup from bin/disinto into lib/forge-push.sh (#302) #318
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#318
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-302"
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?
Fixes #302
Changes
444c5e34cctoce561b3745AI Review
Summary
This PR cleanly extracts
push_to_forge()frombin/disintointolib/forge-push.shand wires it via asourcecall. The function body is unchanged and behavior is identical.Findings
info
lib/forge-push.sh:20:_assert_forge_push_globals()is dead code. Commitce561b3correctly removed the source-time call, but left the function defined and never invoked — not bypush_to_forge(), not bybin/disinto, not anywhere in the repo. Either call it at the top ofpush_to_forge()or remove it.info
lib/forge-push.sh:11,25:PRIMARY_BRANCHis documented in the header and checked by_assert_forge_push_globals(), but is not used anywhere inpush_to_forge(). If the function genuinely does not need it, both the comment and the assert check should drop it.info
lib/forge-push.sh:4: The file description and PR title mention "webhook setup" as also being extracted here, but no webhook code appears in the file. If webhook setup was intentionally out of scope, the file header and PR title are misleading.Verdict
None of these are correctness issues. The refactor is sound: the function was moved faithfully, the call site in
bin/disintois correct, and CI passes.Verdict
APPROVE — Clean refactor — push_to_forge() correctly extracted; dead _assert_forge_push_globals() is minor tech debt, not a blocker
Reviewed at
ce561b3| AGENTS.mdAI Review: APPROVE — Clean refactor — push_to_forge() correctly extracted; dead _assert_forge_push_globals() is minor tech debt, not a blocker