Beispiel #1
0
 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,
     )
Beispiel #2
0
 def commit_comment(cls, original_object: Any, commit: str,
                    body: str) -> "CommitComment":
     return CommitComment(sha=commit, comment=body, author=cls.author)
Beispiel #3
0
 def _commit_comment_from_gitlab_object(raw_comment,
                                        commit) -> CommitComment:
     return CommitComment(sha=commit,
                          comment=raw_comment.note,
                          author=raw_comment.author["username"])