Skip to content

Commit

Permalink
migrate bitbucket to api 2.0
Browse files Browse the repository at this point in the history
Fix #82

Signed-off-by: Alexander Morozov <[email protected]>
  • Loading branch information
Alexander Morozov authored and LK4D4 committed Aug 21, 2019
1 parent f5ab8fc commit 146dcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godl/vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ func bitbucketVCS(match map[string]string) error {
var resp struct {
SCM string `json:"scm"`
}
url := expand(match, "https://api.bitbucket.org/1.0/repositories/{bitname}")
url := expand(match, "https://api.bitbucket.org/2.0/repositories/{bitname}?fields=scm")
data, err := httpGET(url)
if err != nil {
if httpErr, ok := err.(*httpError); ok && httpErr.statusCode == 403 {
Expand Down

0 comments on commit 146dcc3

Please sign in to comment.