| Index: infra/bots/recipe_modules/vars/api.py
|
| diff --git a/infra/bots/recipe_modules/vars/api.py b/infra/bots/recipe_modules/vars/api.py
|
| index 85e592151a4ee58f836d528afcd1a23a857d08aa..eea6e36c9b4543fc4a3a49e4a6977e4a5ceb7868 100644
|
| --- a/infra/bots/recipe_modules/vars/api.py
|
| +++ b/infra/bots/recipe_modules/vars/api.py
|
| @@ -120,17 +120,17 @@ class SkiaVarsApi(recipe_api.RecipeApi):
|
| self.is_trybot = True
|
| self.issue = self.m.properties['issue']
|
| self.patchset = self.m.properties['patchset']
|
| - elif (self.m.properties.get('event.change.number', '') and
|
| - self.m.properties.get('event.patchSet.ref', '')):
|
| + elif (self.m.properties.get('patch_issue', '') and
|
| + self.m.properties.get('patch_ref', '')):
|
| self.is_trybot = True
|
| - self.issue = self.m.properties['event.change.number']
|
| - self.patchset = self.m.properties['event.patchSet.ref'].split('/')[-1]
|
| + self.issue = self.m.properties['patch_issue']
|
| + self.patchset = self.m.properties['patch_ref'].split('/')[-1]
|
| else:
|
| self.is_trybot = self.builder_cfg['is_trybot']
|
| if self.is_trybot:
|
| if self.patch_storage == 'gerrit':
|
| - self.issue = self.m.properties['event.change.number']
|
| - self.patchset = self.m.properties['event.patchSet.ref'].split('/')[-1]
|
| + self.issue = self.m.properties['patch_issue']
|
| + self.patchset = self.m.properties['patch_ref'].split('/')[-1]
|
| else:
|
| self.issue = self.m.properties['issue']
|
| self.patchset = self.m.properties['patchset']
|
|
|