mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:19:02 +00:00
Renames 'Ready for Review' to 'Review Again' (#31995)
This commit is contained in:
committed by
CitadelStationBot
parent
5bce9bc2b0
commit
1eaaf665f9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user