diff options
author | Earl Warren <contact@earl-warren.org> | 2023-12-13 15:21:17 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-02-05 16:09:41 +0100 |
commit | 447aa3e49954a8cc98239a4f1cf5eddaf556a452 (patch) | |
tree | 6b049ed86e2d36141dff33b4f27d37b71bacf8cc /services/actions | |
parent | [GITEA] Add footnote testing (diff) | |
download | forgejo-447aa3e49954a8cc98239a4f1cf5eddaf556a452.tar.xz forgejo-447aa3e49954a8cc98239a4f1cf5eddaf556a452.zip |
[GITEA] the ref of a scheduled action is always the default branch
Since a scheduled action is only run from the default branch, it
cannot be anything else.
Refs: https://codeberg.org/forgejo/forgejo/issues/1926
(cherry picked from commit eff0822856fd727915f6e6493a80844cffd7b02a)
(cherry picked from commit 2b1aa50bd14510d5eaf8db2c98ff4c604abe69e7)
Conflicts:
services/actions/notifier_helper.go
https://codeberg.org/forgejo/forgejo/pulls/2075
(cherry picked from commit 4ff3474fc05529367d8d9e7de988166bcf924bd7)
(cherry picked from commit 07b888703102762b5608a4232331febbd4fc6849)
(cherry picked from commit cbecdd618d1bc03491bcaf4f07357a6ee04be449)
(cherry picked from commit 5d1856717b16e22ec68a277e59094e6771a5db7d)
(cherry picked from commit ff33556798cad69328742aafe9d4c78b24631bc4)
Diffstat (limited to 'services/actions')
-rw-r--r-- | services/actions/notifier_helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index 77173e58a3..f6fadbc4c0 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -462,7 +462,7 @@ func handleSchedules( OwnerID: input.Repo.OwnerID, WorkflowID: dwf.EntryName, TriggerUserID: input.Doer.ID, - Ref: ref, + Ref: input.Repo.DefaultBranch, CommitSHA: commit.ID.String(), Event: input.Event, EventPayload: string(p), |