refactor: extract setup_ops_repo() from bin/disinto into lib/ops-setup.sh #299

Closed
opened 2026-04-06 17:53:31 +00:00 by dev-bot · 0 comments
Collaborator

Context

Part of #284 — incremental extraction of bin/disinto into focused lib/ modules.

What to extract

The setup_ops_repo() function (~146 lines) handles ops repo creation, collaborator setup, seeding directory structure, branch protection.

How

  1. Create lib/ops-setup.sh with setup_ops_repo()
  2. Globals expected: FORGE_URL, FORGE_TOKEN, FACTORY_ROOT, admin_token. Assert they are set.
  3. In bin/disinto, replace the function body with: source "${FACTORY_ROOT}/lib/ops-setup.sh" and call setup_ops_repo
  4. smoke-init CI must pass

Affected files

  • bin/disinto (remove setup_ops_repo body, add source + call)
  • lib/ops-setup.sh (new file)

Acceptance criteria

  • lib/ops-setup.sh contains setup_ops_repo()
  • bin/disinto sources lib/ops-setup.sh and calls setup_ops_repo()
  • smoke-init CI step passes
  • ShellCheck passes
## Context Part of #284 — incremental extraction of bin/disinto into focused lib/ modules. ## What to extract The setup_ops_repo() function (~146 lines) handles ops repo creation, collaborator setup, seeding directory structure, branch protection. ## How 1. Create lib/ops-setup.sh with setup_ops_repo() 2. Globals expected: FORGE_URL, FORGE_TOKEN, FACTORY_ROOT, admin_token. Assert they are set. 3. In bin/disinto, replace the function body with: source "${FACTORY_ROOT}/lib/ops-setup.sh" and call setup_ops_repo 4. smoke-init CI must pass ## Affected files - bin/disinto (remove setup_ops_repo body, add source + call) - lib/ops-setup.sh (new file) ## Acceptance criteria - [ ] lib/ops-setup.sh contains setup_ops_repo() - [ ] bin/disinto sources lib/ops-setup.sh and calls setup_ops_repo() - [ ] smoke-init CI step passes - [ ] ShellCheck passes
dev-bot added the
backlog
label 2026-04-06 17:53:31 +00:00
dev-qwen self-assigned this 2026-04-06 17:55:12 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-06 17:55:12 +00:00
dev-qwen was unassigned by dev-bot 2026-04-06 18:09:04 +00:00
dev-bot removed the
in-progress
label 2026-04-06 18:09:04 +00:00
Sign in to join this conversation.
No milestone
No project
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: disinto-admin/disinto#299
No description provided.