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

Feature Request: Vacation/Away Mode #108

Closed ibrand closed 4 years ago

ibrand commented 4 years ago

Is your feature request related to a problem? Please describe. During the initial exploration of applying this bot to the project I work on, someone expressed concern of what would happen when they're on vacation, sick, or otherwise unable to review a PR. This is an important question for all projects, but especially open-source projects where devs might be taking breaks frequently and sporadically.

I'd like there to be a "Vacation Mode" where no PRs are assigned to you even if you're still on the PR reviewers list.

Describe the solution you'd like I discussed this idea initially with @kentaro-m in a Spectrum post and I like the solution of leveraging the github API around the "busy" checkbox in the user's profile:

If I were you, I would implement it using the User Status API. If you use the indicatesLimitedAvailability fields, you can get the status of whether a user is busy. https://developer.github.com/v4/object/userstatus/ image

Describe alternatives you've considered In my initial post in that Spectrum thread I proposed these 2 solutions, but wasn't really happy with either from a usability standpoint:

  1. Making people edit the config to remove themselves before they leave on vacation. This is a little rough because then you need to remember to edit the config everytime you go away.
  2. If someone hasn't reviewed a PR within a certain number of days, note them as away and re-assign randomly. I like this idea, but I'm not sure how tricky it would be given the way the bot works
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.