fix: refactor: extract setup_ops_repo() from bin/disinto into lib/ops-setup.sh (#299) #305
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-299"
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 #299
Changes
a439e6261fto33f04a2976AI Review — Error\n\nReview failed.\n---\n
33f04a2AI Review
Summary\n\nPure refactor: moves
setup_ops_repo()frombin/disinto(~208 lines) intolib/ops-setup.shwith no functional changes.\n\n### Checklist\n\n- Correctness: Function body is byte-for-byte identical to the removed code. Verified by reading both the diff and the resulting file.\n- Sourcing:bin/disintosources the new file via${FACTORY_ROOT}/lib/ops-setup.sh, consistent with howlib/env.shis sourced on the line above.\n- File structure: New file has#\!/usr/bin/env bash,set -euo pipefail, and a well-written header documenting required globals (FORGE_URL,FORGE_TOKEN), optional globals (admin_token), and exported globals (_ACTUAL_OPS_SLUG).\n- Security: No new external action patterns introduced. Forge API calls withFORGE_TOKENare within the allowed exception list.\n- Pre-existing (not introduced here):slugon line 40 oflib/ops-setup.shis assigned withoutlocal, leaking into the caller's scope. Same issue existed inbin/disintobefore this PR — not flagging as a blocker.Verdict
APPROVE — Clean extraction of setup_ops_repo() into lib/ops-setup.sh; function body is identical, sourcing is correct, file is properly structured.
Reviewed at
33f04a2| AGENTS.mdAI Review: APPROVE — Clean extraction of setup_ops_repo() into lib/ops-setup.sh; function body is identical, sourcing is correct, file is properly structured.
AI Review — Error\n\nReview failed.\n---\n
33f04a2