Skip to content

Conversation

@KetanReddy
Copy link
Member

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major
  • N/A

Release Notes

Keep information about next release in changelog

@KetanReddy KetanReddy added the skip-release Preserve the current version when merged label Jan 17, 2025
@KetanReddy KetanReddy self-assigned this Jan 17, 2025
@KetanReddy KetanReddy requested a review from adierkens as a code owner January 17, 2025 02:36
@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.36%. Comparing base (9e2b8ef) to head (307c55b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #185   +/-   ##
=======================================
  Coverage   73.36%   73.36%           
=======================================
  Files          85       85           
  Lines       12932    12932           
  Branches     1213     1213           
=======================================
  Hits         9487     9487           
  Misses       3424     3424           
  Partials       21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KetanReddy KetanReddy enabled auto-merge January 24, 2025 02:08
const [latest, second] = getLatestReleaseTags();
if (dryRun) {
auto.logger.log.info(
`Dry run: making changelog from last release: ${latestRelease}`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is latestRelease defined somewhere? Or should this be latest instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch, let me fix that.


apply(auto) {
auto.hooks.next.tapPromise(this.name, async ({ dryRun }) => {
const [latest, second] = getLatestReleaseTags();
Copy link

@ykhandor ykhandor Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can any edge case cause getLatestReleaseTags() to return less than two tags? If so, this will fail when destructuring..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory yes but since this repo already has multiple releases we should always have a to <-> from

}
}

module.exports = NextChangelogsPlugin;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use named export instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general our convention is named exports but for auto plugins they have to be default exports in order to be applied

@KetanReddy KetanReddy merged commit 54ead0a into main Jan 24, 2025
6 checks passed
@KetanReddy KetanReddy deleted the maint/next-changlog-support branch January 24, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release Preserve the current version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants