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

A bookmarklet to check if comment authors in PRs are Node.js collaborators #12284

Closed
vsemozhetbyt opened this issue Apr 8, 2017 · 3 comments
Closed
Labels
meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory.

Comments

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Apr 8, 2017

Currently, all the Node.js Foundation members marked in PRs as just Member. So there is no clarity sometimes (especially for new collaborators) if this member (there are 545 now) is also a collaborator (there are 94 now), i.e. if they can run a CI or add labels or land a PR etc. and if help needed.

So I've jotted down another little silly bookmarklet to check.

To save it, you can simply select the code (from javascript: { up to the last }) and drag it to the bookmarks panel, then edit the bookmark name.

It also can be used as a user script for Tampermonkey, so the check could be run automatically without clicking on the bookmarklet. See user script header example in the first comment of the gist.

To use the bookmarklet, you should be in the 'Conversation' tab of a PR. It can work on other pages, but this was not tested.

The code simply XMLHttpRequests collaborators page, greps usernames and then marks athor links in the PR page according to the collaborators' usernames list — with green (= a user can ran CI etc.) or grey (= a user can't ran CI etc. for now) colors.

Feel free to fork and adjust anything)

@vsemozhetbyt vsemozhetbyt added meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. labels Apr 8, 2017
@vsemozhetbyt
Copy link
Contributor Author

BTW, maybe this can be implemented somehow via github-bot just as first time contributors are marked?

@refack
Copy link
Contributor

refack commented May 11, 2017

@vsemozhetbyt github has started to page so I forked and updated your gist to handle pages
https://gist.github.com/refack/d6cea6115ccde111a109ea99acba7588

@vsemozhetbyt
Copy link
Contributor Author

@refack Feel free to improve in any way)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

No branches or pull requests

2 participants