Commit Graph

6 Commits

Author SHA1 Message Date
Trevin Chow 3ad1f3ec64 fix: add gh repo view fallback for default branch detection
When origin/HEAD is unavailable (no remote, ref unset), fall back to
gh repo view to query the GitHub default branch before hard-coding
main. Covers repos using develop/trunk as their default.

Addresses PR review feedback (#386)
2026-03-25 21:36:55 -07:00
Trevin Chow 28c3f78ae7 fix: remove sed pipes that mask rev-parse/symbolic-ref failures
Piping into sed returns exit 0 even when the upstream git command
fails, so the "fall back to main" path never triggers. The agent
reads stdout/stderr directly and can strip the origin/ prefix and
detect failures itself.

Addresses PR review feedback (#386)
2026-03-25 21:32:22 -07:00
Trevin Chow 699c60beb2 feat: add default-branch guard and inline sed to git-commit-push-pr
- Add rev-parse command to Step 1 so the branch guard in Step 4 can
  check the actual default branch, not just hard-coded main
- Update Step 4 to reference the resolved default branch
- Inline sed pipe in Step 6 symbolic-ref fallback instead of prose
  instruction to strip the origin/ prefix
2026-03-25 21:28:30 -07:00
Trevin Chow 355e7392b2 fix: scope commit-push-pr descriptions to full branch diff (#385) 2026-03-25 20:52:15 -07:00
Trevin Chow efa798c52c feat: improve commit-push-pr skill with net-result focus and badging (#380) 2026-03-25 16:28:47 -07:00
Trevin Chow fe08af2b41 feat: add git commit and branch helper skills (#378) 2026-03-25 14:53:39 -07:00