From 7628522abcca2165b90a58d8c6576c14a658222c Mon Sep 17 00:00:00 2001 From: Spacetown Date: Sun, 6 Nov 2022 21:05:41 +0100 Subject: [PATCH 1/2] [Bitbucket] Fix `Workspace.each` function. --- atlassian/bitbucket/cloud/repositories/commits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/bitbucket/cloud/repositories/commits.py b/atlassian/bitbucket/cloud/repositories/commits.py index f8a05e732..69ad2f837 100644 --- a/atlassian/bitbucket/cloud/repositories/commits.py +++ b/atlassian/bitbucket/cloud/repositories/commits.py @@ -35,7 +35,7 @@ def each(self, top=None, q=None, sort=None): if q is not None: params["q"] = q for commit in self._get_paged(top, trailing=True, params=params): - yield self.__get_object(super(Commits, self).get(commit.get("hash"))) + yield self.get(commit.get("hash")) def get(self, commit_hash): """ From 465bc66cb3011115ceb4f95ddb3d2879f5783c26 Mon Sep 17 00:00:00 2001 From: Spacetown Date: Sun, 6 Nov 2022 21:06:17 +0100 Subject: [PATCH 2/2] Fix property `Commit.message`. --- atlassian/bitbucket/cloud/repositories/commits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/bitbucket/cloud/repositories/commits.py b/atlassian/bitbucket/cloud/repositories/commits.py index 69ad2f837..839e14ee7 100644 --- a/atlassian/bitbucket/cloud/repositories/commits.py +++ b/atlassian/bitbucket/cloud/repositories/commits.py @@ -70,7 +70,7 @@ def hash(self): @property def message(self): """Commit message.""" - return self.get_data("title") + return self.get_data("message") @property def date(self):