Skip to content

Commit

Permalink
Merge pull request #520 from mulkieran/changelog-url
Browse files Browse the repository at this point in the history
Get changelog URL lazily
  • Loading branch information
mulkieran authored May 10, 2024
2 parents 58b5eb0 + 744d4f6 commit c65557d
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 c65557d

Please sign in to comment.