Open lwasser opened 6 months ago
Hey @lwasser! The bot can only post messages as the bot, to post as another user we'd need a GitHub-OAuth application where users would have to allow the bot to post in their name.
The available solution is for the bot to edit a message created by the person calling the bot (the bot is an admin of the repo so is allowed to edit anything). This way a reviewer can use the command "bot generate my checklist" and the bot will edit that same message to post the review template, and as the creator of the message the reviewer can continue editing it.
This is the responder: https://buffy.readthedocs.io/en/latest/responders/reviewer_checklist_comment.html And here is in use by JOSS: https://github.com/openjournals/buffy/blob/joss/config/settings-production.yml#L53-L60
I think you could use this responder for both your 1) and 2) commands
@xuanxu - another question for you! I was talking with Jonny the other day about the JOSS bot. Jonny thought that there was a way to allow reviewers to call the bot for specific functions -
Question: more specifically that we could create a responder that would allow the reviewers to post a copy of the review template into the issue (as themselves so they can edit it). Is that functionality available / used to your knowledge?
Question: my next related question is - if i use the command
@pyosbot package accepted
it posts the wrap up steps for the editor to follow. can these messages be posted from the person calling the bot? or will they always be posted from the bot?thank you again. leah