Skip to content

Commit 5bab062

Browse files
committed
fix: add webhook_retry_schedule and semver_formats to list of configuration options that can be saved to the database
1 parent c3fd2ed commit 5bab062

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/pact_broker/configuration.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class Configuration
1616
:use_case_sensitive_resource_names,
1717
:enable_public_badge_access,
1818
:shields_io_base_url,
19-
:check_for_potential_duplicate_pacticipant_names
19+
:check_for_potential_duplicate_pacticipant_names,
20+
:webhook_retry_schedule,
21+
:semver_formats
2022
]
2123

2224
attr_accessor :log_dir, :database_connection, :auto_migrate_db, :use_hal_browser, :html_pact_renderer
@@ -55,7 +57,7 @@ def self.default_configuration
5557
# Not recommended to set this to true unless there is no way to
5658
# consistently extract an orderable object from the consumer application version number.
5759
config.order_versions_by_date = false
58-
config.semver_formats = ["%M.%m.%p%s%d","%M.%m", "%M"]
60+
config.semver_formats = ["%M.%m.%p%s%d", "%M.%m", "%M"]
5961
config.webhook_retry_schedule = [10, 60, 120, 300, 600, 1200] #10 sec, 1 min, 2 min, 5 min, 10 min, 20 min => 38 minutes
6062
config.check_for_potential_duplicate_pacticipant_names = true
6163
config

0 commit comments

Comments
 (0)