workflow-pr: print errors from check handlers

This commit is contained in:
Adam Majer 2025-01-17 14:46:53 +01:00
parent 245181ad28
commit b9e70132ae

View File

@ -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