We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProjectBaseOptions
Skip
As for documentation, during request to projects list Skip option has to be passed as S (capital S), instead of lowercased, is it is now.
S
Source: API docs Affected version: 3.7+
The text was updated successfully, but these errors were encountered:
Hey @xobotyi,
I am not sure if this is a bug.
For the endpoint List Projects - 'GET /projects/', it is a capital S. See https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html and
'GET /projects/'
Example code:
opt := &gerrit.ProjectOptions{ Skip: 1, ProjectBaseOptions: gerrit.ProjectBaseOptions{ Limit: 5, }, } list, _, err := client.Projects.ListProjects(context.Background(), opt) if err != nil { panic(err) } for _, project := range *list { fmt.Printf("Project: %s\n", project.Name) }
For the endpoint List Tags -- 'GET /projects/{project-name}/tags/', it is a small s
optBase := &gerrit.ProjectBaseOptions{ Skip: 0, Limit: 5, } tags, _, err := client.Projects.ListTags(context.Background(), "AhoCorasick", optBase) if err != nil { panic(err) } for _, tag := range *tags { fmt.Printf("Tag: %s %s\n", tag.Ref, tag.Object) }
Can you confirm it?
@dmitshur How do you see it?
Sorry, something went wrong.
Actually, it also works with an uppercase S. Here, the documentation might be misleading. Sometimes a S and sometimes a s is used.
s
Successfully merging a pull request may close this issue.
As for documentation, during request to projects list
Skip
option has to be passed asS
(capital S), instead of lowercased, is it is now.Source: API docs
Affected version: 3.7+
The text was updated successfully, but these errors were encountered: