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

Unified Diff: recipe_modules/bot_update/__init__.py

Issue 1805113003: Convert the bot_update module to use properties (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Freeze the dict! Created 4 years, 9 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
« no previous file with comments | « no previous file | recipe_modules/bot_update/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/bot_update/__init__.py
diff --git a/recipe_modules/bot_update/__init__.py b/recipe_modules/bot_update/__init__.py
index 928f7ea0b5e0e05ff16e11502502031fdedf1d27..dde0d69145e425fc13adde89e8a880cb24d06db5 100644
--- a/recipe_modules/bot_update/__init__.py
+++ b/recipe_modules/bot_update/__init__.py
@@ -10,3 +10,22 @@ DEPS = [
'recipe_engine/step',
'tryserver',
]
+
+from recipe_engine.recipe_api import Property
+from recipe_engine.types import freeze
+
+PROPERTIES = {
+ 'mastername': Property(default=None),
+ 'buildername': Property(default=None),
+ 'slavename': Property(default=None),
+ 'issue': Property(default=None),
+ 'patchset': Property(default=None),
+ 'patch_url': Property(default=None),
+ 'repository': Property(default=None),
+ 'event.patchSet.ref': Property(default=None, param_name="gerrit_ref"),
+ 'rietveld': Property(default=None),
+ 'revision': Property(default=None),
+ 'parent_got_revision': Property(default=None),
+ 'deps_revision_overrides': Property(default=freeze({})),
+ 'fail_patch': Property(default=None, kind=str),
+}
« no previous file with comments | « no previous file | recipe_modules/bot_update/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698