kentaro-m / auto-assign

🤖 A Probot app that adds reviewers to pull requests when pull requests are opened.
https://probot.github.io/apps/auto-assign/
ISC License
249 stars 55 forks source link

Add assignees when a draft PR is marked ready for review #136

Open arminru opened 3 years ago

arminru commented 3 years ago

Is your feature request related to a problem? Please describe. Currently assignees are not added when a draft PR is marked ready for review, only when it is opened as ready right away.

Describe the solution you'd like I'd expect assignees to be added once the draft PR is marked ready for review.

Additional context I noticed that #105 introduced behavior intended to add assignees only once marked as ready, but apparently this does not work as expected. It added the following hook: https://github.com/kentaro-m/auto-assign/blob/71d1a9c3ba4d5a88326c5e246e5ae120673e38c0/src/index.ts#L6

If I understand the (quite sparse) documentation correctly, this hook/event does not apply when a draft PR is marked as ready for review but only when a non-draft PR is created, so the handler will not be called a second time.