File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,24 @@ pub const CONFIG_FILE_PATH: &str = "rust-bors.toml";
12
12
/// file located in the root of the repository file tree.
13
13
#[ derive( serde:: Deserialize , Debug ) ]
14
14
pub struct RepositoryConfig {
15
+ /// Maximum duration (in seconds) to wait for CI checks to complete before timing out.
16
+ /// Defaults to 3600 seconds (1 hour).
15
17
#[ serde(
16
18
default = "default_timeout" ,
17
19
deserialize_with = "deserialize_duration_from_secs"
18
20
) ]
19
21
pub timeout : Duration ,
22
+ /// Label modifications to apply when specific events occur.
23
+ /// Maps trigger events (approve, try, etc.) to label additions/removals.
24
+ /// Format: `trigger = ["+label_to_add", "-label_to_remove"]`
20
25
#[ serde( default , deserialize_with = "deserialize_labels" ) ]
21
26
pub labels : HashMap < LabelTrigger , Vec < LabelModification > > ,
27
+ /// Minimum time (in seconds) to wait for CI checks to complete before proceeding.
28
+ /// Defaults to `None` (no minimum wait time).
22
29
#[ serde( default , deserialize_with = "deserialize_duration_from_secs_opt" ) ]
23
30
pub min_ci_time : Option < Duration > ,
31
+ /// Whether auto merging is enabled.
32
+ /// Defaults to false.
24
33
#[ serde( default ) ]
25
34
pub merge_queue_enabled : bool ,
26
35
}
You can’t perform that action at this time.
0 commit comments