mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Add default parameters to greatly reduce code redoundancy
This commit is contained in:
@@ -139,10 +139,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"DELETE",
|
||||
self.url,
|
||||
None,
|
||||
None,
|
||||
None
|
||||
self.url
|
||||
)
|
||||
|
||||
def edit(self, body):
|
||||
@@ -158,9 +155,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"PATCH",
|
||||
self.url,
|
||||
None,
|
||||
None,
|
||||
post_parameters
|
||||
input=post_parameters
|
||||
)
|
||||
self._useAttributes(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user