diff options
| author | ♒∆✝ <[email protected]> | 2012-08-01 00:52:52 -0700 |
|---|---|---|
| committer | ♒∆✝ <[email protected]> | 2012-08-01 00:52:52 -0700 |
| commit | 6905dbe98deb02ca53d23242e1bd914c3e325eb1 (patch) | |
| tree | b3c2a5db101ace4a8fc0b47744b2ef8fca0502f3 | |
| parent | 31b30ab88e6ac823653a6211365d6c9d46c5fa5d (diff) | |
| parent | 1f70dd71c870804486d1dd57b7b6d319360edde2 (diff) | |
| download | bootstrap-6905dbe98deb02ca53d23242e1bd914c3e325eb1.tar.xz bootstrap-6905dbe98deb02ca53d23242e1bd914c3e325eb1.zip | |
Merge pull request #4241 from shama/issue-guidelines
Use ref instead of label when checking branches in issue-guidelines
| -rw-r--r-- | .issue-guidelines.js | 6 |
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 }) |
