loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix empty ref for cron workflow runs (#28640)

Fix #27678
Please see
https://github.com/go-gitea/gitea/issues/27678#issuecomment-1871445853
for details.

authored by

Denys Konovalov and committed by
GitHub
f10d716f 19c45dd4

+3 -2
+3 -2
services/actions/notifier_helper.go
··· 195 195 } 196 196 } 197 197 198 - if err := handleSchedules(ctx, schedules, commit, input); err != nil { 198 + if err := handleSchedules(ctx, schedules, commit, input, ref); err != nil { 199 199 return err 200 200 } 201 201 ··· 399 399 detectedWorkflows []*actions_module.DetectedWorkflow, 400 400 commit *git.Commit, 401 401 input *notifyInput, 402 + ref string, 402 403 ) error { 403 404 branch, err := commit.GetBranchName() 404 405 if err != nil { ··· 448 449 OwnerID: input.Repo.OwnerID, 449 450 WorkflowID: dwf.EntryName, 450 451 TriggerUserID: input.Doer.ID, 451 - Ref: input.Ref, 452 + Ref: ref, 452 453 CommitSHA: commit.ID.String(), 453 454 Event: input.Event, 454 455 EventPayload: string(p),