Skip to content

Commit af16cf8

Browse files
committed
Implement followers in team.rb
1 parent 47c60fb commit af16cf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/bitbucket_rest_api/team.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,11 @@ def members(team_name)
2424
response["values"].each { |el| yield el }
2525
end
2626

27+
def followers(team_name)
28+
response = get_request("/2.0/teams/#{team_name.to_s}/followers")
29+
return response unless block_given?
30+
response["values"].each { |el| yield el }
31+
end
32+
2733
end # Users
2834
end # BitBucket

0 commit comments

Comments
 (0)