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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
we know go-scm can work well with Drone, and it can use repo.Find interface to find a specific project.
go-scm
repo.Find
In our scenario, we hope can use string to search the project list, so whether we can add a search interface for go-scm,
# https://github.com/go-atomci/go-scm/blob/master/scm/search.go#L16 SearchService interface { // Find returns a repository by name. FindProjects(context.Context, string) ([]*Repository, *Response, error) }
# gitlab # https://github.com/go-atomci/go-scm/blob/master/scm/driver/gitlab/search.go#L18 func (s *searchService) FindProjects(ctx context.Context, projectName string) ([]*scm.Repository, *scm.Response, error) { path := fmt.Sprintf("api/v4/search?scope=projects&search=%s", encode(projectName)) out := []*repository{} res, err := s.client.do(ctx, "GET", path, nil, &out) return convertRepositoryList(out), res, err }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
we know
go-scm
can work well with Drone, and it can userepo.Find
interface to find a specific project.In our scenario, we hope can use string to search the project list, so whether we can add a search interface for
go-scm
,interface
gitlab sample
The text was updated successfully, but these errors were encountered: