build: label PRs with GitHub Action instead of @nodejs-github-bot
Main goal of using a GitHub Action for labelling PRs has been to move the mapping between files changed -> label into a configuration file local to the nodejs/node repository.
Previously any changes to that mapping meant having to grasp the nodejs/github-bot project, open a PR with the necessary changes, get approval from its maintainers before those changes finally got pushed to production.
The logic involved in using the file paths / label configuration and resolving the labels to be applied, has been moved into a custom GitHub Action project: nodejs/node-pr-labeler.
Aside from removing the external dependency the @nodejs-github-bot is in practise (a web server), it also reduces the bar for contributors since the resulting project is a lot smaller and less complex than nodejs/github-bot.
Applied labels should work as before with @nodejs-github-bot. The rules are identical to what was previously found in nodejs/github-bot /lib/node-labels.js
, just yaml-ified.
Example PRs can be seen in my phillipj/node-lookalike repo, which has most of the same rules except for the