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

Unified Diff: rietveld.py

Issue 127083003: Add an "add_inline_comment" method to rietveld.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index 7e476fb6d58aa0c0ea12d23483e32e447e14db85..5528c551a6af1278fb83b9c3413547da2cfa6709 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -253,6 +253,18 @@ class Rietveld(object):
('send_mail', 'True'),
('no_redirect', 'True')])
+ def add_inline_comment(
+ self, issue, text, side, snapshot, patchset, patchid, lineno):
+ logging.info('add inline comment for issue %d' % issue)
+ return self.post('/inline_draft', [
+ ('issue', str(issue)),
+ ('text', text),
+ ('side', side),
+ ('snapshot', snapshot),
+ ('patchset', str(patchset)),
+ ('patch', str(patchid)),
+ ('lineno', str(lineno))])
+
def set_flag(self, issue, patchset, flag, value):
return self.post('/%d/edit_flags' % issue, [
('last_patchset', str(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