Skip to content

Conversation

LiteSun
Copy link
Member

@LiteSun LiteSun commented Jun 18, 2025

Description

This PR provides a script to check the changelog for completeness. If a PR is not of type docs, chore, test, or ci, and is not listed in the IGNORE_PRS variable, but is missing from the changelog, the script will raise an error.

Note: This script currently only checks changelog entries for versions after 3.8.0.

Test record:

  1. Manually removed a changelog entry for version 3.12.0, and the script correctly reported an error.
image image
  1. Tested an upcoming version (e.g., 3.13.0) that hasn’t been tagged yet to verify if the script works correctly. In this case, it compares the current latest code from the main branch with the previous version (3.12.0).
image

Which issue(s) this PR fixes:

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

'ci'
];

const IGNORE_PRS = [
Copy link
Member Author

Choose a reason for hiding this comment

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

@LiteSun LiteSun marked this pull request as ready for review June 19, 2025 00:57
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. github_actions Pull requests that update GitHub Actions code labels Jun 19, 2025
}
}

main();
Copy link
Member

Choose a reason for hiding this comment

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

await main() ?

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@LiteSun LiteSun requested a review from SkyeYoung June 20, 2025 00:52
SkyeYoung
SkyeYoung previously approved these changes Jun 20, 2025
juzhiyuan
juzhiyuan previously approved these changes Jun 20, 2025
name: Check Changelog

on:
push:
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we should just listen for changes in the CHANGEsLOG file?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm wondering if we should just listen for changes in the CHANGEsLOG file?

we actually need to detect any missing changelog updates as early as possible when a PR is created. I just tested it and found that the push event does not trigger the CI when the PR is first submitted.

@LiteSun LiteSun dismissed stale reviews from juzhiyuan and SkyeYoung via 614eb97 June 20, 2025 02:12
@LiteSun LiteSun requested a review from juzhiyuan June 20, 2025 02:35
Copy link
Member

@membphis membphis left a comment

Choose a reason for hiding this comment

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

seems fine to me

@LiteSun LiteSun merged commit 1c3cb94 into apache:master Jun 20, 2025
25 checks passed
@LiteSun LiteSun deleted the add-changelog-check-ts branch June 20, 2025 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants