Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
feat: Support for maintainers
Browse files Browse the repository at this point in the history
  • Loading branch information
syakir-alphaus committed Feb 3, 2021
1 parent d5a7af5 commit f8f025c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(),
},
Expand Down

0 comments on commit f8f025c

Please # to comment.