setup-php/node_modules/codecov/lib/services/localGit.js

17 lines
320 B
JavaScript
Raw Normal View History

2019-09-20 09:41:20 +07:00
var git = require('../git')
module.exports = {
configuration: function() {
console.log(' No CI Detected. Using git/mercurial')
var branch = git.branch()
if (branch === 'HEAD') {
branch = 'master'
}
var head = git.head()
return {
commit: head,
branch: branch,
}
},
}