Skip to content

fix: use git remote instead of gh repo view for fork detection#1

Open
richardzhuang0412 wants to merge 1 commit intoryannli:mainfrom
richardzhuang0412:fix/setup-repo-detection
Open

fix: use git remote instead of gh repo view for fork detection#1
richardzhuang0412 wants to merge 1 commit intoryannli:mainfrom
richardzhuang0412:fix/setup-repo-detection

Conversation

@richardzhuang0412
Copy link
Copy Markdown
Collaborator

Summary

  • gh repo view resolves to the upstream parent repo for forks, causing the Actions permissions API call to fail with a 403
  • Replaced with git remote get-url origin which correctly resolves to the user's own fork
  • Also committed the timezone placeholder replacement in CLAUDE.md (side effect of running setup.sh)

Test plan

  • Fork the repo fresh and run ./setup.sh — should detect the fork repo correctly and configure Actions permissions without the warning

🤖 Generated with Claude Code

gh repo view resolves to the upstream parent repo for forks, causing
the Actions permissions API call to fail with a 403. Using git remote
get-url origin correctly resolves to the user's own fork.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ryannli
Copy link
Copy Markdown
Owner

ryannli commented Mar 10, 2026

"Also committed the timezone placeholder replacement in CLAUDE.md (side effect of running setup.sh)" -- I think we should revert it! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants