Preview CHANGELOG in PR
Opened this issue ยท 2 comments
Is your feature request related to a problem? Please describe.
I'd like to see a preview of what the CHANGELOG generated from commits will look like.
Describe the solution you'd like
Much like the pre-release (canary) section that @auto-it
adds to the body of a PR. It would be neat if there would be a preview of the CHANGELOG too. That'll make it easy to spot errors or "review" the changelog :)
Example of current pre-release functionality:
<!-- GITHUB_RELEASE PR BODY: canary-version -->
<details>
<summary>๐ฆ Published PR as canary version: <code>Canary Versions</code></summary>
...
</details>
<!-- GITHUB_RELEASE PR BODY: canary-version -->
Something like this would be welcome:
<!-- GITHUB_CHANGELOG BODY -->
<details>
<summary>๐ CHANGELOG</summary>
...
</details>
<!-- GITHUB_CHANGELOG BODY -->
Describe alternatives you've considered
none
Additional context
none
This seems to write the canary versions to the PR body
Lines 1171 to 1176 in 1a84048
This seems to generate the changelog with the changes since last release
auto/packages/core/src/release.ts
Lines 81 to 98 in 1a84048
Any one got some insights on how to wire them up ๐ค
You could probably do this with an auto plugin pretty easily. You could hook into the canary
hook and just run the changelog function in auto.