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

add metric: "include in the home page" #65

Open
ljharb opened this issue Feb 15, 2022 · 4 comments
Open

add metric: "include in the home page" #65

ljharb opened this issue Feb 15, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed on hold

Comments

@ljharb
Copy link
Owner

ljharb commented Feb 15, 2022

On the home page of a repo, click the gear by "about" - there's three checkboxes (releases, packages, environment).

For example, I want to make sure all my repos have "packages" disabled, since I'll never use Github Packages for anything.

@ljharb ljharb added enhancement New feature or request help wanted Extra attention is needed labels Feb 15, 2022
@thehanimo
Copy link
Collaborator

Not sure if this is supported in the API. Afaik, We can get info about releases, packages, and environments, but not their visibility on the home page.

@ljharb
Copy link
Owner Author

ljharb commented Feb 18, 2022

Even if it’s not in the api, if it’s trivially curl-able from GitHub.com without triggering rate limits, that might suffice for now.

@thehanimo
Copy link
Collaborator

Interesting. curling ljharb/repo-report downloads 229KB of data. We could parse the html response and check for the presence of the three sections (checked for packages, seems doable). But again, we're usually dealing with a large number of repos per run so I'm not sure if this solution is worth it. Caching comes to mind but not sure how we'll deal with a "per-metric" cache. Also, there's private repos to consider and token management and potentially, rate limits associated with that. Oh and, captchas? Does GitHub have those pop up on repeated bot-like requests?

@ljharb
Copy link
Owner Author

ljharb commented Feb 20, 2022

ha, all good points :-)

there doesn't seem to be any ajax requests made that we could call, so this might indeed have to wait til it's added to the API.

@ljharb ljharb added missing in API This issue can't be fixed until the Github API supports it. on hold and removed missing in API This issue can't be fixed until the Github API supports it. labels Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed on hold
Projects
None yet
Development

No branches or pull requests

2 participants