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

[Feature Request] Return changelog diff with code usage #906

Open
crutch12 opened this issue May 12, 2022 · 0 comments
Open

[Feature Request] Return changelog diff with code usage #906

crutch12 opened this issue May 12, 2022 · 0 comments
Labels

Comments

@crutch12
Copy link

crutch12 commented May 12, 2022

standardVersion() should return Promise<string> with calculated diff so we could use its result programmatically.

Now it returns undefined (there is no return)

Usage example:

const standardVersion = require('standard-version')
const gitLog = await standardVersion({
  noVerify: true,
  silent: true,
  dryRun: true,
})
  .then((result) => {
    console.log(result); // it's undefined now and there is diff changelog message in console output
    return result; 
  })

Expected output (returned value)

---
## [1.0.0-next-release](2022-05-12)

### Features

* [OFKR-2125]  did smth
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant