-
Notifications
You must be signed in to change notification settings - Fork 0
Implement gerrit scm #1
New issue
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
base: master
Are you sure you want to change the base?
Conversation
internal/scm/gerrit/gerrit.go
Outdated
if project.State != "ACTIVE" { | ||
log.Debug("Skipping repository since state is not ACTIVE") | ||
continue | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's possible to filter directly in the ProjectOptions right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see any option to filter state directly with ProjectOptions
: https://github.com/andygrunwald/go-gerrit/blob/master/projects.go#L185
Seems possible directly using Gerrit Rest API, but go-gerrit didn't implement it yet 😃
5f571a6
to
229827a
Compare
229827a
to
2b07a2f
Compare
7a50322
to
e381bd0
Compare
12dec00
to
9ae9be6
Compare
Done
VersionController
interface with dummy behaviour (TL;DR :return nil, errors.New("implement me")
)go-gerrit
libGetRepositories
with search based on Regex (cf https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects)GetPullRequests
andGetPullRequests
MergePullRequest
andClosePullRequest
CreatePullRequest
andUpdatePullRequest
, just to be able to return anscm.PullRequest
objectWill not be implemented