Fix the number representing the amount of commits related to a push event

This commit is contained in:
Mark Fletcher 2017-09-07 18:07:31 +10:00
parent 6c33fb8466
commit 9137114355
2 changed files with 6 additions and 2 deletions

View File

@ -19,8 +19,7 @@
- create_mr = event.new_ref? && create_mr_button?(project.default_branch, event.ref_name, project) && event.authored_by?(current_user)
- if event.commits_count > 1
%li.commits-stat
- if event.commits_count > 2
%span ... and #{event.commits_count - 2} more commits.
%span ... and #{pluralize(event.commits_count - 1, 'more commit')}.
- if event.md_ref?
- from = event.commit_from

View File

@ -0,0 +1,5 @@
---
title: Fix the number representing the amount of commits related to a push event
merge_request:
author:
type: fixed