diff --git a/plugin/notify/slack.go b/plugin/notify/slack.go index 22320b4bd..4e2a43f4e 100644 --- a/plugin/notify/slack.go +++ b/plugin/notify/slack.go @@ -42,7 +42,7 @@ func (s *Slack) getMessage(context *model.Request, message string) string { // drone/drone#3333333 linktext := context.Repo.Owner + "/" + context.Repo.Name + "#" + context.Commit.ShaShort() - return fmt.Sprintf(message, linktext, url, context.Commit.Branch, context.Commit.Author) + return fmt.Sprintf(message, url, linktext, context.Commit.Branch, context.Commit.Author) } func (s *Slack) sendStarted(context *model.Request) error { diff --git a/plugin/notify/slack_test.go b/plugin/notify/slack_test.go index 93ee35aea..789ea03f3 100644 --- a/plugin/notify/slack_test.go +++ b/plugin/notify/slack_test.go @@ -23,7 +23,7 @@ var request = &model.Request{ } */ -var slackExpectedLink = "" +var slackExpectedLink = "" var slackExpectedBase = slackExpectedLink + " (example) by Test User" func Test_slackStartedMessage(t *testing.T) {