summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-03-24 15:10:33 +0000
committerGerrit Code Review <review@openstack.org>2023-03-24 15:10:33 +0000
commite9a3baee59ccb0e5e9a08d34ff372634e246a559 (patch)
tree64d45409ea25f9e24d2e6004c69298c3ae57b781
parentdd8ad88b8e2f1bd25ac1009111cae0eebfc89233 (diff)
parent782be9a9902046c7c0d282b78d7786a3cbb5b905 (diff)
downloadzuul-e9a3baee59ccb0e5e9a08d34ff372634e246a559.tar.gz
Merge "Set cache ltime when branch protection changed"
-rw-r--r--zuul/driver/github/githubconnection.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/zuul/driver/github/githubconnection.py b/zuul/driver/github/githubconnection.py
index 0155e6963..a1353cb4d 100644
--- a/zuul/driver/github/githubconnection.py
+++ b/zuul/driver/github/githubconnection.py
@@ -684,6 +684,11 @@ class GithubEventProcessor(object):
branch, project_name)
events.append(
self._branch_protection_rule_to_event(project_name, branch))
+
+ for event in events:
+ # Make sure every event has a branch cache ltime
+ self.connection.clearConnectionCacheOnBranchEvent(event)
+
return events
def _branch_protection_rule_to_event(self, project_name, branch):