fix: need to prefix with pull_request.

This commit is contained in:
Derrick Hammer 2024-02-11 06:25:50 -05:00
parent 12c71a26bf
commit e95732d479
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package api
import ( import (
"code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/structs"
"fmt"
"github.com/google/go-github/v59/github" "github.com/google/go-github/v59/github"
"time" "time"
) )
@ -234,5 +235,7 @@ func translatePrAction(action structs.HookIssueAction) string {
translatedAction = "unknown_action" translatedAction = "unknown_action"
} }
translatedAction = fmt.Sprintf("pull_request.%s", translatedAction)
return translatedAction return translatedAction
} }