Skip to content

chore: update CHANGELOG.md for v0.2.15#738

Merged
weinong merged 4 commits intomainfrom
copilot/update-changelog-v0215
Feb 20, 2026
Merged

chore: update CHANGELOG.md for v0.2.15#738
weinong merged 4 commits intomainfrom
copilot/update-changelog-v0215

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Adds the v0.2.15 changelog entry covering PRs merged since v0.2.14, and fixes the changelog generator to exclude release-related PRs from future changelogs.

Changes

Changelog Generator Fix

Updated hack/changelog-generator/main.go to exclude PRs carrying a release label from the generated changelog. This is more reliable than title-pattern matching. A new hasLabel helper (case-insensitive) was added, and getMergedPRsSince was updated to filter out any PR with the release label in addition to the existing version-prefixed title filter. Added TestHasLabel in main_test.go to cover the new helper.

Adding the release label to changelog update PRs (like this one) will prevent them from appearing in future changelogs.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: weinong <4204090+weinong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update changelog for v0.2.15 release chore: update CHANGELOG.md for v0.2.15 Feb 19, 2026
Copilot AI requested a review from weinong February 19, 2026 23:29
@weinong
Copy link
Contributor

weinong commented Feb 19, 2026

@copilot I think this PR title will make this change included in the changelog generator.
https://github.com/Azure/kubelogin/blob/main/hack/changelog-generator/main.go

Co-authored-by: weinong <4204090+weinong@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 19, 2026

@copilot I think this PR title will make this change included in the changelog generator.
https://github.com/Azure/kubelogin/blob/main/hack/changelog-generator/main.go

Good catch! Fixed in e6c6cd8 — updated the changelog generator to also exclude PR titles matching update.*changelog / changelog.*update patterns (case-insensitive), so PRs like this one won't appear in future changelogs. Added test cases for the new patterns as well.

@weinong
Copy link
Contributor

weinong commented Feb 19, 2026

@copilot would it be more reliable to use release label on the PR?

Co-authored-by: weinong <4204090+weinong@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 19, 2026

@copilot would it be more reliable to use release label on the PR?

Done in f337e8c. Replaced the fragile title-regex approach with a release label check — any PR carrying the release label is now excluded from the changelog. The hasLabel function is case-insensitive. Adding the release label to this PR will prevent it from appearing in future changelogs.

@weinong weinong marked this pull request as ready for review February 20, 2026 00:22
Copy link
Contributor

@weinong weinong left a comment

Choose a reason for hiding this comment

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

LGTM

@weinong weinong merged commit 7936910 into main Feb 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants