Improve CI integration for merge requests

This commit is contained in:
Dmitriy Zaporozhets 2012-12-11 06:14:05 +03:00
parent c92726e6c8
commit ca936d2784
10 changed files with 83 additions and 12 deletions

View file

@ -220,4 +220,8 @@ class MergeRequest < ActiveRecord::Base
def to_patch
project.repo.git.format_patch({timeout: 30, raise: true, stdout: true}, "#{target_branch}..#{source_branch}")
end
def last_commit_short_sha
@last_commit_short_sha ||= last_commit.sha[0..10]
end
end