chore: update default template

This commit is contained in:
Bo-Yi Wu 2019-12-11 07:34:42 +08:00
parent ba1db08ad2
commit 602b560c4d
2 changed files with 2 additions and 2 deletions

View File

@ -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, icon,
p.Build.Status, p.Build.Status,
p.Repo.FullName, p.Repo.FullName,

View File

@ -49,7 +49,7 @@ func TestDefaultMessageFormat(t *testing.T) {
message := plugin.Message() 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) { func TestDefaultMessageFormatFromGitHub(t *testing.T) {