From 5d0e70a31e0e4cc970dedd1481d1e7dab15a651c Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:31:30 +0200 Subject: [PATCH] Compile (#5) --- dist/index.js | 5 ++++- index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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,