Merge pull request #3626 from Citadel-Station-13/upstream-merge-32053

[MIRROR] Webhook processor no longer removes [tags] from titles
This commit is contained in:
LetterJay
2017-10-27 02:45:06 -04:00
committed by GitHub
@@ -167,8 +167,6 @@ function check_tag_and_replace($payload, $title_tag, $label, &$array_to_add_labe
$title = $payload['pull_request']['title'];
if(stripos($title, $title_tag) !== FALSE){
$array_to_add_label_to[] = $label;
$title = trim(str_ireplace($title_tag, '', $title));
apisend($payload['pull_request']['url'], 'PATCH', array('title' => $title));
return true;
}
return false;