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) {