Skip to content

Commit 59d06c3

Browse files
committed
commits is a version 2.0 resource
1 parent 24f6ce6 commit 59d06c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bitbucket_rest_api/repos/commits.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Repos::Commits < API
66
def get(user_name, repo_name)
77
_update_user_repo_params(user_name, repo_name)
88
_validate_user_repo_params(user, repo) unless user? && repo?
9-
get_request("/1.0/repositories/#{user}/#{repo.downcase}/commits")
9+
get_request("/2.0/repositories/#{user}/#{repo.downcase}/commits")
1010
end
1111

1212

spec/bitbucket_rest_api/repos/commits_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
before do
88
expect(commits).to receive(:request).with(
99
:get,
10-
'/1.0/repositories/mock_username/mock_repo/commits',
10+
'/2.0/repositories/mock_username/mock_repo/commits',
1111
{},
1212
{}
1313
)

0 commit comments

Comments
 (0)