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

Move node-pr-labeler into the nodejs organization #597

Closed
phillipj opened this issue Mar 24, 2021 · 12 comments
Closed

Move node-pr-labeler into the nodejs organization #597

phillipj opened this issue Mar 24, 2021 · 12 comments

Comments

@phillipj
Copy link
Member

As a step in modernizing the work our @nodejs-github-bot is doing in the nodejs/node repo, its PR labelling functionality has been extracted into a custom GitHub Action: phillipj/node-pr-labeler.

The main goal of that project is to put the labelling rules (filepaths -> labels) inside the nodejs/node repo, as a static config file, instead of being part of the nodejs/github-bot source code.

Any thoughts?

Refs nodejs/github-bot#294

/cc @nodejs/community-committee @nodejs/tsc @nodejs/github-bot

@richardlau
Copy link
Member

Does this need a special token to label PR's from forks? I'm asking because the commit queue workflow did labelling and was disabled back in January because the token stopped working (nodejs/node#34770 (comment)). AFAIK only the owners (👋 @nodejs/tsc ) would be able to fix that so probably worth pointing out if that's extra responsibility the TSC needs to be aware they're taking on.

(I'm broadly supportive of the idea, btw, as in theory there's even less people able to update the bot (thanks @phillipj for keeping it updated and running ❤️).)

@nschonni
Copy link
Member

nschonni commented Mar 24, 2021

Is there much custom than some of the existing solutions like https://github.com/marketplace/actions/labeler that make sense to maintain a separate one?

Edit: Mentioned in nodejs/github-bot#294 (comment)

@mhdawson
Copy link
Member

+1

@bnb
Copy link
Contributor

bnb commented Mar 25, 2021

Would this make more sense under the pkgjs org? That seems to be where much of our tooling like this is now living.

@bnb
Copy link
Contributor

bnb commented Mar 25, 2021

AFAIK only the owners (👋 @nodejs/tsc ) would be able to fix that so probably worth pointing out if that's extra responsibility the TSC needs to be aware they're taking on.

CommComm chairperson is also an owner 😅

@phillipj
Copy link
Member Author

Would this make more sense under the pkgjs org?

node-pr-labeler could in practise be used by any GitHub repo, as it's just another Action after all. But there's quite a lot of logic related to nodejs/node' subsystems labels, needs-ci and the use of lib / src label when too many labels has matched the files changed (refs node-pr-labeler /lib/resolve-labels.js).

I imagine that logic being less interesting for other repos, and from a distance the pkgjs org seems pretty generic for JavaScript tooling? Shoot me down if I'm wrong, I'm certainly not opinionated about where and I hadn't heard about that org until now 😄

@phillipj
Copy link
Member Author

Does this need a special token to label PR's from forks? I'm asking because the commit queue workflow did labelling and was disabled back in January because the token stopped working ..

I honestly don't fully understand what happened back then, but I forked my proof-of-concept repo and opened this PR from that fork: phillipj/node-lookalike#14.

From what I can see, it works as expected. And that's without any token added in Settings of the phillipj/node-lookalike repo.

Let me know if that doesn't answer your concern.

@mhdawson
Copy link
Member

Had discussed in the package maintenance meeting and I think we agreed it fits best with the Node.js org.

@phillipj
Copy link
Member Author

Anything thing I can do to help make a decision here?

Like getting confirmation from nodejs/node collaborators by opening a PR adding using of node-pr-labeler etc? I assumed that would be premature before making the move into the nodejs org, but I might obviously be totally wrong.

@mmarchini
Copy link
Contributor

+1 to move it to nodejs org, and thank you for working on this! It's a great step towards. It seems the repository already has the suggested files, so you just need to transfer it to the org and an Admin will approve it (you can let me know here and I can approve it, for example).

AFAIK only the owners (👋 @nodejs/tsc ) would be able to fix that

This is already true for the bot today, but the access to the server is even more limited. Moving to Actions should allow more folks to help fix things when they break.

@phillipj
Copy link
Member Author

phillipj commented Apr 17, 2021

Thanks @mmarchini! I initiated the move now.

EDIT: which seemed to have immediate effect, even tho I'm not an org admin? 🤷🏻‍♂️ nodejs/node-pr-labeler

@phillipj
Copy link
Member Author

Closing this issue since the repository has been moved into the org now.

Assigned privileges to the @nodejs/github-bot team, since that's where majority of the code originated from. Feel free to change that if you'd prefer otherwise.

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

6 participants