Skip to content

Commit

Permalink
fix(semantic-release): change github success comment
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
luisherranz committed Jul 11, 2018
1 parent 79f7ee9 commit e320ec4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"success": [
{
"path": "@semantic-release/github",
"successComment":
":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)"
"successComment": ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\n${releases.filter(rel =>!!rel.name).length > 0 ? `\n\nThe release is available on${releases.filter(rel => !!rel.name).length === 1 ? ` ${releases.filter(rel => !!rel.name)[0].url ? `[${releases.filter(rel => !!rel.name)[0].name}](${releases.filter(rel => !!rel.name)[0].url})` : `${releases.filter(rel => !!rel.name)[0].name}`}` : `:\n${releases.filter(release => !!release.name).map(releaseInfo => `- ${releaseInfo.url ? `[${releaseInfo.name}](${releaseInfo.url})` : `${releaseInfo.name}`}`,).join('\n')}`}`: ''}"
}
],
"fail": ["@semantic-release/github"],
Expand Down

0 comments on commit e320ec4

Please sign in to comment.