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

question: post template items as a reviewer or editor #37

Open
lwasser opened this issue May 9, 2024 · 1 comment
Open

question: post template items as a reviewer or editor #37

lwasser opened this issue May 9, 2024 · 1 comment

Comments

@lwasser
Copy link
Member

lwasser commented May 9, 2024

@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 -

  1. 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?

  2. 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

@xuanxu
Copy link
Member

xuanxu commented May 10, 2024

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

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

2 participants