1
0
Fork 0
forgejo/services
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
..
actions Improve the issue_comment workflow trigger event (#29277) 2024-02-26 22:30:26 +01:00
agit [FEAT] Check if commit is already present in target branch 2024-02-23 21:42:15 +01:00
asymkey
attachment
auth Fix c/p error in inline documentation (#29148) 2024-02-19 22:58:33 +01:00
automerge
context
convert Add merge style fast-forward-only (#28954) 2024-02-14 17:19:19 +01:00
cron Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
doctor
externalaccount
feed
forgejo
forms Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
gitdiff [FEAT] Enable ambiguous character detection in configured contexts 2024-02-23 13:12:17 +01:00
indexer
issue
lfs
mailer Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
markup
migrations Properly migrate automatic merge GitLab comments (#27873) 2024-02-26 22:30:26 +01:00
mirror
notify
org
packages Port "Use general token signing secret" 2024-02-19 20:49:37 +01:00
pull Disallow merge when required checked are missing (#29143) 2024-02-19 22:58:33 +01:00
release
repository Fix content size does not match error when uploading lfs file (#29259) 2024-02-26 21:42:14 +01:00
secrets
task
uinotification
user Remove unused KeyID. (#29167) 2024-02-16 15:20:52 +01:00
webhook
wiki