File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ module.exports = {
24
24
'pull-requests' : {
25
25
26
26
'should always be made against -wip branches' : function ( pull ) {
27
- assert . ok ( / \- w i p $ / . test ( pull . base . label ) )
27
+ assert . ok ( / \- w i p $ / . test ( pull . base . ref ) )
28
28
} ,
29
29
30
30
'should always be made from feature branches' : function ( pull ) {
31
- assert . ok ( pull . head . label != 'master' )
31
+ assert . notEqual ( pull . head . ref , 'master' )
32
32
} ,
33
33
34
34
'should always include a unit test if changing js files' : function ( pull ) {
35
35
var hasJS = false
36
36
var hasTests = false
37
37
38
38
pull . files . forEach ( function ( file ) {
39
- if ( / ^ j s \/ [ ^ . / ] + .j s / . test ( file . filename ) ) hasJS = true
39
+ if ( / ^ j s \/ [ ^ . / ] + .j s / . test ( file . filename ) ) hasJS = true
40
40
if ( / ^ j s \/ t e s t s \/ u n i t \/ [ ^ . ] + .j s / . test ( file . filename ) ) hasTests = true
41
41
} )
42
42
You can’t perform that action at this time.
0 commit comments