feat(resultdetail): show executor status by default
This commit is contained in:
parent
469678e999
commit
2c045b8494
|
@ -8,6 +8,7 @@ import (
|
||||||
|
|
||||||
type Conf struct {
|
type Conf struct {
|
||||||
Score int
|
Score int
|
||||||
|
ShowExecutorStatus bool `default:"true"`
|
||||||
ShowExitStatus bool `default:"false"`
|
ShowExitStatus bool `default:"false"`
|
||||||
ShowError bool `default:"false"`
|
ShowError bool `default:"false"`
|
||||||
ShowTime bool `default:"true"`
|
ShowTime bool `default:"true"`
|
||||||
|
@ -29,6 +30,9 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
var res []stage.ParserResult
|
var res []stage.ParserResult
|
||||||
for _, result := range results {
|
for _, result := range results {
|
||||||
comment := ""
|
comment := ""
|
||||||
|
if conf.ShowExecutorStatus {
|
||||||
|
comment += fmt.Sprintf("Executor Status: `%s`\n", result.Status.String())
|
||||||
|
}
|
||||||
if conf.ShowExitStatus {
|
if conf.ShowExitStatus {
|
||||||
comment += fmt.Sprintf("Exit Status: `%d`\n", result.ExitStatus)
|
comment += fmt.Sprintf("Exit Status: `%d`\n", result.ExitStatus)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user