This is an automated email from the ASF dual-hosted git repository. kszucs pushed a commit to branch maint-1.0.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 2b7d19017cf204348cca3d79682dccab962a8c0a Author: Krisztián Szűcs <[email protected]> AuthorDate: Mon Jul 27 13:08:21 2020 +0200 ARROW-9563: [Dev][Release] Use archery's changelog generator when creating release notes for the website Closes #7828 from kszucs/release-notes-archery-changelog Authored-by: Krisztián Szűcs <[email protected]> Signed-off-by: Krisztián Szűcs <[email protected]> --- dev/archery/archery/cli.py | 17 +++++++++++++++++ dev/release/post-03-website.sh | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.py index 490e628..d8c944b 100644 --- a/dev/archery/archery/cli.py +++ b/dev/archery/archery/cli.py @@ -896,6 +896,23 @@ def release_changelog_add(obj, version): click.echo("CHANGELOG.md is updated!") +@release_changelog.command('generate') [email protected]('version') [email protected]('output', type=click.File('w', encoding='utf8'), default='-') [email protected]_obj +def release_changelog_generate(obj, version, output): + """Generate the changelog of a specific release.""" + from .release import Release + + jira, repo = obj['jira'], obj['repo'] + + # just handle the current version + release = Release.from_jira(version, jira=jira, repo=repo) + + changelog = release.changelog() + output.write(changelog.render('markdown')) + + @release_changelog.command('regenerate') @click.pass_obj def release_changelog_regenerate(obj): diff --git a/dev/release/post-03-website.sh b/dev/release/post-03-website.sh index 08e5f3a..2483dfe 100755 --- a/dev/release/post-03-website.sh +++ b/dev/release/post-03-website.sh @@ -140,8 +140,7 @@ cat <<ANNOUNCE >> "${announce_file}" ANNOUNCE -# TODO(kszucs): needs to update for the new changelog generation with archery -${PYTHON:-python} "${SOURCE_DIR}/changelog.py" ${version} 1 | \ +archery release changelog generate ${version} | \ sed -e 's/^#/##/g' >> "${announce_file}" cat <<ANNOUNCE >> "${announce_file}"
