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:
Steve Kowalik
2020-01-25 16:34:48 +11:00
committed by GitHub
parent da747b5bd0
commit ead565adf8
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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(