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

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

Issue 2484763002: Fix zero-padding in gerrit ref (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c851ed49a5f52b2c41e78eed6ad46bc92d0d5c00..74adf6afd088d3dece1d0b5f8ec01d8e1a6f4de7 100644
--- a/infra/bots/recipe_modules/core/api.py
+++ b/infra/bots/recipe_modules/core/api.py
@@ -116,8 +116,8 @@ class SkiaApi(recipe_api.RecipeApi):
# Hack the patch ref if necessary.
if self.m.properties.get('patch_storage', '') == 'gerrit':
if self.m.bot_update._issue and self.m.bot_update._patchset:
- self.m.bot_update._gerrit_ref = 'refs/changes/%d/%d/%d' % (
- int(str(self.m.bot_update._issue)[-2:]),
+ self.m.bot_update._gerrit_ref = 'refs/changes/%s/%d/%d' % (
+ str(self.m.bot_update._issue)[-2:],
self.m.bot_update._issue,
self.m.bot_update._patchset,
)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698