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

Regarding the metric definition for pull_request_participants #514

Closed
harshalmittal4 opened this issue Apr 15, 2019 · 3 comments
Closed

Comments

@harshalmittal4
Copy link
Contributor

harshalmittal4 commented Apr 15, 2019

While trying to implement pull_request_participants (for a microtask), I realised that some elaboration is needed on who all are to be considered as participants in a pull_request.

Participants can be defined as those who review a PR or comment on a PR or both (anyone who either reviews or comments on a PR).
I feel it should be the last option, i.e. anyone who either reviews or comments on a PR is a participant.

The github's API response for pull_requests includes only the reviewers and not commentators. But it contains the url to the comments, using which commentators can be fetched for the metric pull_request_participants using python's requests.

Would this be the right way going for the metric pull_request_participants..just needed your thoughts on this @valeriocos @jgbarah @aswanipranjal,
Thanks!

@valeriocos
Copy link
Member

@harshalmittal4 I'm not sure this issue should have been opened in the perceval repo, since it seems more a question regarding a specific microtask.

To answer your question, you are free to include any information which is not provided by Perceval. However, note that if you plan to include this info to Perceval, it should be done as discussed at: chaoss/wg-evolution#81 (comment).

please @jgbarah @aswanipranjal share you thoughts.

Thanks!

@harshalmittal4
Copy link
Contributor Author

Hey @valeriocos I realised this issue is more suited to wg-gmd repo 😅
(But since now it is present here, may I ask about it here)

I tried getting the comments from the url using python's requests, but after certain time it is asking for authentication, so had to provide access_token again to fetch the comments seperately. Will push it by today (after adding some other stuff), for you to have a look just in case.

So already including the comments in perceval's response for category pull_request may be good..
@jgbarah, @aswanipranjal, please share your views ;)

@valeriocos
Copy link
Member

please close this issue @harshalmittal4 and open it in wg-gmd. For related technical details, we can keep talking here: #515

Thank you :)

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