def create_comment(self, crash_report):
"""
Updates a crash report with the comment.
"""
count = CrashReport.get_count(crash_report.name)
issue_number = int(crash_report.issue)
comment_body = self.issue_comment(count)
# get repo
repository = self.github_client.get_repo(self.repo_name)
issue = repository.get_issue(issue_number)
# create comment
comment = issue.create_comment(comment_body)
return {
'issue': issue,
'comment': comment
}
评论列表
文章目录