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

Let the bot give people triage access #68

Open
asmeurer opened this issue Jul 16, 2019 · 1 comment
Open

Let the bot give people triage access #68

asmeurer opened this issue Jul 16, 2019 · 1 comment

Comments

@asmeurer
Copy link
Member

There is a new "triage" permission in GitHub, which gives people the ability to add labels to issues without giving them push access. See https://help.github.com/en/articles/repository-permission-levels-for-an-organization.

The only issue is that you have to add people to it automatically. We could let the bot give people triage access.

One option would be to have a special bot command like "@sympy-bot give @user triage access". A problem with this is that it isn't discoverable or even easy to remember, so it probably wouldn't get used.

Another option would be to give everyone who opens a pull request access. This could be a bit intrusive, but maybe not. You do have to accept an invitation to actually get the access, and I think you can remove yourself at any time (but I should confirm this).

If this is too much we could have the bot ask people if they want it, or maybe have a link in the bot message to a page where they can enter their username, and the bot will give it. Probably if we do it that way we should authenticate with GitHub so that people can only give themselves access. Otherwise it could be used to spam people.

@asmeurer
Copy link
Member Author

Here is the relevant API https://developer.github.com/v3/teams/members/#add-or-update-team-membership

If I understand the permissions correctly, we need to make the bot a "team maintainer" for the "Triage" team. That way it will have access to add new people. Otherwise I think it would have to have admin privileges for SymPy, which would be unacceptable.

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

1 participant