Skip to content

Commit

Permalink
fix: release name fix on slack message (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanto authored Aug 27, 2021
1 parent bc816b1 commit ddc4fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ async function prepareRelease(changeLog, repoOwner, releaseRepo) {
const hasReleaseCreatePermission = await helper.releaseCreatePermit(options.interactive);
if (hasReleaseCreatePermission) {
let preparedChangeLog = helper.prepareChangeLog(options.body, changeLog);
const releaseUrl = await flow.createRelease(repoOwner, releaseRepo, options.draft, options.releaseName,
let releaseName = helper.releaseName(options.releaseName)
const releaseUrl = await flow.createRelease(repoOwner, releaseRepo, options.draft, releaseName,
preparedChangeLog, options.tag);

// play yaba sound if the release successfully created
helper.playSound(options.sound);

// publishes the changelog on slack
await flow.publishToSlack(options.publish, releaseRepo, preparedChangeLog, releaseUrl, options.releaseName);
await flow.publishToSlack(options.publish, releaseRepo, preparedChangeLog, releaseUrl, releaseName);

} else {
console.log('Release was not prepared!');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yaba-release-cli",
"version": "1.7.0",
"version": "1.7.1",
"description": "Yaba is a simple CLI tool that helps you manage releases of your Github projects.",
"main": "bin/index.js",
"scripts": {
Expand Down

0 comments on commit ddc4fe9

Please sign in to comment.