From 22203eeb38d5441214494cd7128816f09c9bddcc Mon Sep 17 00:00:00 2001 From: Jason Song Date: Mon, 12 Dec 2022 10:48:32 +0800 Subject: [PATCH] Update modules/notification/actions/helper.go Co-authored-by: a1012112796 <1012112796@qq.com> --- modules/notification/actions/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notification/actions/helper.go b/modules/notification/actions/helper.go index fe32106e4c..45b4ca55c3 100644 --- a/modules/notification/actions/helper.go +++ b/modules/notification/actions/helper.go @@ -134,7 +134,7 @@ func notify(ctx context.Context, input *notifyInput) error { for id, content := range workflows { run := actions_model.ActionRun{ - Title: commit.Message(), + Title: strings.SplitN(commit.CommitMessage, "\n", 2)[0], RepoID: input.Repo.ID, OwnerID: input.Repo.OwnerID, WorkflowID: id,