-
Notifications
You must be signed in to change notification settings - Fork 1
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
Get Buffy configured properly #1
Comments
@deniederhut It looks like the bot is not allowed to query for teams info, did you add it as admin to the organization? it should be an admin in |
Oh, no I have not added it as an admin, but I would also rather not give it privileges that are that high. Is there another way we can specify who the editors are? E.g. directly in the config? |
Right now the editors can only be added in the config as a team. And for some of the other actions the bot can perform GitHub requires admin privileges in the organization (adding reviewers as collaborators to the repo, invite, ...) |
(I've just added to my backlog to allow restricting access to responders to individual github users) |
Awesome -- thanks!
So I think that our workflow shouldn't need to use those? Anyone who isn't an editor opens paper PRs from their own forks of the scipy_proceedings repo. Which conveniently brings me to my next question. In SciPy's paper review workflow, all of the discussion happens in PR submission, comments, and reviews. If I update the webhook to send PR updates to Buffy, will Buffy respond to them? Or does it filter for Issue updates specifically and/or have logic that assumes it will be responding via the issues API? Sorry for all the questions -- I'm not very familiar with Ruby or the Github API, so I'm sort of double blind here. (that was an editor pun 😎) |
Good question. The code currently only listens to issue events, but it should work in PRs with no changes, as PRs are internally a special type of issues. Please try it. |
If you don't need to invite anyone as a collaborator I think you don't need the admin privileges (once the editors' GH handles can be specified in the config directly). |
Okay cool. I'll give that a shot tonight. Thanks! |
Buffy allows now to create teams using a list of users: teams:
editors:
- user1
- user2 If you update the |
Wow that was fast! I'll give it a shot and let you know how it goes! |
BTW, I've added a short guide on "how to add custom responders" to the docs: |
Sweet, it looks like it's working as intended! And thanks for the additional docs -- I'm sure I'll have a bunch of questions for you in like... a week or so. |
Hey @xuanxu ! Long time no chat! So I think we've gotten most of the responders we want to have for this year up and running, including triggering a paper build on our remote build server and checking the status. The one thing left on our to-do list is assigning paper reviewers. I gave it a shot here (scipy-conference/scipy_proceedings_test#5 (comment)) and it looks like the bot can assign people to PRs, but not request reviews on PRs. Is there something I need to do to get that command working? |
Hey Dillon! So nice to see you have it up and running!
About the assigning reviewers command, probably it is missing the html
comment in the body of the issue needed for it to work, check
https://buffy.readthedocs.io/en/latest/responders/list_of_values.html
|
Ah, okay. I think I had assumed that this would request a review from that user, but listing them in the opening comment works too. Thanks so much for your help! |
Hey @xuanxu! So I've been fumbling around with the code and configurations, and we are at the point where the bot (@scoobies) responds to
hello
andhelp
on this ticket here: scipy-conference/scipy_proceedings_test#1. Currently, any response that is specified as "editor only" is failing with an authorization error:Possibly this is due to a misspecification of the teams? I don't know where one can find the GitHub ID, so I used the name of the team here:
buffy/config/settings-production.yml
Line 7 in 3d769fb
The text was updated successfully, but these errors were encountered: