Docstring for Repository.create_git_tag_and_release (#1425)

The function create_git_tag_and_release had no docstring, so it didn't
appear anywhere in our docs. Add a short one linking to the two methods
it calls.

Fixes #1402
This commit is contained in:
Steve Kowalik
2020-03-09 10:56:31 +11:00
committed by GitHub
parent b30c09aaa4
commit bfeacded4e
+4
View File
@@ -961,6 +961,10 @@ class Repository(github.GithubObject.CompletableGithubObject):
draft=False,
prerelease=False,
):
"""
Convenience function that calls :meth:`Repository.create_git_tag` and
:meth:`Repository.create_git_release`.
"""
self.create_git_tag(tag, tag_message, object, type, tagger)
return self.create_git_release(
tag,