How does k8s generate release notes

I see that in the pull request template, there’s a code block with the release-note “syntax”.

I’m assuming these’s some script in one of the repos that aggregates these between releases and generates a draft CHANGELOG.

I want to do something similar for a repository and was wondering if someone could point me to this script.