Use cutLinks call in Gitlab parser.

This commit is contained in:
Stanislav Nikitin 2017-09-19 01:03:04 +05:00
parent 008bbdb637
commit fcdd414573
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ func (gp GitlabParser) parsePipelineMessage(message slackmessage.SlackMessage) m
data["user"] = strings.Split(user, " " + status + " in")[0]
data["time"] = strings.Split(message.Attachments[0].Text, " " + status + " in ")[1]
links_data := gp.parseCommitLinks(message.Attachments[0].Text)
links_data := gp.cutLinks(message.Attachments[0].Text)
data["project"] = links_data[0][1]
data["project_url"] = links_data[0][0]
data["pipeline_number"] = links_data[1][1]