mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Correct Repository.create_git_tag_and_release() (#1362)
Repository.create_git_tag_and_release() is a convience function that creates a git tag and then a release. It was not passing the SHA1 of the commit to the release function, resulting in incorrect releases. Fixes #1336
This commit is contained in:
@@ -954,7 +954,12 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
):
|
||||
self.create_git_tag(tag, tag_message, object, type, tagger)
|
||||
return self.create_git_release(
|
||||
tag, release_name, release_message, draft, prerelease
|
||||
tag,
|
||||
release_name,
|
||||
release_message,
|
||||
draft,
|
||||
prerelease,
|
||||
target_commitish=object,
|
||||
)
|
||||
|
||||
def create_git_release(
|
||||
|
||||
Reference in New Issue
Block a user