Skip to content

Commit

Permalink
Changed color for forcepush event
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Aug 27, 2018
1 parent 2a6d5d4 commit f24c162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { Logger } = require('../utils/Logger');

const colors = {
pushEvent: 7506394,
forcePushEvent: 16525609,
tagEvent: null,
mergeOpenEvent: 38912,
mergeCloseEvent: null,
Expand Down Expand Up @@ -132,7 +133,7 @@ class Parser {
embedRef.url = `https://gitlab.com/${data.project.path_with_namespace}/commit/${data.after}/?view=parallel`;
} else if (data.commits.length === 0) {
const embedRef = embed2 || embed;
embedRef.color = colors.pushEvent;
embedRef.color = colors.forcePushEvent;

embedRef.title = `[${data.project.name}] Branch ${data.ref.split('/').pop()} was force pushed to \`${data.after.slice(0, 6)}\``;

Expand Down

0 comments on commit f24c162

Please sign in to comment.