Skip to content

Commit 3766bbc

Browse files
committed
Add field property avatar
1 parent b47c6c8 commit 3766bbc

File tree

1 file changed

+5
-0
lines changed
  • atlassian/bitbucket/cloud/common

1 file changed

+5
-0
lines changed

atlassian/bitbucket/cloud/common/users.py

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ def uuid(self):
2525
"""User id used by Bitbucket Cloud"""
2626
return self.get_data("uuid")
2727

28+
@property
29+
def avatar(self):
30+
""" URL to user avatar on Bitbucket Cloud """
31+
return self.get_data("links")["avatar"]["href"]
32+
2833

2934
class Participant(BitbucketCloudBase):
3035
ROLE_REVIEWER = "REVIEWER"

0 commit comments

Comments
 (0)