From f8f025ce984091dbd5ff38f46dde641014ab76ec Mon Sep 17 00:00:00 2001 From: Syakir Date: Wed, 3 Feb 2021 02:33:41 +0000 Subject: [PATCH] feat: Support for maintainers --- scenario.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scenario.go b/scenario.go index b6b1c88..312c05c 100644 --- a/scenario.go +++ b/scenario.go @@ -53,11 +53,12 @@ type ReportPubsub struct { // Scenario represents a single scenario file to run. type Scenario struct { - Tags map[string]string `yaml:"tags"` - Env map[string]string `yaml:"env"` - Prepare string `yaml:"prepare"` - Run []Run `yaml:"run"` - Check string `yaml:"check"` + Maintainers []string `yaml:"maintainers"` + Tags map[string]string `yaml:"tags"` + Env map[string]string `yaml:"env"` + Prepare string `yaml:"prepare"` + Run []Run `yaml:"run"` + Check string `yaml:"check"` me *Scenario input *doScenarioInput @@ -344,7 +345,7 @@ func doScenario(in *doScenarioInput) error { { Color: "danger", Title: fmt.Sprintf("%v - failure", filepath.Base(f)), - Text: fmt.Sprintf("%v", s.errs), + Text: fmt.Sprintf("Maintainers: %v\n%v", strings.Join(s.Maintainers, ", "), s.errs), Footer: "oops", Timestamp: time.Now().Unix(), },