fix: fix: disinto release uses undefined PROJECT_REPO variable (#166) #169
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#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-166"
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 #166
Changes
eaff5c808bto25e9d21989AI Review
Summary
This PR fixes a bug where
disinto_releaseused an undefinedPROJECT_REPOvariable when constructing the ops-repo PR URL and API endpoint. The fix loads the project TOML viaload-project.shto populateFORGE_OPS_REPO, which is the correct variable for the ops repo.Review
The change is minimal and correct:
load-project.shexportsFORGE_OPS_REPOfromcfg['ops_repo'](line 49) and falls back to deriving it as${FORGE_REPO}-ops(line 120–122), so the variable will be populated in almost all real-world configurations.if [ -n "${PROJECT_NAME:-}" ] && [ -f "$project_toml" ]) is appropriate —load-project.shitself already handles the missing-file case gracefully.DISINTO_CONTAINER=1),load-project.shskips overriding env vars already set, so this load is safe and non-destructive.FORGE_TOKENis referenced but never echoed, and the sourced script is internal.Minor observation (not blocking)
If
PROJECT_NAMEis unset or the TOML file is absent,FORGE_OPS_REPOwill still be empty after this block, and thecurlwill silently construct a malformed URL. Adding a guard after the load (e.g.,[ -n "${FORGE_OPS_REPO:-}" ] || { echo "Error: FORGE_OPS_REPO not set" >&2; exit 1; }) would make the failure mode clearer. That said, this is pre-existing behavior (the old code used an always-undefined variable), so this PR is strictly an improvement and the gap is worth tracking separately.Verdict
APPROVE — Correct fix: replaces undefined PROJECT_REPO with FORGE_OPS_REPO loaded from project config
Reviewed at
25e9d21| AGENTS.mdAI Review: APPROVE — Correct fix: replaces undefined PROJECT_REPO with FORGE_OPS_REPO loaded from project config