From a769c2ffc1be8ee565adb27280a10052e0f54f27 Mon Sep 17 00:00:00 2001 From: Nicholas Buse Date: Mon, 9 Apr 2018 21:16:22 -0500 Subject: [PATCH] Add documentation to github.Repository.Repository.create_git_release() (#747) --- github/Repository.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/github/Repository.py b/github/Repository.py index cf7b8401..b25cb815 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -830,6 +830,16 @@ class Repository(github.GithubObject.CompletableGithubObject): return self.create_git_release(tag, release_name, release_message, draft, prerelease) def create_git_release(self, tag, name, message, draft=False, prerelease=False, target_commitish=github.GithubObject.NotSet): + """ + :calls: `POST /repos/:owner/:repo/releases `_ + :param tag: string + :param name: string + :param message: string + :param draft: bool + :param prerelease: bool + :param target_commitish: string or :class:`github.Branch.Branch` or :class:`github.Commit.Commit` or :class:`github.GitCommit.GitCommit` + :rtype: :class:`github.GitRelease.GitRelease` + """ assert isinstance(tag, (str, unicode)), tag assert isinstance(name, (str, unicode)), name assert isinstance(message, (str, unicode)), message