Close stale PRs with no CLA signature
The short story
We used to close stale PRs that did not have the CLA signed.
We no longer have that with the new CLA bot.
Let's reimplement it.
Long version
In https://github.com/python/core-workflow/issues/93 we used a GitHub action to label PRs which have had no activity for 30 days with a stale label.
-
If the PR had the
CLA not signedlabel, it would be auto-closed after 14 days. -
If the PR had the
CLA signedlabel, it would not be auto-closed.
We're now using a CLA bot that uses a status check and does not add/remove labels, so the label-specific stuff was removed in https://github.com/python/cpython/pull/91429; it now only applies the stale label and cannot close old PRs.
How can we reimplement this?
https://github.com/actions/stale does not see PR status checks. Can the CLA bot be updated to add/remove labels?
I think it's better to hook bedevere on CLA bot status change and let it do the job (webhook docs). Extra labels were creating a visual clutter, as for me.