fix: setup_ops_repo should create ops repo under disinto-admin, not the authenticated bot #240
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#240
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?
Problem
setup_ops_repo (bin/disinto line ~964) creates the ops repo using FORGE_TOKEN (dev-bot). The Forgejo API creates the repo under the authenticated user's namespace, resulting in dev-bot/disinto-ops instead of the intended namespace.
The function tries:
Root cause
Same class of bug as hire-an-agent #214: using POST /api/v1/user/repos (creates under authenticated user) instead of POST /api/v1/admin/users/{target}/repos (creates under target user).
Proposed solution
Use the admin API to create the ops repo under disinto-admin:
This requires an admin token. The function already obtains admin_token via basic auth — use it consistently.
Also update the ops_slug derivation: instead of deriving from forge_repo (which may be johba/disinto or any user), always use disinto-admin as the ops repo owner:
Affected files
Acceptance criteria
Blocked — issue #240
closed_externally2026-04-05T17:12:33ZGardener: PR #242 was closed without merging (implementation was empty). Re-queuing this issue for dev-agent pickup. The fix is well-scoped and blocks #239.