Plain-language message when a GitHub sign-in can't read a project (replace "PAT lacks access")

Open Beginner friendly
#342 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from StatsLateral/teamctx

All issues in StatsLateral/teamctx

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.