Improve CI integration for merge requests
This commit is contained in:
parent
c92726e6c8
commit
ca936d2784
10 changed files with 83 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue