forgejo/modules/actions
Zettat123 c1a10be07e
Fix activity type match in matchPullRequestEvent () ()
Backport 

Fix 
Caused by 

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.
2023-07-11 06:42:07 +00:00
..
github.go Support triggering workflows by wiki related events () 2023-04-17 13:49:47 -04:00
github_test.go Improve workflow event triggers () 2023-03-23 12:04:15 +08:00
log.go Fix content holes in Actions task logs file () () 2023-06-28 23:39:23 +00:00
task_state.go Implement actions () 2023-01-31 09:45:19 +08:00
task_state_test.go Implement actions () 2023-01-31 09:45:19 +08:00
workflows.go Fix activity type match in matchPullRequestEvent () () 2023-07-11 06:42:07 +00:00
workflows_test.go Fix activity type match in matchPullRequestEvent () () 2023-07-11 06:42:07 +00:00