Skip to content

Commit

Permalink
Get changelog URL lazily
Browse files Browse the repository at this point in the history
It is only used for the create release step, which is performed lazily.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed May 10, 2024
1 parent 58b5eb0 commit 744d4f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions release_management/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 744d4f6

Please sign in to comment.