]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use ref instead of label when checking branches in issue-guidelines 4241/head
authorKyle Robinson Young <kyle@dontkry.com>
Tue, 31 Jul 2012 22:16:40 +0000 (15:16 -0700)
committerKyle Robinson Young <kyle@dontkry.com>
Tue, 31 Jul 2012 22:16:40 +0000 (15:16 -0700)
.issue-guidelines.js

index 4c18ab3c03e700b50323cefc74cac8cecde12901..9b20dc2638dee15e4c3ec3d2b52c52d2d0feb702 100644 (file)
@@ -24,11 +24,11 @@ module.exports = {
     'pull-requests': {
 
         'should always be made against -wip branches': function (pull) {
-            assert.ok(/\-wip$/.test(pull.base.label))
+            assert.ok(/\-wip$/.test(pull.base.ref))
         },
 
         'should always be made from feature branches': function (pull) {
-            assert.ok(pull.head.label != 'master')
+            assert.notEqual(pull.head.ref, 'master')
         },
 
         'should always include a unit test if changing js files': function (pull) {
@@ -36,7 +36,7 @@ module.exports = {
             var hasTests = false
 
             pull.files.forEach(function (file) {
-                if (/^js\/[^./]+.js/.test(file.filename))            hasJS    = true
+                if (/^js\/[^./]+.js/.test(file.filename))             hasJS    = true
                 if (/^js\/tests\/unit\/[^.]+.js/.test(file.filename)) hasTests = true
             })