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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count contributions made by a user to GitLab #283

Open
wkyoshida opened this issue Oct 25, 2022 · 3 comments
Open

Count contributions made by a user to GitLab #283

wkyoshida opened this issue Oct 25, 2022 · 3 comments

Comments

@wkyoshida
Copy link

Hey there! 馃憢

This issue would be for a feature.

As more Wikimedia development moves to https://gitlab.wikimedia.org/, it could be nice to have the ability to aggregate contribution data for https://gitlab.wikimedia.org/ also in WikiContrib. For this there would of course be two parts - generally, the API integration with GitLab in the back-end and then the inclusion of GitLab in the front-end as an option to the query and the resulting graph. Let me know if more information is needed.

Cheers!
wkyoshida

@wkyoshida
Copy link
Author

Seems that the GET /users/:id/events endpoint could be used for the GitLab contribution data.

Docs: https://docs.gitlab.com/ee/api/events.html#get-user-contribution-events

The action and target_type parameters could also be used to filter only for contribution events that would be relevant.

@NdibeRaymond
Copy link
Collaborator

hello @wkyoshida, thanks for submitting this PR! I will definitely start looking at merging this by weekend

@wkyoshida
Copy link
Author

Hey @NdibeRaymond!

Atm I only have the issue created for this unfortunately, but I am happy to help with some development for it though. I'm thinking there might be some details also that likely might have to be defined first perhaps?

In the docs, I see that specific contribution types for each platform are considered for the purposes of WikiContrib:

In this tool, all the contributions of the user from Gerrit are being fetched. But in the case of phabricator, two kinds of tasks are taken into count:

  1. Tasks authored by the user.
  2. Tasks assigned to the user.

For Github, we are only concerned with the contributors commits.

For https://gitlab.wikimedia.org/, what contribution types does WikiContrib want to consider? Apart from this main detail though, my assumption is that the implementation for GitLab will likely follow into the same architecture of the other platforms and can likely piggy-back off of what exists already - would that be right. Would there be any other considerations to think through first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants