fix: review/review-pr.sh uses hardcoded 'origin' for project repo fetch #288
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#288
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?
Flagged by AI reviewer in PR #287.
Problem
review/review-pr.shfetches the PR head branch using hardcodedoriginat two locations (lines 134 and 165):This is the same class of bug fixed for cron agents in #278. If the project repo is checked out with a different remote name (e.g.
codeberg,forge), the review agent will silently fail to fetch the PR branch, potentially reviewing a stale or wrong commit.Fix
Call
resolve_forge_remoteearly inreview-pr.sh(same pattern as cron agents) and replace hardcodedoriginwith${FORGE_REMOTE}.Auto-created from AI review
Affected files
review/review-pr.sh(lines ~134, ~165)lib/mirrors.sh(forresolve_forge_remotereference if needed)Acceptance criteria
resolve_forge_remoteis called early inreview/review-pr.shto setFORGE_REMOTEoriginat both fetch locations replaced with${FORGE_REMOTE}