1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/actions
Giteabot fdb0d03083
Improve the issue_comment workflow trigger event (#29277) (#29322)
Backport #29277 by @Zettat123

Fix #29175
Replace #29207

This PR makes some improvements to the `issue_comment` workflow trigger
event.

1. Fix the bug that pull requests cannot trigger `issue_comment`
workflows
2. Previously the `issue_comment` event only supported the `created`
activity type. This PR adds support for the missing `edited` and
`deleted` activity types.
3. Some events (including `issue_comment`, `issues`, etc. ) only trigger
workflows that belong to the workflow file on the default branch. This
PR introduces the `IsDefaultBranchWorkflow` function to check for these
events.

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-02-22 17:19:48 +01:00
..
github_test.go Improve the issue_comment workflow trigger event (#29277) (#29322) 2024-02-22 17:19:48 +01:00
github.go Improve the issue_comment workflow trigger event (#29277) (#29322) 2024-02-22 17:19:48 +01:00
log.go Support downloading raw task logs (#24451) 2023-06-29 10:58:56 +08:00
task_state_test.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
workflows_test.go Fix schedule tasks bugs (#28691) (#28780) 2024-01-14 23:54:22 +01:00
workflows.go Implement some action notifier functions (#29173) (#29308) 2024-02-22 03:55:03 +00:00