fix(scripts): pr.sh defaults --base to the consuming repo's actual trunk #3

Merged
neerdoc merged 1 commit from fix/prsh-detect-default-branch into main 2026-08-07 15:11:40 +00:00
Owner

Hardcoded "main" broke PR creation outright on repos whose trunk has a
different name (e.g. alpinebox's "master") — the API call would target a
branch that doesn't exist. Resolve the consuming repo's origin/HEAD instead,
same pattern already used in hooks/pre-commit and hooks/pre-push.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Hardcoded "main" broke PR creation outright on repos whose trunk has a different name (e.g. alpinebox's "master") — the API call would target a branch that doesn't exist. Resolve the consuming repo's origin/HEAD instead, same pattern already used in hooks/pre-commit and hooks/pre-push. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Hardcoded "main" broke PR creation outright on repos whose trunk has a
different name (e.g. alpinebox's "master") — the API call would target a
branch that doesn't exist. Resolve the consuming repo's origin/HEAD instead,
same pattern already used in hooks/pre-commit and hooks/pre-push.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
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
WulfScience-FOSS/wulf-dev!3
No description provided.