From e4a391de46d89284cb868f2f25bbfa8b1f50f5c0 Mon Sep 17 00:00:00 2001 From: "chenrui.811" Date: Fri, 13 Oct 2023 10:20:23 +0800 Subject: [PATCH] pr_tmpl --- plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 760b298..a7dcb52 100644 --- a/plugin.go +++ b/plugin.go @@ -102,7 +102,9 @@ func (p Plugin) Exec() error { filePath = "template/compile_failure.json" } } else if p.Build.Event == "pull_request" { - + if p.Build.Status == "success" { + filePath = "template/compile_pr_success.json" + } } file, err := os.ReadFile(filePath)