Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure refactoring #19

Merged
merged 3 commits into from
Jun 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix export constant issue
  • Loading branch information
volkanto committed Jun 14, 2021
commit 7549b620cf5a785a417193a1ccd3e751ddc9571d
3 changes: 2 additions & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const chalk = require("chalk");
const helper = require('./utils/helper.js');
const tool = require('./utils/tool.js');
const flow = require('./utils/flow.js');
const options = require('./utils/command.js');
const options = require('./utils/command.js').options;

async function run() {

Expand Down Expand Up @@ -50,6 +50,7 @@ async function run() {
? await flow.listCommits(repoOwner, releaseRepo, headBranch)
: await flow.prepareChangelog(repoOwner, releaseRepo, latestRelease.tag_name, headBranch);

console.log(options);
// show only changelog
if (changeLog.length != 0 && options.changelog) {
console.log('\n\n' + chalk.green.underline(`${releaseRepo} changelog for upcoming release:`) + `\n\n${helper.prepareChangeLog(options.body, changeLog)}\n`);
Expand Down