Skip to content

Commit

Permalink
fix bugs with v0.15.0 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Tang committed Jun 29, 2018
1 parent 3109185 commit e5d02c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,6 @@ type JiraConfig struct {
Summary string `yaml:"summary" json:"summary"`
Description string `yaml:"description" json:"description"`
Fields map[string]interface{} `yaml:"fields" json:"fields"`

// Catches all undefined fields and must be empty after parsing.
XXX map[string]interface{} `yaml:",inline" json:"-"`
}

// UnmarshalYAML implements the yaml.Unmarshaler interface.
Expand Down Expand Up @@ -556,5 +553,5 @@ func (c *JiraConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
if c.Summary == "" {
return fmt.Errorf("missing summary in Jira config")
}
return checkOverflow(c.XXX, "Jira config")
return nil
}
Loading

0 comments on commit e5d02c2

Please sign in to comment.