Skip to content

Commit a425402

Browse files
authored
Fix bitbucket cloud commits atlassian-api#1071 (atlassian-api#1072)
* fix each commit obj * fix commit message * fix commit author
1 parent 96e0cd1 commit a425402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atlassian/bitbucket/cloud/repositories/commits.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def each(self, top=None, q=None, sort=None):
3535
if q is not None:
3636
params["q"] = q
3737
for commit in self._get_paged(top, trailing=True, params=params):
38-
yield self.__get_object(super(Commits, self).get(commit.get("hash")))
38+
yield self.__get_object(commit)
3939

4040
def get(self, commit_hash):
4141
"""
@@ -70,7 +70,7 @@ def hash(self):
7070
@property
7171
def message(self):
7272
"""Commit message."""
73-
return self.get_data("title")
73+
return self.get_data("message")
7474

7575
@property
7676
def date(self):
@@ -80,7 +80,7 @@ def date(self):
8080
@property
8181
def author(self):
8282
"""User object of the author."""
83-
return User(None, self.get_data("author"))
83+
return User(None, self.get_data("author").get("user"))
8484

8585
def parents(self):
8686
"""Return a generator object of parent commits."""

0 commit comments

Comments
 (0)