package prproject import ( "github.com/google/go-github/v47/github" "edge-infra.dev/pkg/f8n/devinfra/jack/constants" "edge-infra.dev/pkg/f8n/devinfra/jack/plugin" ) func init() { plugin.RegisterPullRequestHandler(constants.PluginPRProject, handlePR) } func handlePR(hp plugin.HandlerParams, pre github.PullRequestEvent) { hp.Log.WithName(constants.PluginPRProject) action := pre.GetAction() switch action { case "closed": addPRToProjects(hp, pre) } }