A GitHub bot to automate certain tasks

Hello everyone,

I was wondering if we couldn’t save some time by setting up a few automations on the GitHub repo :slight_smile:

On GitHub, I’m generally not a big fan of extreme automation (bots that close your still valid issues just create more work than anything else), but on the other hand, I think there are a few recurring tasks that we could manage to automate:

  • Adding tags according to the status of PRs so that it’s clearer on « where the PR is at Â». I don’t know why, but I still can’t clearly see which PRs are ready for review, which PRs are waiting for changes. On my side, managing git is really a hassle right now. Many PRs are ready to be reviewed but I can’t see them easily. I came across this kind of bot: https://probot.github.io/apps/pr-triage/, it could help us. Let’s discuss the process with you :slight_smile:

  • Reminding old PRs waiting for changes, and if no response after several months, adding a « pr-inactive Â» tag or closing the PR, I don’t know (I want to be broad on this, we’re not there to stress people to respond in 1 week, it’s toxic. Everyone can have a life and propose a PR :slight_smile: ). After all, closing might be a bit strong, we might lose developments that might resume a year later (zigbee2mqtt took more than 1 year for example, by being inactive for several months, so well!)

  • Sorting issues with the right tags. Some issues are created automatically (example: device z-wave, device zigbee2Mqtt). Being able to directly add the right tags.

These are a few ideas but there might be others.

Current GitHub maintenance represents a considerable amount of work for me (and a lot of time wasted opening/closing each PR to see where it’s at), and I’m sure we could optimize that better :slight_smile:

What do you think @contributors?