Integrated: 1365: Draft PRs do not get extra time before auto closing

Magnus Ihse Bursie ihse at openjdk.java.net
Wed Mar 2 19:47:45 UTC 2022


On Wed, 2 Mar 2022 17:18:50 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> The PullRequestPrunerBot automatically closes PRs that have been inactive for too long. The maxAge is configurable, and we have it set to 28 days for most repos on Github. [SKARA-831](https://bugs.openjdk.java.net/browse/SKARA-831) tried to give draft PRs double the time before being auto closed. Unfortunately, that fix wasn't enough, as it only affects the printed message and not the actual age check.
> 
> I tried to add a unit test for this, but in the end I could find no reliable way to do this. I don't want to rely on timings. And the only other thing I could think of checking was the message printed -- but that was already "correct" so it would not verify this bug anyway.

This pull request has now been integrated.

Changeset: 518d71bc
Author:    Magnus Ihse Bursie <ihse at openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/518d71bc3911b19e0d4582c43775728de6199c03
Stats:     4 lines in 1 file changed: 1 ins; 0 del; 3 mod

1365: Draft PRs do not get extra time before auto closing

Reviewed-by: erikj

-------------

PR: https://git.openjdk.java.net/skara/pull/1293


More information about the skara-dev mailing list