Closed ghost closed 2 years ago
It might still be worth posting, just making it abundantly clear in the message that it's draft. Maybe configurable (once there's a mechanism for configuration)
I'm pretty sure github disables notifications while a PR is in draft mode (for email notifications, etc), so that would be nice to emulate, I think. But there is a pull_request.ready_for_review
webhook, so we could easily send a message at the end saying "PR is now ready" (as I did manually in slack).
Question to you: do you think you'd want a notification on each push, or just that one at the end?
My ideal: start the thread on post no updates for commits or comments while it's still in draft mode, then the "now ready" message and process it normally.
If
event.pull_request.draft
istrue
, then ignore it.