Skip to content

Commit 8f9a0a9

Browse files
committed
Fix shouldClose to use time since last update, not last commit
1 parent 334ca1c commit 8f9a0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitconsensus/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def validate(self):
228228

229229
def shouldClose(self):
230230
if 'timeout' in self.repository.rules:
231-
if self.hoursSinceLastCommit() >= self.repository.rules['timeout']:
231+
if self.hoursSinceLastUpdate() >= self.repository.rules['timeout']:
232232
return True
233233
return False
234234

0 commit comments

Comments
 (0)