From 744d4f655b91266e28c3f981d7c0bfa33c397520 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 10 May 2024 14:38:45 -0400 Subject: [PATCH] Get changelog URL lazily It is only used for the create release step, which is performed lazily. Signed-off-by: mulhern --- release_management/create_release.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/release_management/create_release.py b/release_management/create_release.py index f762ef2..836ae8c 100755 --- a/release_management/create_release.py +++ b/release_management/create_release.py @@ -325,11 +325,14 @@ def tag_python_library(namespace, name): dry_run_caller("__main__._push_tag", lambda: _push_tag(push_git_url, tag)) - changelog_url = get_changelog_url(repository.geturl(), get_branch()) - dry_run_caller( "__main__.create_release", - lambda: create_release(repository, tag, release_version, changelog_url), + lambda: create_release( + repository, + tag, + release_version, + get_changelog_url(repository.geturl(), get_branch()), + ), skip=namespace.no_github_release, )