Skip to content

Commit

Permalink
Fix bitbucket org fetching (#2874)
Browse files Browse the repository at this point in the history
closes #2793
  • Loading branch information
qwerty287 authored Dec 1, 2023
1 parent fb7d5ae commit 237b225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/forge/bitbucket/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const (
pathUser = "%s/2.0/user/"
pathEmails = "%s/2.0/user/emails"
pathPermissions = "%s/2.0/user/permissions/repositories?q=repository.full_name=%q"
pathWorkspace = "%s/2.0/workspaces/?%s"
pathWorkspaces = "%s/2.0/workspaces/?%s"
pathWorkspace = "%s/2.0/workspaces/%s"
pathRepo = "%s/2.0/repositories/%s/%s"
pathRepos = "%s/2.0/repositories/%s?%s"
pathHook = "%s/2.0/repositories/%s/%s/hooks/%s"
Expand Down Expand Up @@ -92,7 +93,7 @@ func (c *Client) ListEmail() (*EmailResp, error) {

func (c *Client) ListWorkspaces(opts *ListWorkspacesOpts) (*WorkspacesResp, error) {
out := new(WorkspacesResp)
uri := fmt.Sprintf(pathWorkspace, c.base, opts.Encode())
uri := fmt.Sprintf(pathWorkspaces, c.base, opts.Encode())
_, err := c.do(uri, get, nil, out)
return out, err
}
Expand Down

0 comments on commit 237b225

Please sign in to comment.