1. If a PR is closed but not merged then remove all labels
2. If a release version is added and there are release version missing
or Release review required, then remove those labels
3. In the check for conflicts rule, add the condition 'open' so
that it isn't applied to closed or merged PRs
This is useful if we want to drive PR. There are situations when mergify is not ideal,
and we want to overwrite its rules.
I applied the label for some actions that we can overwrite.
jenkins hooks are not always present, therefore we can't rely on them. Lets rely on
not failing for jenkins-ci hooks.
This should cover when they are not there due to smart tester, or executed and green. If failed, the condition would be false.
There are two cases here: either PR was in review or needs work. in any case, new
CI should be started as pr-head is yellow. Once it completes, based on reviews, we can move
to ready for merge or back to needs work if fails.
This config should always follow our worklof and other way around. They should both be in sync.
What can mergify do? Check PR status (labels, reviewers) and act on it. First step would be to not merge anything, just use labels and help us to keep PRs up to date. Less manual work.
If this works, we can get CI to check specific labels to trigger CI (or use commands) and other things, this needs more work.