Hey,

We have lots of open pull requests and quite some of them are 
stale/abandoned/inactive. Often such old PRs are impossible to merge due to 
conflicts and it’s easier to just abandon and rewrite them. Especially there 
are some PRs which original contributor created long time ago, someone else 
wrote some comments/review and… that’s about it. Original contributor never 
shown up again to respond to the comments. Regardless of the reason such PRs 
are clogging the GitHub, making it difficult to keep track of things and making 
it almost impossible to find a little bit old (for example 3+ months) PRs that 
are still valid and waiting for reviews. To do something like that, one would 
have to dig through tens or hundreds of abandoned PRs.

What I would like to propose is to agree on some inactivity dead line, lets say 
3 months. After crossing such deadline, PRs should be marked/commented as 
“stale”, with information like:

“This pull request has been marked as stale due to 3 months of inactivity. It 
will be closed in 1 week if no further activity occurs. If you think that’s 
incorrect or this pull request requires a review, please simply write any 
comment.”

Either we could just agree on such policy and enforce it manually (maybe with 
some simple tooling, like a simple script to list inactive PRs - seems like 
couple of lines in python by using PyGithub) or we could think about automating 
this action. There are some bots that do exactly this (like this one: 
https://github.com/probot/stale <https://github.com/probot/stale> ), but 
probably they would need to be adopted to limitations of our Apache repository 
(we can not add labels and we can not close the PRs via GitHub).

What do you think about it?

Piotrek

Reply via email to