Merge pull request #2318 from Citadel-Station-13/upstream-merge-29752

[MIRROR] Makes [WIP] and [DNM] case insensitive for autotagging
This commit is contained in:
LetterJay
2017-08-09 11:24:43 -05:00
committed by GitHub
+2 -2
View File
@@ -162,10 +162,10 @@ function tag_pr($payload, $opened) {
$tags[] = $tag;
//only maintners should be able to remove these
if(strpos($title, '[DNM]') !== FALSE)
if(strpos($lowertitle, '[dnm]') !== FALSE)
$tags[] = 'Do Not Merge';
if(strpos($title, '[WIP]') !== FALSE)
if(strpos($lowertitle, '[wip]') !== FALSE)
$tags[] = 'Work In Progress';
$url = $payload['pull_request']['base']['repo']['url'] . '/issues/' . $payload['pull_request']['number'] . '/labels';