1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00

Merge pull request #1589 from mvdkleijn/master

Correct repos API url in Bitbucket Server plugin
This commit is contained in:
Brad Rydzewski 2016-04-21 11:00:59 -07:00
commit 2afc96456c

View File

@ -134,7 +134,7 @@ func (bs *BitbucketServer) Repo(u *model.User, owner, name string) (*model.Repo,
client := NewClientWithToken(&bs.Consumer, u.Token)
url := fmt.Sprintf("%s/rest/api/projects/%s/repos/%s",bs.URL,owner,name)
url := fmt.Sprintf("%s/rest/api/1.0/projects/%s/repos/%s",bs.URL,owner,name)
log.Info("Trying to get " + url)
response, err := client.Get(url)
if err != nil {