gitea/modules/actions
Zettat123 bd1946e372
Fix activity type match in `matchPullRequestEvent` (#25746) (#25797)
Backport #25746

Fix #25736
Caused by #24048

Right now we only check the activity type for `pull_request` event when
`types` is specified or there are no `types` and filter. If a workflow
only specifies filters but no `types` like this:
```
on:
  pull_request:
    branches: [main]
```
the workflow will be triggered even if the activity type is not one of
`[opened, reopened, sync]`. We need to check the activity type in this
case.

Co-authored-by: Giteabot <teabot@gitea.io>
2023-07-10 09:30:46 -04:00
..
github.go Improve workflow event triggers (#23613) (#23648) 2023-03-23 16:34:05 +08:00
github_test.go Improve workflow event triggers (#23613) (#23648) 2023-03-23 16:34:05 +08:00
log.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
task_state.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
task_state_test.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
workflows.go Fix activity type match in `matchPullRequestEvent` (#25746) (#25797) 2023-07-10 09:30:46 -04:00
workflows_test.go Fix activity type match in `matchPullRequestEvent` (#25746) (#25797) 2023-07-10 09:30:46 -04:00