Skip to content

Commit

Permalink
Merge pull request #1951 from jwodder/docs-after-chlog
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Apr 17, 2021
2 parents 19c05d3 + 8ef0130 commit 3c51664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/plugins/release-lifecycle-hooks.mdx
Expand Up @@ -71,7 +71,7 @@ _Other examples:_
- In Core: Create major version branches when `major` happens
- [npm](../generated/npm) - Create sub-package changelogs

## afterAddToChangelog
## afterChangelog

Ran after the `changelog` command adds the new release notes to `CHANGELOG.md`.
Useful for getting extra commits into a release before publishing.
Expand All @@ -83,7 +83,7 @@ Useful for getting extra commits into a release before publishing.
- `releaseNotes` - generated release notes for the release

```ts
auto.hooks.afterAddToChangelog.tap(
auto.hooks.afterChangelog.tap(
"MyPlugin",
async ({ currentVersion, commits, releaseNotes, lastRelease }) => {
// do something
Expand Down

0 comments on commit 3c51664

Please sign in to comment.