Closed mzampetakis closed 1 year ago
Tried it localhost but using a local domain through ngrok and git the exact same error while trying to Enable a repo from Bitbucket:
Could not fetch repository from forge.
It seems that
func (c *Client) FindRepo(owner, name string) (*Repo, error)
from Bitbucket forge invokes an non valid URL:
https://api.bitbucket.org/2.0/repositories//{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX}
The owner name is required and at this case is empty.
Interesting. Should be pretty easy to fix though.
I am looking into this. The most obvious solution is to update the
func (c *Client) FindRepo(owner, name string) (*Repo, error)
from the bitbucket forge, in order to retrieve all the repos which does not require the owner and the find the owner of the requested repo. Another solution could be to change
func PostRepo(c *gin.Context) {
from server/api/repo.go
in order to send the owner of the repo.
Component
server
Describe the bug
I am running a woodpecker:latest on my Mac using docker. I have connected through oAuth to the Bitbucket cloud and all the repos are listed within the UI. Trying to enable any repo (public or private) returns an error:
I have tried the same functionality with Github and everything worked fine.
I have seen this issue: https://github.com/woodpecker-ci/woodpecker/issues/143 but in my case I use a DDNS and port forward so that my local instance of woodpecker server can be accessed publicly.
System Info