summaryrefslogtreecommitdiff
path: root/zuul/driver/github
diff options
context:
space:
mode:
authorSimon Westphahl <simon.westphahl@bmw.de>2021-11-04 12:22:01 +0100
committerSimon Westphahl <simon.westphahl@bmw.de>2021-11-04 15:15:15 +0100
commit0b048295e4e25e337194053cfa3bbe91e1a50e80 (patch)
tree3ca8cd8a6279028a55b5dd6e02b7196c428861f4 /zuul/driver/github
parent9fca9da2062796c50e056171b8b28ce047f011e4 (diff)
downloadzuul-0b048295e4e25e337194053cfa3bbe91e1a50e80.tar.gz
Add source interface for getting the cache ltime
In order to save a list of ltimes for each connection we need a source interface to get the current ltime of a project branch cache. Change-Id: If01db0698024beeed813d2c9910651c757377865
Diffstat (limited to 'zuul/driver/github')
-rw-r--r--zuul/driver/github/githubsource.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/zuul/driver/github/githubsource.py b/zuul/driver/github/githubsource.py
index 5e14e66ef..8c08a8b13 100644
--- a/zuul/driver/github/githubsource.py
+++ b/zuul/driver/github/githubsource.py
@@ -114,6 +114,9 @@ class GithubSource(BaseSource):
def getProjectBranches(self, project, tenant, min_ltime=-1):
return self.connection.getProjectBranches(project, tenant, min_ltime)
+ def getProjectBranchCacheLtime(self):
+ return self.connection._branch_cache.ltime
+
def getProjectOpenChanges(self, project):
"""Get the open changes for a project."""
raise NotImplementedError()