Renames 'Ready for Review' to 'Review Again' (#31995)

This commit is contained in:
Jordan Brown
2017-10-23 01:09:58 -04:00
committed by CitadelStationBot
parent 5bce9bc2b0
commit 1eaaf665f9

View File

@@ -241,7 +241,7 @@ function tag_pr($payload, $opened) {
function remove_ready_for_review($payload, $labels = null){
if($labels == null)
$labels = get_labels($payload);
$index = array_search('Ready for Review', $labels);
$index = array_search('Review Again', $labels);
if($index !== FALSE)
unset($labels[$index]);
$url = $payload['pull_request']['issue_url'] . '/labels';
@@ -258,7 +258,7 @@ function get_reviews($payload){
}
function check_ready_for_review($payload, $labels = null){
$r4rlabel = 'Ready for Review';
$r4rlabel = 'Review Again';
$labels_which_should_not_be_ready = array('Do Not Merge', 'Work In Progress', 'Merge Conflict');
$has_label_already = false;
$should_not_have_label = false;