We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178e6ed commit 843c099Copy full SHA for 843c099
lib/Gitlab/Events/push.js
@@ -15,7 +15,7 @@ class Push extends EventResponse {
15
16
const branch = GetBranchName(data.ref);
17
const commits = data.commits;
18
- const commitCount = commits.length;
+ const commitCount = data.total_commits_count;
19
let pretext = commits
20
.map((commit) => {
21
const message = (commitCount === 1 ? commit.message : commit.message.split('\n')[0]).replace(UrlRegEx, RemoveUrlEmbedding);
@@ -40,7 +40,7 @@ class Push extends EventResponse {
40
const actor = data.user_username || data.user_name;
41
42
const commits = data.commits || [];
43
44
45
if (!commitCount) return '';
46
0 commit comments