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

Unified Diff: appengine/findit/common/codereview.py

Issue 2079773004: [Findit] Add a Rietveld client to post a message to codereview of a culprit. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 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: appengine/findit/common/codereview.py
diff --git a/appengine/findit/common/codereview.py b/appengine/findit/common/codereview.py
new file mode 100644
index 0000000000000000000000000000000000000000..95e036f7c4ec1e851911b220e3fbd1362b167244
--- /dev/null
+++ b/appengine/findit/common/codereview.py
@@ -0,0 +1,17 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+# pylint: disable=E0711, W0613, R0201
+class CodeReview(object): # pragma: no cover
+ """An interface to interact with code review."""
+
+ def PostMessage(self, codereview_url, message):
+ """ Posts the given message to the CL codereview of the specified url.
+
+ args:
+ codereview_url(str): The url to a CL codereview.
+ message(str): The message to be posted to the codereview.
+ """
+ raise NotImplemented()
« no previous file with comments | « no previous file | appengine/findit/common/http_client_appengine.py » ('j') | appengine/findit/common/http_client_appengine.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698