0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 18:34:10 -05:00
forgejo/modules/actions
Zettat123 ff5df5fc97
Improve the issue_comment workflow trigger event (#29277)
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.

(cherry picked from commit a4fe1cdf38f9a063e44b197ef07e4260f731c919)

Conflicts:
	modules/actions/github.go
	context
2024-02-26 22:30:26 +01:00
..
github.go Improve the issue_comment workflow trigger event (#29277) 2024-02-26 22:30:26 +01:00
github_test.go Improve the issue_comment workflow trigger event (#29277) 2024-02-26 22:30:26 +01:00
log.go
task_state.go
task_state_test.go
workflows.go Implement some action notifier functions (#29173) 2024-02-19 22:58:32 +01:00
workflows_test.go [ACTIONS] on.schedule: the event is always "schedule" 2024-02-05 16:54:44 +01:00