From f16a28bbb5be79f2fe23570c59a9c4b9d09fe5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20J=2E=20Romero=20L=C3=B3pez?= Date: Wed, 12 Oct 2016 01:28:51 +0200 Subject: [PATCH] Return the new comment data when creating a comment --- trello/card.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trello/card.py b/trello/card.py index c8fb385e..952ed306 100644 --- a/trello/card.py +++ b/trello/card.py @@ -517,10 +517,11 @@ def subscribe(self): def comment(self, comment_text): """Add a comment to a card.""" - self.client.fetch_json( + comment_data = self.client.fetch_json( '/cards/' + self.id + '/actions/comments', http_method='POST', post_args={'text': comment_text}) + return comment_data def add_label(self, label): self.client.fetch_json(