refactor(commits,type): simplify interfaces
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
const { exec } = require('child_process')
|
||||
|
||||
module.exports = function (results, cb) {
|
||||
const from = results.lastRelease.gitHead
|
||||
module.exports = function (lastRelease, cb) {
|
||||
const from = lastRelease.gitHead
|
||||
const range = (from ? from + '..' : '') + 'HEAD'
|
||||
|
||||
exec(
|
||||
|
||||
+1
-4
@@ -1,9 +1,6 @@
|
||||
const SemanticReleaseError = require('./error')
|
||||
|
||||
module.exports = function (plugins, results, cb) {
|
||||
const commits = results.commits
|
||||
const lastRelease = results.lastRelease
|
||||
|
||||
module.exports = function (plugins, commits, lastRelease, cb) {
|
||||
const type = plugins.analyze(commits)
|
||||
|
||||
if (!type) {
|
||||
|
||||
Reference in New Issue
Block a user