diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-02-01 13:32:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 13:32:46 +0800 |
commit | 2871ea08096cba15546f357d0ec473734ee9d8be (patch) | |
tree | 3ef7f1187d3de0153cb9206132aecac4f44397e6 /services | |
parent | 7fd5d38860a9aef1a2ba3b30e882492fde84c9be (diff) | |
download | gitea-2871ea08096cba15546f357d0ec473734ee9d8be.tar.gz gitea-2871ea08096cba15546f357d0ec473734ee9d8be.zip |
Add more events details supports for actions (#22680)
#21937 implemented only basic events based on name because of `act`'s
limitation. So I sent a PR to parse all possible events details in
https://gitea.com/gitea/act/pulls/11 and it merged. The ref
documentation is
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
This PR depends on that and make more detail responses for `push` events
and `pull_request` events. And it lefts more events there for future
PRs.
---------
Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'services')
-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 9c9fc644cb..5b8f6bfdf6 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -137,7 +137,7 @@ func notify(ctx context.Context, input *notifyInput) error { return fmt.Errorf("gitRepo.GetCommit: %w", err) } - workflows, err := actions_module.DetectWorkflows(commit, input.Event) + workflows, err := actions_module.DetectWorkflows(commit, input.Event, input.Payload) if err != nil { return fmt.Errorf("DetectWorkflows: %w", err) } |