mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 14:04:54 +00:00
certificate display
This commit is contained in:
@@ -20,3 +20,14 @@ type WorkflowRunLog struct {
|
||||
Succeed bool `json:"succeed"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
type RunLogs []RunLog
|
||||
|
||||
func (r RunLogs) Error() string {
|
||||
for _, log := range r {
|
||||
if log.Error != "" {
|
||||
return log.Error
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user