Skip to content

Commit

Permalink
pr_tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui.811 committed Oct 13, 2023
1 parent ae3b053 commit e4a391d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4a391d

Please sign in to comment.