mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 21:03:56 +01:00
[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 commiteff0822856
) (cherry picked from commit2b1aa50bd1
) Conflicts: services/actions/notifier_helper.go https://codeberg.org/forgejo/forgejo/pulls/2075 (cherry picked from commit4ff3474fc0
) (cherry picked from commit07b8887031
) (cherry picked from commitcbecdd618d
) (cherry picked from commit5d1856717b
) (cherry picked from commitff33556798
)
This commit is contained in:
parent
701882cc08
commit
447aa3e499
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ func handleSchedules(
|
||||||
OwnerID: input.Repo.OwnerID,
|
OwnerID: input.Repo.OwnerID,
|
||||||
WorkflowID: dwf.EntryName,
|
WorkflowID: dwf.EntryName,
|
||||||
TriggerUserID: input.Doer.ID,
|
TriggerUserID: input.Doer.ID,
|
||||||
Ref: ref,
|
Ref: input.Repo.DefaultBranch,
|
||||||
CommitSHA: commit.ID.String(),
|
CommitSHA: commit.ID.String(),
|
||||||
Event: input.Event,
|
Event: input.Event,
|
||||||
EventPayload: string(p),
|
EventPayload: string(p),
|
||||||
|
|
Loading…
Reference in a new issue