mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
parent
fb7d5ae395
commit
237b2257f5
1 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,8 @@ const (
|
||||||
pathUser = "%s/2.0/user/"
|
pathUser = "%s/2.0/user/"
|
||||||
pathEmails = "%s/2.0/user/emails"
|
pathEmails = "%s/2.0/user/emails"
|
||||||
pathPermissions = "%s/2.0/user/permissions/repositories?q=repository.full_name=%q"
|
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"
|
pathRepo = "%s/2.0/repositories/%s/%s"
|
||||||
pathRepos = "%s/2.0/repositories/%s?%s"
|
pathRepos = "%s/2.0/repositories/%s?%s"
|
||||||
pathHook = "%s/2.0/repositories/%s/%s/hooks/%s"
|
pathHook = "%s/2.0/repositories/%s/%s/hooks/%s"
|
||||||
|
@ -92,7 +93,7 @@ func (c *Client) ListEmail() (*EmailResp, error) {
|
||||||
|
|
||||||
func (c *Client) ListWorkspaces(opts *ListWorkspacesOpts) (*WorkspacesResp, error) {
|
func (c *Client) ListWorkspaces(opts *ListWorkspacesOpts) (*WorkspacesResp, error) {
|
||||||
out := new(WorkspacesResp)
|
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)
|
_, err := c.do(uri, get, nil, out)
|
||||||
return out, err
|
return out, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue