Skip to content

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

Open
@crutch12

Description

@crutch12

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
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions