Skip to content

Commit 1f70dd7

Browse files
committed
Use ref instead of label when checking branches in issue-guidelines
1 parent 31b30ab commit 1f70dd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.issue-guidelines.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ module.exports = {
2424
'pull-requests': {
2525

2626
'should always be made against -wip branches': function (pull) {
27-
assert.ok(/\-wip$/.test(pull.base.label))
27+
assert.ok(/\-wip$/.test(pull.base.ref))
2828
},
2929

3030
'should always be made from feature branches': function (pull) {
31-
assert.ok(pull.head.label != 'master')
31+
assert.notEqual(pull.head.ref, 'master')
3232
},
3333

3434
'should always include a unit test if changing js files': function (pull) {
3535
var hasJS = false
3636
var hasTests = false
3737

3838
pull.files.forEach(function (file) {
39-
if (/^js\/[^./]+.js/.test(file.filename)) hasJS = true
39+
if (/^js\/[^./]+.js/.test(file.filename)) hasJS = true
4040
if (/^js\/tests\/unit\/[^.]+.js/.test(file.filename)) hasTests = true
4141
})
4242

0 commit comments

Comments
 (0)