File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ The file `.gitconsensus.yaml` needs to be placed in the repository to be managed
9
9
will be skipped.
10
10
11
11
``` yaml
12
+ # Which version of the consensus rules to use
13
+ version : 2
12
14
13
15
# Add extra labels for the vote counts and age when merging
14
16
extra_labels : false
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ def reloadSettings():
16
16
if os .path .isfile (path ):
17
17
with open (path , 'r' ) as f :
18
18
settings = yaml .load (f )
19
+ # support older versions by converting from day to hours.
20
+ if 'version' not in settings or settings ['version' ] < 2 :
21
+ if 'mergedelay' in settings and settings ['mergedelay' ]:
22
+ settings ['mergedelay' ] = settings ['mergedelay' ] * 24
23
+ if 'timeout' in settings and settings ['timeout' ]:
24
+ settings ['timeout' ] = settings ['timeout' ] * 24
19
25
return settings
20
26
21
27
You can’t perform that action at this time.
0 commit comments