workflow-pr: print errors from check handlers
This commit is contained in:
parent
245181ad28
commit
b9e70132ae
@ -101,12 +101,16 @@ nextSubmodule:
|
||||
|
||||
switch pr.State {
|
||||
case "open":
|
||||
s.processor.Opened.Process(&event, git, config)
|
||||
err = s.processor.Opened.Process(&event, git, config)
|
||||
case "closed":
|
||||
s.processor.Closed.Process(&event, git, config)
|
||||
err = s.processor.Closed.Process(&event, git, config)
|
||||
default:
|
||||
return fmt.Errorf("Unhandled pull request state: '%s'. %s/%s/%d", pr.State, config.Organization, submoduleName, pr.Index)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
log.Println(" * processor error returned:", err)
|
||||
}
|
||||
}
|
||||
|
||||
// check if the commited changes are syned with branches
|
||||
|
Loading…
Reference in New Issue
Block a user