CHANGELOG updated. Fixed MR bug. Logger improved
This commit is contained in:
parent
494cd02b38
commit
8803350023
4 changed files with 23 additions and 5 deletions
|
@ -317,6 +317,10 @@ table.no-borders {
|
|||
&.closed {
|
||||
background-color: #B94A48;
|
||||
}
|
||||
|
||||
&.merged {
|
||||
background-color: #2A2;
|
||||
}
|
||||
}
|
||||
|
||||
img.avatar {
|
||||
|
|
|
@ -128,7 +128,7 @@ class MergeRequest < ActiveRecord::Base
|
|||
|
||||
def unmerged_diffs
|
||||
commits = project.repo.commits_between(target_branch, source_branch).map {|c| Commit.new(c)}
|
||||
diffs = project.repo.diff(commits.first.prev_commit.id, commits.last.id)
|
||||
diffs = project.repo.diff(commits.first.prev_commit.id, commits.last.id) rescue []
|
||||
end
|
||||
|
||||
def last_commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue