MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / setUpNewRelease

Method setUpNewRelease

tests/GitRelease.py:109–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 super().tearDown()
108
109 def setUpNewRelease(self):
110 repo = self.repo
111 commit_sha = repo.get_commits()[0].sha # Just need any commit
112 self.new_release = repo.create_git_tag_and_release(
113 self.new_tag,
114 "tag message",
115 "release title",
116 "release message",
117 commit_sha,
118 "commit",
119 )
120 self.new_release_id = self.new_release.id
121
122 def tearDownNewRelease(self):
123 try:

Callers 7

testDeleteMethod · 0.95
testUpdateMethod · 0.95
testUploadAssetMethod · 0.95

Calls 2

get_commitsMethod · 0.45

Tested by

no test coverage detected