ropensci-org / buffy

Editorial bots generator
https://buffy-ropensci.readthedocs.io/en/latest/
MIT License
1 stars 2 forks source link

Different responses to different template variable values #17

Closed mpadge closed 3 years ago

mpadge commented 3 years ago

@xuanxu We've got template variables implemented, and would like different responders for this template with <!--submission-type-->Standard<!--end-submission-type--> and this template with <!--submission-type-->Stats<!--end-submission-type-->. (The latter template will be added as an additional template to the standard submission repo, so they'll both be templates in the one repo.)

We would like the add review command for the first submission-type variable ("Standard") to respond as it currently does, but the same command for the second template to generate the same text, but with a different link:

respond("#{reviewer} added to the reviewers list. Review due date is #{due_date}. Thanks #{reviewer} for accepting to review! Please refer to [our reviewer guide](https://ropenscilabs.github.io/statistical-software-review-book/pkgreview.html).")