invite-contributors icon indicating copy to clipboard operation
invite-contributors copied to clipboard

Allow invitation based on requester's issue comment

Open patcon opened this issue 7 years ago • 2 comments

This a great probot plugin!

I have a more generous use-case that I was hoping you might consider:

When using protected branches, a maintainer might be willing to auto-add interested users to a team, based on simply a comment in a specially created issue. The team could confer either pull access -- eg. allowing labels to be managed for triage -- or push access -- eg. allowing feature branches to be created that deploy heroku review apps)

Would you feel it fitting for me to submit a PR to this repo to add this functionality?

As for implementation, I would imagine

# If true, this will add new contributors as outside collaborators
# to the repo their PR was merged in. Team name is ignored if this
# flag is set to true.
isOutside: false

# Specify team name to add new contributors to a specific team
# within your organization.
# Use team name or team-name-slug
team: MY TEAM NAME

# If set to an integer, then commenters on that issue (or PR) will
# automatically be invited as contributors according to other settings.
# Defaults to `false`.
invitation_issue: false

patcon avatar Apr 15 '18 18:04 patcon

current workaround for this is to ask people to add themselves to a "Contributor" list in the readme, and that PR (perhaps via prose) would be a simple way to engage and share ownership of project

patcon avatar Apr 15 '18 19:04 patcon

Hey @patcon,

Great to see interest in the plugin! I feel like it'd be a cool use case to add in. Feel free to take initiative on it! 😄

erickzhao avatar Apr 15 '18 23:04 erickzhao