Skip to content

Commit

Permalink
fix(version): Search for complete tag prefix when composing GitHub re…
Browse files Browse the repository at this point in the history
…leases

Fixes #2038
  • Loading branch information
evocateur committed Apr 24, 2019
1 parent 090e180 commit 024a6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/version/index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 024a6ab

Please sign in to comment.