Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private repositories #24

Closed
Kludex opened this issue Nov 4, 2022 · 4 comments · Fixed by #39
Closed

Private repositories #24

Kludex opened this issue Nov 4, 2022 · 4 comments · Fixed by #39
Labels
enhancement New feature or request

Comments

@Kludex
Copy link

Kludex commented Nov 4, 2022

After the removal of GH_TOKEN on 1.0.0, we can't retrieve the data from private repositories anymore.

Is there a solution for it besides pinning 0.4.4?

@ojacques
Copy link
Owner

ojacques commented Nov 5, 2022

Good point. I tried to add authentication with a token to fetch the contributors-list endpoint, but with no success so far.
master...private-repos

This is not an API endpoint by itself, so I am not sure this is even possible to do it this way. Suggestions welcomed!

@Kludex
Copy link
Author

Kludex commented Nov 5, 2022

It's not possible 😢

This repository insights graph is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "About repository graphs" and "GitHub's products."

Reference: https://docs.github.com/en/repositories/viewing-activity-and-data-for-your-repository/viewing-a-projects-contributors

@ojacques ojacques added the help wanted Extra attention is needed label Nov 7, 2022
@ojacques
Copy link
Owner

ojacques commented Nov 7, 2022

Until 0.4.4, I was using the local git log history, attempting to map it to GitHub users by querying by email - if available. This was unreliable.
With 1.x, I switched to just get a page from GitHub, which is reliable and fast but prevents querying private repos.

I should be able to move to yet another method, leveraging graphql and the commit object which should work for private repositories. I will see what can be done.

Can I ask what is the use case for private repositories?

@ojacques ojacques removed the help wanted Extra attention is needed label Nov 7, 2022
@adamcrosby
Copy link

We use private repos and private gh_pages for internal knowledge management, project management, etc.

@ojacques ojacques added the enhancement New feature or request label May 7, 2023
ojacques added a commit that referenced this issue Nov 1, 2023
Fix #38, #36, #30, #24 - now use GraphQL to fetch authors information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants