fix: disinto release fails to load FORGE_OPS_REPO from project config #180
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#180
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
The fix for #166 added project config loading to
disinto_release()(line 2894), but it only loads whenPROJECT_NAMEis already set:When running
disinto releasefrom the host CLI,PROJECT_NAMEis unset because:lib/env.shderives it fromFORGE_REPO(line 121)FORGE_REPOis not in.envor.env.encPROJECT_NAMEstays empty and the project TOML is never loadedFORGE_OPS_REPOstays empty and PR creation fails with a 404Observed behavior
The PR creation curl hits
http://localhost:3000/api/v1/repos//pulls(empty repo path) which 404s.Proposed solution
In
disinto_release(), detect the project TOML from theprojects/directory whenPROJECT_NAMEis unset. There is typically only one.tomlfile (not.toml.example):Alternatively, add
FORGE_REPOto the.envtemplate solib/env.shcan derivePROJECT_NAMEnormally.Affected files
bin/disinto(disinto_releasefunction, around line 2894)Acceptance criteria
disinto release v0.x.0works from the host CLI without manually setting env varsFORGE_OPS_REPOis loaded from the project TOMLDependencies
Follows up on #166