From f4655a33320b08ec9d8698aa2864978e2d67ac42 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 27 Jun 2019 14:58:06 -0700 Subject: [PATCH] bitbucket deprecated v1.0 of its repositories API --- detect_bitbucket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect_bitbucket.go b/detect_bitbucket.go index a183a17df..19047eb19 100644 --- a/detect_bitbucket.go +++ b/detect_bitbucket.go @@ -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)