Skip to content

Commit

Permalink
bitbucket deprecated v1.0 of its repositories API
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons committed Jun 27, 2019
1 parent f9ec369 commit f4655a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (d *BitBucketDetector) detectHTTP(src string) (string, bool, error) {
var info struct {
SCM string `json:"scm"`
}
infoUrl := "https://api.bitbucket.org/1.0/repositories" + u.Path
infoUrl := "https://api.bitbucket.org/2.0/repositories" + u.Path
resp, err := http.Get(infoUrl)
if err != nil {
return "", true, fmt.Errorf("error looking up BitBucket URL: %s", err)
Expand Down

0 comments on commit f4655a3

Please sign in to comment.