Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2030)

Unified Diff: infra/bots/recipe_modules/core/api.py

Issue 2263323002: Apply gerrit ref if it is a Gerrit patch (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Cleanup Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: infra/bots/recipe_modules/core/api.py
diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py
index e65073cb3694d58466b1203ede936bb1bd6ee162..bc96d99a857e52b709e7d2376348ba2d5a87d5b9 100644
--- a/infra/bots/recipe_modules/core/api.py
+++ b/infra/bots/recipe_modules/core/api.py
@@ -140,6 +140,9 @@ class SkiaApi(recipe_api.RecipeApi):
self.m.vars.got_revision = (
update_step.presentation.properties['got_revision'])
self.m.tryserver.maybe_apply_issue()
+ if self.m.properties.get('patch_storage') == 'gerrit':
+ self.m.bot_update.apply_gerrit_ref(
+ root=str(self.m.vars.checkout_root.join('skia')))
if self.m.vars.need_chromium_checkout:
self.m.gclient.runhooks(cwd=self.m.vars.checkout_root,

Powered by Google App Engine
This is Rietveld 408576698