setup wizard github connection doesn't work if already authenticated
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Bug Description
I have already connected posthog to github previously for a different posthog project, but when trying to run the setup wizard, it requires me to authenticate again. If I try to say I've already connected, it says I haven't. On github, it says it's already connected. The only way for me to resolve this is by uninstalling on github, and then reconnecting.
npx -y @posthog/wizard@latest self-driving --region eu
How to reproduce
- Create a Posthog project
- Run
npx -y @posthog/wizard@latest self-driving --region eu - Connect with Github
- Create a new Posthog project
- Run
npx -y @posthog/wizard@latest self-driving --region euagain - Try to connect with Github
Debug info
No bug report - this is a cli issue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the flow with npx -y @posthog/wizard@latest self-driving --region eu: connect GitHub for one PostHog project, create another, and run the wizard again. Trace the wizard's GitHub connection check and compare its result with GitHub's existing connection state. Done means an already-connected GitHub account can be recognized for the second project without uninstalling and reconnecting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, shell
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100