From e95732d479ad8effe2a33a6d77fd33fc61d1fa37 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 06:25:50 -0500 Subject: [PATCH] fix: need to prefix with pull_request. --- api/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/convert.go b/api/convert.go index dfe1b11..0d9609c 100644 --- a/api/convert.go +++ b/api/convert.go @@ -2,6 +2,7 @@ package api import ( "code.gitea.io/gitea/modules/structs" + "fmt" "github.com/google/go-github/v59/github" "time" ) @@ -234,5 +235,7 @@ func translatePrAction(action structs.HookIssueAction) string { translatedAction = "unknown_action" } + translatedAction = fmt.Sprintf("pull_request.%s", translatedAction) + return translatedAction }