Skip to content

Incorrect "Private repository detected" message shown despite successful GitHub data fetch #300

@jagriti-aswal

Description

@jagriti-aswal

Problem

The Tracker page sometimes displays the following error message:

"Private repository detected. Please input PAT."

even when GitHub data is successfully fetched and displayed.

For example:

  • Pull request data may still load correctly
  • Public GitHub account activity is accessible
  • Yet the UI still shows a misleading private repository error

This creates confusion for users because the issue may not actually be related to private repositories or PAT permissions.


Steps to Reproduce

  1. Open the Tracker page
  2. Enter a GitHub username along with an invalid/random PAT
  3. Click "Fetch Data"
  4. Observe that pull request data loads successfully while the UI still displays:
    "Private repository detected. Please input PAT."

Current Behavior

  • Partial GitHub data is displayed successfully
  • A misleading permission/private repository error is still shown globally

Expected Behavior

The application should:

  • correctly distinguish between partial fetch failures and complete failures
  • avoid displaying misleading PAT/private repository errors
  • show more accurate and contextual error feedback

Suggested Improvement

Improve API response and error classification handling by:

  • separating issue-fetch and PR-fetch error states
  • avoiding global error messages when partial data loads successfully
  • providing clearer feedback for actual permission-related failures

I would like to work on this issue under GSSoC'26. Kindly assign it to me.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions