A script to manage members of the org #114
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have reworked the original POC code from #29 and made it ready to deploy.
/cc @nodejs/tsc
How it works
Modify a repo's README.md
Place a special
<!-- team:name -->
comment in the repo'sreadme.md
:NOTE: You must specify the team's
name
in the opening comment like shown above!Create/update a PR
When a PR is submitted or changes are pushed, the bot will evaluate the commit(s) for changes to the
README.md
file. If changed, it will extract the content within the<!-- team -->
comments find all@mentions
and do a diff with the list of current team members.Accept the PR
Accepting a PR sends a
push
event. So, any push- even ones outside the PR process, will get picked up by the bot.When the bot receives the
push
event, it will do the same parsing + evaluating as when the PR was created/updated, but instead of creating a comment- it applies the additions AND removals to the team (if any).Other changes in this PR
A few of the integration tests were changed to limit them to loading only the script it tests (via
process.env.SCRIPTS
). This prevents initialization code in unrelated scripts from running multiple times when runningnpm test
.