Problem
When running the /pr skill in environments where git credentials aren't pre-configured, git push fails with:
fatal: could not read Username for 'https://github.com': No such device or address
This happens even when gh auth status shows successful authentication, because the git credential helper isn't configured to use gh for authentication.
Root Cause
The GitHub CLI (gh) is authenticated, but git itself doesn't know to use gh as its credential helper. The gh auth setup-git command configures this, but it's not currently part of the PR skill workflow.
Recommended Solution
Add a step to run gh auth setup-git before attempting to push. This should be added to Step 6: Push to Fork:
Current Step 6:
git push -u fork bugfix/BRANCH_NAME
Proposed Step 6:
# Ensure git uses gh for authentication
gh auth setup-git
# Push the branch
git push -u fork bugfix/BRANCH_NAME
Additional Context
This was discovered during the implementation of #44 (fork sync detection). The push initially failed, but succeeded after running gh auth setup-git.
Acceptance Criteria
Problem
When running the
/prskill in environments where git credentials aren't pre-configured,git pushfails with:This happens even when
gh auth statusshows successful authentication, because the git credential helper isn't configured to useghfor authentication.Root Cause
The GitHub CLI (
gh) is authenticated, but git itself doesn't know to useghas its credential helper. Thegh auth setup-gitcommand configures this, but it's not currently part of the PR skill workflow.Recommended Solution
Add a step to run
gh auth setup-gitbefore attempting to push. This should be added to Step 6: Push to Fork:Current Step 6:
Proposed Step 6:
Additional Context
This was discovered during the implementation of #44 (fork sync detection). The push initially failed, but succeeded after running
gh auth setup-git.Acceptance Criteria
gh auth setup-gitbeforegit push