thechangelog / nightly

Changelog Nightly unearths the hottest repos on GitHub before they blow up. Subscribe for free. Keep up.
https://changelog.com/nightly
MIT License
209 stars 19 forks source link

Include GitLab projects #21

Closed jerodsanto closed 8 years ago

jerodsanto commented 8 years ago

Interesting idea from @kujua (https://github.com/thechangelog/ping/issues/450).

I would love to make this a reality, but I'm not sure if GitLab exposes the information we need to include them. @kujua would you mind doing some groundwork to see if it's even feasible at this point?

kujua commented 8 years ago

Yes, will have a look at GitLab's API and report back.

kujua commented 8 years ago

There is an API call that returns all projects: https://gitlab.com/api/v3/projects/all, similar to GitHub's API.

There are two problems:

The returned JSON has a field "star_count", so the statistics would be easy to compile.

I doubt a normal user gets access with an admin account, but you could try. I guess it would be in GitLab's interest to be exposed in a daily email.

Hope this helps.

jerodsanto commented 8 years ago

@kujua I think the biggest problem is that star_count won't get us where we need to go. What we really need is new_star_count_in_the_last_24_hours. The GitHub API doesn't expose this either, which is why we use GitHub Archive instead.

We would probably have to work closely with the GitLab team to accomplish something like this. Who do you think would be the best person to talk to about it?

kujua commented 8 years ago

No idea who could help. Will ask in their forum.

kujua commented 8 years ago

Asked in the forum some days ago (https://forum.gitlab.com/t/get-statistics-starred-forked-for-all-projects/2852), but nobody responded. I guess it is not possible to do that without the help of the GitLab admins...

jerodsanto commented 8 years ago

@kujua that's too bad. We haven't been able to form a relationship with the GitLab team yet. If/when we do, this'll be a topic I bring up as a way we could work together with them.

Closing this issue for now, since it's not currently possible. Thanks for the great suggestion and for being part of the Changelog community. ✊

dosire commented 8 years ago

I've opened up an issue in the CE issue tracker https://gitlab.com/gitlab-org/gitlab-ce/issues/22386