Ejemplo n.º 1
0
def __get_commit_message(repo, sha, ts):
    try:
        commit_message = CommitMessage.get(CommitMessage.repo == repo, CommitMessage.hkey == sha, CommitMessage.time == ts)
    except CommitMessage.DoesNotExist:
        return None
    return commit_message.message
Ejemplo n.º 2
0
def __add_commit_message(repo, sha, ts, message):

    # TODO sanitize message

    CommitMessage.create(repo=repo, hkey=sha, time=ts, message=message)