Skip to content

Fix changlog reading and new-change generation#2807

Merged
JordonPhillips merged 3 commits intomainfrom
fix-file-checks
Oct 23, 2025
Merged

Fix changlog reading and new-change generation#2807
JordonPhillips merged 3 commits intomainfrom
fix-file-checks

Conversation

@JordonPhillips
Copy link
Contributor

@JordonPhillips JordonPhillips commented Oct 23, 2025

This fixes some bugs in the changelog tool.

  • It fixes an issue where the changelog tool was attempting to read new changelog entries from the base branch instead of the pr branch.
  • It fixes a more minor issue where filling out the new-change form without a known pr would result in a pr list value of [""] instead of [].
  • It fixes an issue where the wrong environment variable was being checked for the pull request number.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This fixes the base location when attempting to read staged changelog
entries to use the pr location rather than the base, where it won't
exist.
This updates new-change to not add in an empty pr if the
template section for prs is empty
@JordonPhillips JordonPhillips requested a review from a team as a code owner October 23, 2025 09:46
uv run amend \
--review-comment \
--pull-request-number "$REPO_NUMBER" \
--pull-request-number "$PR_NUMBER" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that this environment variable is set in the env block above, and its value will be printed in the logs. If you check the logs for this run, for example, you can see it has the value 2807.

@JordonPhillips JordonPhillips merged commit 88afe71 into main Oct 23, 2025
11 of 13 checks passed
@JordonPhillips JordonPhillips deleted the fix-file-checks branch October 23, 2025 15:42
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.

2 participants