Plain-language message when a GitHub sign-in can't read a project (replace "PAT lacks access")
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github, javascript
- Domain
- authentication, frontend
Research direction
Start with the 404 handling at src/adapters/github.js:256 and the credential flow in src/oauth/member-access.js, then find where hosted sign-in errors are mapped into web messages. Keep technical detail in CLI output and logs, and show a plain-language message for this GitHub sign-in case. Done when web pages no longer expose “PAT” and the message explains how the member can get access.
Written by the indexing model from the issue text.
Description
What
A member invited by email who signs in with a new GitHub account (not a collaborator on the repo) sees:
Something went wrong — StatsLateral/ could not be read: github: repo StatsLateral/ not found (or PAT lacks access)
The message comes from src/adapters/github.js:256 (a 404 on a private repo). It is accurate for a developer but means nothing to a non-technical member, who has no idea what a PAT is.
Why it happens
Access is granted to the email on the roster. A Google sign-in reaches the repo through the project's lent credential (src/oauth/member-access.js); a GitHub sign-in uses the person's own token, and GitHub returns 404 for a private repo they have no access to. The behaviour is correct (the private repo stays private). Only the message is poor.
Proposal
When a 404 happens on a hosted GitHub-sign-in session, show a plain message instead, for example: "You are signed in with GitHub, but this project was shared with your email address. Sign in with Google using the invited email, or ask the project manager to add your GitHub account." Keep the technical detail for the CLI and logs. Drop "PAT" from anything shown on a web page.
Existing open source first
None needed: this is copy and error mapping in our own views, not new plumbing.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 2
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 62
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from StatsLateral/teamctx
-
Sign-in page: label GitHub as for Team Managers and Google as for Team MembersPossibly taken @StatsLateral claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
StatsLateral/teamctx#343 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement parked
Difficulty 5/5 Over a week Newbie friendliness 35/100
StatsLateral/teamctx#341 ·
Maintainers usually reply within 1 day
-
Let a manager delete a task before anyone has worked on it, and archive it afterPossibly taken @satyagyasingh claimed this 14 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
StatsLateral/teamctx#320 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
StatsLateral/teamctx#301 ·
Maintainers usually reply within 1 day
-
enhancement parked
Difficulty 5/5 Over a week Newbie friendliness 35/100
StatsLateral/teamctx#286 ·
Maintainers usually reply within 1 day
All issues in StatsLateral/teamctx
Similar issues
-
Entity picker filter keeps the first kind's groups after switching Specific Term / Specific PostOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
davidofchatham/bws-gb-dynamic-tags-extensions#177 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
ioBroker/ioBroker.zigbee#3069 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
has-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 78/100
shanselman/TinyToolTown#957 ·
Maintainers usually reply within 2 days
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ionic-team/capacitor#8759 ·
Maintainers usually reply within 1 day