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

Membership Reporting Tool #874

Closed
grodrigues3 opened this issue Aug 2, 2017 · 20 comments
Closed

Membership Reporting Tool #874

grodrigues3 opened this issue Aug 2, 2017 · 20 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience.

Comments

@grodrigues3
Copy link
Contributor

@spiffxp

Lots of people ask about membership and it'd be nice to have a consistent report (to send the kubernetes-membership@googlegroups.com ) to demonstrate justification for promotion up the contributor ladder.

I'm imagining something where you could type in your gh handle, and it'd automatically generate a list of the PRs you authored across repos, issues you've opened and closed, and PRs you've reviewed. WDYT?

This is aligned with the contribx q3 OKR:

@kubernetes/sig-contributor-experience-feature-requests

@k8s-ci-robot k8s-ci-robot added sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. kind/feature Categorizes issue or PR as related to a new feature. labels Aug 2, 2017
@resouer
Copy link
Contributor

resouer commented Aug 3, 2017

One quick question is is Github API is enough to get all the information?

@grodrigues3
Copy link
Contributor Author

Yes, but not necessarily directly. For example, getting PRs reviewed by someone who is not the "reviewer" or "assignee" in the gh usage of the word is not directly available.

@k82cn
Copy link
Member

k82cn commented Aug 4, 2017

That'll be great if we have such tools! Will this be the official records? Someone uses http://stackalytics.com, which count by commit instead of PR and use email instead of gh.

@xiangpengzhao
Copy link
Contributor

+1 cool!

This tool will be a web thing, right?

We may provide a script in K/community at first step. I'm imagining this script can generate the report. Contributors can run some command like make contrib WHO=gh which will invoke the script.

@grodrigues3
Copy link
Contributor Author

@k82cn

Will this be the official records?

I'm not sure what official records means here, but I think we can use it to help out with the contributor ladder.

@resouer

This tool will be a web thing, right?

If web thing means dashboard, that sounds ideal to me. I'm hoping to not build something new but rather to integrate with one the tools from ContribX (Sapho, Velodrome) that already pulls data from Gh.

@xiangpengzhao
Copy link
Contributor

If web thing means dashboard, that sounds ideal to me. I'm hoping to not build something new but rather to integrate with one the tools from ContribX (Sapho, Velodrome) that already pulls data from Gh.

Yeah. Agreed.

@zhangxiaoyu-zidif
Copy link
Contributor

That sounds good. Does the tool work now?

@grodrigues3
Copy link
Contributor Author

This is a feature request. If you'd like to work on this please self-assign and reach out to ContribX or me for help getting started.

@nikhita
Copy link
Member

nikhita commented Aug 23, 2017

@grodrigues3 If no one is working on this, I'd like to do so!

I had recently written a similar tool for generating the following list, taking the organization and contributor's github handle as the input.

  • Pull Requests created
  • Issues created
  • Pull Requests reviewed

(It was not for applying for the membership but for my Google Summer of Code project report).

Here is the output it generates: https://github.com/nikhita/gsoc-meta-k8s#pull-requests-and-issues and this is the code: https://github.com/nikhita/github-contrib.

I can work to create something more suitable for kubernetes like make contrib WHO=gh too. 👍 Let me know if it's ok for me to take this up! :)

One question:

Yes, but not necessarily directly. For example, getting PRs reviewed by someone who is not the "reviewer" or "assignee" in the gh usage of the word is not directly available.

@grodrigues3 I am not sure I follow this. What is the other "meaning" of a reviewer, if not in the GH usage of the word?

@grodrigues3
Copy link
Contributor Author

@nikhita awesome, yes we'd love the help.

For example, getting PRs reviewed by someone who is not the "reviewer" or "assignee" in the gh usage of the word is not directly available.

Github ACLs don't allow someone who is not a collaborator or in the org to be assigned to issues or PRs. However, they can still comment (like you just did on this issue) and give feedback. I think those people should be credited with PR reviews even though they are not listed as the assignee or reviewer on the PR itself. In other words, if they wrote comments but they are not assigned to the PR, we should still consider that as code review.

@nikhita
Copy link
Member

nikhita commented Aug 23, 2017

In other words, if they wrote comments but they are not assigned to the PR, we should still consider that as code review.

Oh, the Github API already supports this! :)

However, the reviewed-PR list also takes into account the PRs that were authored by the contributor. (Do we want to show this as well? IMHO it's counter-intuitive to say that someone reviewed their own PR).

But this is not really a problem and can be solved using another API call (I do that in my code).

Example:

Please let me know if I'm missing something here.

@grodrigues3
Copy link
Contributor Author

IMHO it's counter-intuitive to say that someone reviewed their own PR

Yeah, we should filter this. More than likely they are just responding to other people's comments :)

Please let me know if I'm missing something here.

Nope, I think you have a pretty good handle of this. Let me know if you get stuck at all.

@bgrant0607
Copy link
Member

See also kubernetes-retired/contrib#1029

@resouer
Copy link
Contributor

resouer commented Aug 24, 2017

@bgrant0607 I've tried @nikhita 's tool and it's awesome, +1 for this contribute!

@grodrigues3
Copy link
Contributor Author

So the tool does quite a bit of the work for us, but it still seems like a pull-not-push interface. Meaning I need to look up individual contributors.

Instead, I'd like something that always displayed contributors that should be up for ladder promotion or infrequently alerted a list or the user that they should self-nominate. The project is too large for any one person to regularly identify who should be moving up the contrib ladder.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 3, 2018
@nikhita
Copy link
Member

nikhita commented Jan 3, 2018

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Jan 3, 2018
@nikhita
Copy link
Member

nikhita commented Jan 3, 2018

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 3, 2018
@nikhita
Copy link
Member

nikhita commented Oct 23, 2018

Closing this because it was decided in kubernetes/org#10 that we don't need this now. We can revisit it, if needed.

/close

@k8s-ci-robot
Copy link
Contributor

@nikhita: Closing this issue.

In response to this:

Closing this because it was decided in kubernetes/org#10 that we don't need this now. We can revisit it, if needed.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience.
Projects
None yet
Development

No branches or pull requests

9 participants