@staticmethod
    def from_full_message(commit_msg_str):
        lines = [line for line in commit_msg_str.split("\n") if not line.startswith("#")]
        full = "\n".join(lines)
        title = lines[0] if len(lines) > 0 else ""
        body = lines[1:] if len(lines) > 1 else []
        return GitCommitMessage(original=commit_msg_str, full=full, title=title, body=body)
Parses a full git commit message by parsing a given string into the different parts of a commit message
dataset/ETHPy150Open jorisroovers/gitlint/gitlint/git.py/GitCommitMessage.from_full_message