diff --git a/dist/index.js b/dist/index.js index a885abd..951ab68 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9900,8 +9900,8 @@ async function run() { } // Set the milestone - core.debug(`Updating milestone to ${milestone.title}...`); const milestone = match[0] + core.debug(`Updating milestone to ${milestone.title}...`); octokit.rest.issues.update({ ...context.repo, issue_number: pull_request.number, @@ -9922,9 +9922,12 @@ function bumpVersion(before, target) { version[2] += 1 break; case 'minor': + version[2] = 0 version[1] += 1 break; case 'major': + version[2] = 0 + version[1] = 0 version[0] += 1 break; } diff --git a/index.js b/index.js index 68c738c..dd56673 100644 --- a/index.js +++ b/index.js @@ -109,8 +109,8 @@ async function run() { } // Set the milestone - core.debug(`Updating milestone to ${milestone.title}...`); const milestone = match[0] + core.debug(`Updating milestone to ${milestone.title}...`); octokit.rest.issues.update({ ...context.repo, issue_number: pull_request.number,