Skip to content

Commit

Permalink
remove "by mattermost-jira-plugin" trailer to create and attach messa…
Browse files Browse the repository at this point in the history
…ges (#578)
  • Loading branch information
jfrerich authored Jun 3, 2020
1 parent 8dedbd8 commit fd5695c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ func httpAPICreateIssue(ji Instance, w http.ResponseWriter, r *http.Request) (in
}

// Reply with an ephemeral post with the Jira issue formatted as slack attachment.
startLink := fmt.Sprintf("/plugins/%s%s", manifest.Id, routeUserStart)
msg := fmt.Sprintf("Created Jira issue [%s](%s/browse/%s) by [mattermost-jira-plugin](%s)", created.Key, ji.GetURL(), created.Key, startLink)
msg := fmt.Sprintf("Created Jira issue [%s](%s/browse/%s)", created.Key, ji.GetURL(), created.Key)

reply := &model.Post{
Message: msg,
Expand Down Expand Up @@ -659,8 +658,7 @@ func httpAPIAttachCommentToIssue(ji Instance, w http.ResponseWriter, r *http.Req
rootId = post.RootId
}

startLink := fmt.Sprintf("/plugins/%s%s", manifest.Id, routeUserStart)
msg := fmt.Sprintf("Message attached to [%s](%s/browse/%s) by [mattermost-jira-plugin](%s)", attach.IssueKey, ji.GetURL(), attach.IssueKey, startLink)
msg := fmt.Sprintf("Message attached to [%s](%s/browse/%s)", attach.IssueKey, ji.GetURL(), attach.IssueKey)

// Reply to the post with the issue link that was created
reply := &model.Post{
Expand Down

0 comments on commit fd5695c

Please sign in to comment.