mirror of
1
Fork 0
forgejo/modules
Zettat123 2d91afaa92
Fix mismatch between hook events and github event types ()
Some workflow trigger events can have multiple activity types, such as
`issues` and `pull_request`, and user can specify which types can
trigger the workflow. See GitHub documentation:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows

Now some hook events cannot match the workflow trigger events correctly
because we don't check the activity types. For example,
`pull_request_label` is an individual hook event. But there isn't a
`pull_request_label` workflow trigger event, we can only use
`pull_request` event's `label` activity type. If we don't check the
activity types, the workflows without the `label` activity type may be
triggered by the `pull_request_label` event by mistake. We need to
improve the match logic.

- [x] [`issues`
](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues)
- [x]
[`issue_comment`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment)
- [x]
[`pull_request`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request)
- [x]
[`pull_request_review`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_review)
- [x]
[`pull_request_review_comment`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_review_comment)
- [x]
[`release`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release)
- [x]
[`registry_package`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#registry_package)
2023-04-12 12:16:47 -04:00
..
actions Fix mismatch between hook events and github event types () 2023-04-12 12:16:47 -04:00
activitypub Add Chef package registry () 2023-02-06 09:49:21 +08:00
analyze
assetfs Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
auth Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
avatar Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
base Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
cache
charset Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
container
context Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
csv
doctor Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
emoji
eventsource
generate
git Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths-ignore` filter () 2023-04-07 14:42:43 +08:00
gitgraph
graceful
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight
hostmatcher
html
httpcache
httplib Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" () 2023-03-29 14:32:26 +08:00
indexer
issue/template
json
label Make label templates have consistent behavior and priority () 2023-04-10 16:44:02 +08:00
lfs
log Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
markup Append `(comment)` when a link points at a comment rather than the whole issue () 2023-04-03 16:02:57 +08:00
mcaptcha
metrics
migration Scoped labels () 2023-02-18 21:17:39 +02:00
mirror
nosql
notification
options Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
packages Display image size for multiarch container images () 2023-04-02 17:53:37 +08:00
paginator
pprof
private Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" () 2023-03-29 14:32:26 +08:00
process
proxy
proxyprotocol
public Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
queue
recaptcha
references
regexplru Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repository Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
secret Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
session Use Get/Set instead of Rename when Regenerate session id () 2023-04-07 18:11:24 +02:00
setting Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
sitemap
ssh
storage Make minio package support legacy MD5 checksum () 2023-03-28 11:10:24 -04:00
structs Add activity feeds API () 2023-04-04 21:35:31 +08:00
svg Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
sync
system
templates Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
test Group template helper functions, remove `Printf`, improve template error messages () 2023-04-08 21:15:22 +08:00
timeutil Use auto-updating, natively hoverable, localized time elements () 2023-04-11 01:01:20 +02:00
translation Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
validation Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
web
webhook