OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Functions for interfacing with Gerrit, a web-based code review tool for Git. |
| 6 |
| 7 API doc: https://gerrit-review.googlesource.com/Documentation/rest-api.html |
| 8 """ |
| 9 |
| 10 from dashboard.services import request |
| 11 |
| 12 |
| 13 def GetChange(server_url, change_id, fields=None): |
| 14 url = '%s/changes/%s' % (server_url, change_id) |
| 15 return request.RequestJson(url, o=fields) |
OLD | NEW |