Skip to content

Conversation

@s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jan 27, 2026

I know we'll be using the craft release notes soon, but this can be beneficial for the time being. I've never had a lot of luck with the cursor command and this deterministic script might help other people as well.

Closes #19000 (added automatically)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

const processDetailsContent = (): void => {
for (const line of detailsContent) {
const trimmed = line.trim();
if (trimmed.startsWith('-') && trimmed.includes('(#')) {
Copy link

Choose a reason for hiding this comment

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

Internal changelog entries missed due to incorrect PR format check

Medium Severity

The check trimmed.includes('(#') in processDetailsContent fails to match entries with the markdown link format. The actual changelog format is ([#18750](url)) where [ appears between ( and #, so the substring (# is never present. This causes internal entries from <details> blocks to be silently ignored - they won't appear in output and their PR numbers won't be tracked in changelogPRs, potentially leading to duplicate entries when the same commits exist in the git log.

Fix in Cursor Fix in Web

} else {
otherChanges.push(entry);
}
}
Copy link

Choose a reason for hiding this comment

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

Missing PR tracking causes duplicate git commit entries

Medium Severity

The duplicate detection logic checks if a PR number exists in changelogPRs but never adds newly processed PR numbers to the set. If multiple commits in the git log reference the same PR number (which can happen with cherry-picks or amended commits), all of them will be added to the output as duplicates. After adding each commit's entry, its prNumber needs to be added to changelogPRs to prevent subsequent commits with the same PR from also being included.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,164 - 9,205 -0%
GET With Sentry 1,673 18% 1,743 -4%
GET With Sentry (error only) 6,003 66% 6,188 -3%
POST Baseline 1,167 - 1,207 -3%
POST With Sentry 559 48% 589 -5%
POST With Sentry (error only) 1,019 87% 1,051 -3%
MYSQL Baseline 3,259 - 3,349 -3%
MYSQL With Sentry 399 12% 479 -17%
MYSQL With Sentry (error only) 2,587 79% 2,706 -4%

View base workflow run

Copy link
Member

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

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

Let's try this out in the next release. LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(release): Add generate-changelog script

3 participants