def _commitcomment_from_github_object( raw_commitcoment: GithubCommitComment, ) -> CommitComment: return CommitComment( comment=raw_commitcoment.body, author=raw_commitcoment.user.login, sha=raw_commitcoment.commit_id, )
def commit_comment(cls, original_object: Any, commit: str, body: str) -> "CommitComment": return CommitComment(sha=commit, comment=body, author=cls.author)
def _commit_comment_from_gitlab_object(raw_comment, commit) -> CommitComment: return CommitComment(sha=commit, comment=raw_comment.note, author=raw_comment.author["username"])