Пример #1
0
        def open_mr():
            git_tool.fetch(['master'])
            if git_tool.is_branch_diverged('origin/master'):
                mr = cr_tool.create_mr(git_tool.get_repo(), squashed_branch, assignee, "WIP: "+title)
                cr_tool.approve_build(git_tool.get_repo(), squashed_branch, build_number)


                im_tool.send_message(hipchat_assigner, "MR {0} has been assigned to @{1}".format(mr, hipchat_assignee))
                im_tool.send_message(hipchat_assignee, "Hey, @{0} sent you a MR to review: {1}".format(hipchat_assigner, mr))
                return mr, None
            return None, None
Пример #2
0
 def squash():
     ret = err = None
     if git_tool.is_branch_diverged('origin/master'):
         ret, err = git_tool.squash(title, author)
     return ret, err
Пример #3
0
 def get_original_author():
     if git_tool.is_branch_diverged('origin/master'):
         authors[git_tool.get_author()] += 1