We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02a5027 + 9443878 commit 6995070Copy full SHA for 6995070
gitconsensus/repository.py
@@ -251,8 +251,10 @@ def validate(self):
251
return self.consensus.validate(self)
252
253
def shouldClose(self):
254
- if 'timeout' in self.repository.rules:
255
- if self.hoursSinceLastUpdate() >= self.repository.rules['timeout']:
+ if 'pull_requests' not in self.repository.rules:
+ return False
256
+ if 'timeout' in self.repository.rules['pull_requests']:
257
+ if self.hoursSinceLastUpdate() >= self.repository.rules['pull_requests']['timeout']:
258
return True
259
return False
260
0 commit comments