mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
swap url and linktext positions for slack
This commit is contained in:
parent
91ca5fe5b9
commit
22698625ed
@ -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 {
|
||||
|
@ -23,7 +23,7 @@ var request = &model.Request{
|
||||
}
|
||||
*/
|
||||
|
||||
var slackExpectedLink = "<owner/repo#abc|http://examplehost.com/examplegit.com/owner/repo/example/abc>"
|
||||
var slackExpectedLink = "<http://examplehost.com/examplegit.com/owner/repo/example/abc|owner/repo#abc>"
|
||||
var slackExpectedBase = slackExpectedLink + " (example) by Test User"
|
||||
|
||||
func Test_slackStartedMessage(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user