aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.issue-guidelines.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/.issue-guidelines.js b/.issue-guidelines.js
index 4c18ab3c0..9b20dc263 100644
--- a/.issue-guidelines.js
+++ b/.issue-guidelines.js
@@ -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
})