CI: Automate some GitHub PR status labels manipulations
commit5a2333b10fd20eb5a11bbcd01da785b59063df11
authorAlexander Motin <mav@FreeBSD.org>
Tue, 5 Nov 2024 01:16:32 +0000 (4 20:16 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2024 01:16:32 +0000 (4 17:16 -0800)
treef05c1e0d4fcef32e762d25095cd9be6ddd041245
parentc8aed9f97329bb328ea4fe677defdcb20d703bb3
CI: Automate some GitHub PR status labels manipulations

- Set/remove "Work in Progress"/"Code Review Needed" for drafts.
 - Remove "Accepted", "Inactive", "Revision Needed" and "Stale" on
pushes and reopens.

I hope this reduce chances of PRs being forgotten after requested
modifications done due to stale labels.  It is better to have no
labels than incorrect ones saying there is nothing to look at.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16721
.github/workflows/labels.yml [new file with mode: 0644]