1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-18 00:47:48 -04:00

Update modules/notification/actions/helper.go

Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
Jason Song 2022-12-12 10:48:32 +08:00 committed by GitHub
parent dfa1b6168d
commit 22203eeb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,