mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
style: reenable switch check
This commit is contained in:
parent
adf4dcdbbf
commit
8322882265
19 changed files with 29 additions and 43 deletions
|
@ -649,8 +649,7 @@ func matchReleaseEvent(payload *api.ReleasePayload, evt *jobparser.Event) bool {
|
|||
// unpublished, created, deleted, prereleased, released
|
||||
|
||||
action := payload.Action
|
||||
switch action {
|
||||
case api.HookReleaseUpdated:
|
||||
if action == api.HookReleaseUpdated {
|
||||
action = "edited"
|
||||
}
|
||||
for _, val := range vals {
|
||||
|
@ -686,8 +685,7 @@ func matchPackageEvent(payload *api.PackagePayload, evt *jobparser.Event) bool {
|
|||
// updated
|
||||
|
||||
action := payload.Action
|
||||
switch action {
|
||||
case api.HookPackageCreated:
|
||||
if action == api.HookPackageCreated {
|
||||
action = "published"
|
||||
}
|
||||
for _, val := range vals {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue