Skip to content

Commit

Permalink
removing git.lab.teralogics.com urls
Browse files Browse the repository at this point in the history
  • Loading branch information
spodlecki committed Sep 17, 2015
1 parent 35d8656 commit a8811a5
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,16 @@ function processIssue(httpreq, issueData) {
text;

if (assignee) {
assigneeName = util.format('<https://git.lab.teralogics.com/u/%s|%s>', assignee.username, assignee.username);
assigneeName = util.format('@%s', assignee.username);
}

text = util.format(
'[%s] issue #%s %s by <https://git.lab.teralogics.com/u/%s|%s> — *assignee:* %s — *creator:* <https://git.lab.teralogics.com/u/%s|%s>',
'[%s] issue #%s %s by @%s — *assignee:* %s — *creator:* @%s',
project.path,
issueDetails.iid,
verb,
issueData.user.username,
issueData.user.username,
assigneeName,
author.username,
author.username
);

Expand Down Expand Up @@ -285,10 +283,9 @@ function processBranch(httpreq, branchData, beforeZero, afterZero) {
response = {
parse: 'none',
text: util.format(
'[%s] <https://git.lab.teralogics.com/u/%s|%s> %s <%s/tree/%s|%s>',
'[%s] @%s %s <%s/tree/%s|%s>',
project.path,
user.username,
user.username,
action,
project.web_url,
branch,
Expand Down Expand Up @@ -337,11 +334,10 @@ function processCommit(httpreq, commitData) {
response = {
parse: 'none',
text: util.format(
'[%s:%s] <https://git.lab.teralogics.com/u/%s|%s> pushed %s new commits:',
'[%s:%s] @%s pushed %s new commits:',
project.path,
commitData.ref.substr(commitData.ref.lastIndexOf('/') + 1),
user.username,
user.username,
commitData.total_commits_count
),
attachments: [attachment]
Expand Down Expand Up @@ -438,10 +434,9 @@ function processTag(httpreq, tagData) {
tag = tagData.ref.substr(tagData.ref.lastIndexOf('/') + 1),
response = {
text: util.format(
'[%s] <https://git.lab.teralogics.com/u/%s|%s> %s <%s/commits/%s|%s>',
'[%s] @%s %s <%s/commits/%s|%s>',
project.path,
user.username,
user.username,
action,
project.web_url,
tag,
Expand Down Expand Up @@ -495,18 +490,16 @@ function processMergeRequest(httpreq, req) {
text;

if (assignee) {
assigneeName = util.format('<@%s|%s>', assignee.username, assignee.username);
assigneeName = util.format('@%s', assignee.username, assignee.username);
}

text = util.format(
'[%s] merge request #%s %s by <@%s|%s> — *assignee:* %s — *creator:* <@%s|%s>',
'[%s] merge request #%s %s by @%s — *assignee:* %s — *creator:* @%s',
project.path,
object.iid,
verb,
user.username,
user.username,
assigneeName,
author.username,
author.username
);

Expand Down

0 comments on commit a8811a5

Please sign in to comment.