The current WIP plugin looks for the PR title prefix to set the status. The scope of this enhanced to change PR status based on the existing label.
The new behavior handles the following cases as described below:
set the status to failure if PR either contains a wip label (irrespective to the title prefix) or it has a wip prefix in the title (in which case the label is automatically added).
set the status to success if the PR is updated by either removing the wip prefix from the title (in which case the label is also removed automatically) or by removing the wip label (in which case, if present, the wip title prefix is also remove automatically).
The current WIP plugin looks for the PR title prefix to set the status. The scope of this enhanced to change PR status based on the existing label.
The new behavior handles the following cases as described below:
wip
label (irrespective to the title prefix) or it has awip
prefix in the title (in which case the label is automatically added).wip
prefix from the title (in which case the label is also removed automatically) or by removing thewip
label (in which case, if present, thewip
title prefix is also remove automatically).Fixes: #27