From 602b560c4d75bfbc1b491312d74ced6e56b828d9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 11 Dec 2019 07:34:42 +0800 Subject: [PATCH] chore: update default template --- plugin.go | 2 +- plugin_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.go b/plugin.go index 8d7cd3d..7dc760a 100644 --- a/plugin.go +++ b/plugin.go @@ -453,7 +453,7 @@ func (p Plugin) Message() []string { )} } - return []string{fmt.Sprintf("%s*%s* [%s](%s)『%s』by %s", + return []string{fmt.Sprintf("%s *%s*: [%s](%s)『%s』by %s", icon, p.Build.Status, p.Repo.FullName, diff --git a/plugin_test.go b/plugin_test.go index 362f2ca..08d37df 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -49,7 +49,7 @@ func TestDefaultMessageFormat(t *testing.T) { message := plugin.Message() - assert.Equal(t, []string{"✅*success* [appleboy/go-hello](https://github.com/appleboy/go-hello)『update travis』by Bo-Yi Wu"}, message) + assert.Equal(t, []string{"✅ *success*: [appleboy/go-hello](https://github.com/appleboy/go-hello)『update travis』by Bo-Yi Wu"}, message) } func TestDefaultMessageFormatFromGitHub(t *testing.T) {