ropensci-org / buffy

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

Responder to call external API service when issue first opened #19

Closed mpadge closed 3 years ago

mpadge commented 3 years ago

@xuanxu Next on our list of requirements is a responder that calls an external API endpoint when an issue is opened. That API returns immediately with an arbitrary value (or nothing at all), and is used just to trigger a separate service. The external service configuration is identical to current one in our config settings:

https://github.com/ropensci-org/buffy/blob/208f2f11467dd86c814d824f7d41cf4846b336ca/config/settings-production.yml#L79-L92

How can we (re-)configure the welcome responder to include this external service call?

xuanxu commented 3 years ago

This sounds like an external_service responder but triggered by the issue.opened event instead of comment.created. I'm going to investigate if this can be moved to config or we need a new responder.

xuanxu commented 3 years ago

This can be done now with the updated Welcome responder. Closing the issue.