def post_comment(self, url, body):
""" Add github comment using url endpoint """
payload = { "body": body }
res = self.requests.post(
url,
data = json.dumps(payload),
auth = HTTPBasicAuth(
self.name,
self.token
)
)
res.raise_for_status()
评论列表
文章目录