From 024a6abc50325cc02f2ef2a4c0d4cff2ca756001 Mon Sep 17 00:00:00 2001 From: Daniel Stockman Date: Fri, 22 Mar 2019 10:53:33 -0700 Subject: [PATCH] fix(version): Search for complete tag prefix when composing GitHub releases Fixes #2038 --- commands/version/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/version/index.js b/commands/version/index.js index 85bc7ebab0..01dcee77f7 100644 --- a/commands/version/index.js +++ b/commands/version/index.js @@ -632,7 +632,7 @@ class VersionCommand extends Command { return Promise.all( this.releaseNotes.map(({ notes, name }) => { - const tag = name === "fixed" ? this.tags[0] : this.tags.find(t => t.startsWith(name)); + const tag = name === "fixed" ? this.tags[0] : this.tags.find(t => t.startsWith(`${name}@`)); /* istanbul ignore if */ if (!tag) {