Skip to content
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

Implement gitlab operations #10

Open
zeromsi opened this issue Nov 14, 2021 · 0 comments
Open

Implement gitlab operations #10

zeromsi opened this issue Nov 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@zeromsi
Copy link
Member

zeromsi commented Nov 14, 2021

Interface: https://github.com/klovercloud-ci-cd/integration-manager/blob/master/core/v1/service/git.go

type Git interface {
	GetPipeline(repositoryName, username, revision, token string) (*v1.Pipeline, error)
	GetDescriptors(repositoryName, username, revision, token, path, env string) ([]unstructured.Unstructured, error)
	GetDirectoryContents(repositoryName, username, revision, token, path string) ([]v1.GitDirectoryContent, error)
	CreateRepositoryWebhook(username, repositoryName, token string) (v1.GitWebhook, error)
	DeleteRepositoryWebhookById(username, repositoryName, webhookId, token string) error
}

Example: https://github.com/klovercloud-ci-cd/integration-manager/blob/master/core/v1/logic/github.go
https://gitlab.com/api/v4/users/username+/projects?search=repoName&access_token=
https://gitlab.com/api/v4/projects/repoId /hooks?access_token=

@zeromsi zeromsi added the enhancement New feature or request label Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant