summaryrefslogtreecommitdiff
path: root/pygerrit
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-08-02 18:57:36 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-08-02 18:57:36 +0900
commitf6636f61f5002ce321667a4486f79e5f4cf0d3fb (patch)
tree3f9144c58e222488c75c4ea4362bdf2e11ddbac8 /pygerrit
parent8f6f44c15a3ca3d7520b09147c8862e73ad30e11 (diff)
downloadpygerrit-f6636f61f5002ce321667a4486f79e5f4cf0d3fb.tar.gz
Add support for topic name in change attribute
Change attributes can include a "topic" field. Add support for this in the Change model. Change-Id: I31f0c19f92505bf4976f6d0008a94e06d30a48bb
Diffstat (limited to 'pygerrit')
-rw-r--r--pygerrit/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygerrit/models.py b/pygerrit/models.py
index 813b53f..f0d4d7f 100644
--- a/pygerrit/models.py
+++ b/pygerrit/models.py
@@ -31,6 +31,7 @@ class Change(object):
def __init__(self, json_data):
self.project = from_json(json_data, "project")
self.branch = from_json(json_data, "branch")
+ self.topic = from_json(json_data, "topic")
self.change_id = from_json(json_data, "id")
self.number = from_json(json_data, "number")
self.subject = from_json(json_data, "subject")