semantic-release-gh
Version:
The official GitHub plugin, modified to accept repositoryUrl as a parameter
14 lines (13 loc) • 898 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetSuccessComment = void 0;
const HOME_URL = 'https://github.com/semantic-release/semantic-release';
const linkify = (releaseInfo) => `${releaseInfo.url ? `[${releaseInfo.name}](${releaseInfo.url})` : `\`${releaseInfo.name}\``}`;
const GetSuccessComment = (issue, releaseInfos, nextRelease) => `:tada: This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:${releaseInfos.length > 0
? `\n\nThe release is available on${releaseInfos.length === 1
? ` ${linkify(releaseInfos[0])}`
: `:\n${releaseInfos.map((releaseInfo) => `- ${linkify(releaseInfo)}`).join('\n')}`}`
: ''}
Your **[semantic-release](${HOME_URL})** bot :package::rocket:`;
exports.GetSuccessComment = GetSuccessComment;
//# sourceMappingURL=get-success-comment.js.map