From bc11ee2d2c13b366bc275f69d4c81b842e5407fb Mon Sep 17 00:00:00 2001 From: Lin Jiang Date: Fri, 13 Jan 2023 16:23:17 +0800 Subject: [PATCH] [ci] Use make_changelog.py to generate the full changelog (#7152) Issue: #6114 ### Brief Summary The changelog automatically generated by GitHub only shows the PR list related to the branch, and the cherry-picked commits are not inside the list. So we should use our commit-based `make_changelog.py` to generate the full changelog. --- .github/workflows/release.yml | 1 - misc/make_changelog.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2815d06562dd..c436967fc5ff9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -383,5 +383,4 @@ jobs: uses: softprops/action-gh-release@v1 with: body_path: CHANGELOG.md - generate_release_notes: true tag_name: ${{ github.event.inputs.version }} diff --git a/misc/make_changelog.py b/misc/make_changelog.py index 1976d4b346b0a..0c4d339db55ae 100644 --- a/misc/make_changelog.py +++ b/misc/make_changelog.py @@ -43,6 +43,7 @@ def format(c): return f'{c.summary} (by **{c.author}**)' notable_changes = {} + all_changes = [] details = load_pr_tags() @@ -73,6 +74,7 @@ def format(c): print( f'** Warning: tag {tag.lower()} undefined in the "details" dict. Please include the tag into "details", unless the tag is a typo.' ) + all_changes.append(format(c)) res = 'Highlights:\n' for tag in sorted(notable_changes.keys()): @@ -80,6 +82,10 @@ def format(c): for item in notable_changes[tag]: res += f' - {item}\n' + res += '\nFull changelog:\n' + for c in all_changes: + res += f' - {c}\n' + return res