Skip to content

Commit

Permalink
custom_fields -> fields
Browse files Browse the repository at this point in the history
  • Loading branch information
santihernandezc committed Feb 11, 2025
1 parent be080af commit c08dc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion receivers/jira/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Config struct {
WontFixResolution string `yaml:"wont_fix_resolution,omitempty" json:"wont_fix_resolution,omitempty"`
ReopenDuration model.Duration `yaml:"reopen_duration,omitempty" json:"reopen_duration,omitempty"`

Fields map[string]any `yaml:"fields,omitempty" json:"custom_fields,omitempty"`
Fields map[string]any `yaml:"fields,omitempty" json:"fields,omitempty"`
}

func NewConfig(jsonData json.RawMessage) (Config, error) {
Expand Down
2 changes: 1 addition & 1 deletion receivers/jira/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestNewConfig(t *testing.T) {
"resolve_transition": "Test Resolve Transition",
"wont_fix_resolution": "Test Won't Fix Resolution",
"reopen_duration": "1m",
"custom_fields": {"test-field": "test-value"}
"fields": {"test-field": "test-value"}
}`,
expectedConfig: Config{
URL: "http://localhost",
Expand Down

0 comments on commit c08dc5a

Please sign in to comment.