Skip to content

added gitlab support#1

Open
empath-nirvana wants to merge 16 commits intomasterfrom
gitlab-provider
Open

added gitlab support#1
empath-nirvana wants to merge 16 commits intomasterfrom
gitlab-provider

Conversation

@empath-nirvana
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@coderanger coderanger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good.

You also need to add a block of code here https://github.com/argoproj-labs/applicationset/blob/master/pkg/generators/scm_provider.go#L62-L71 to stitch things together between the config struct and generator struct(s).

Comment thread api/v1alpha1/applicationset_types.go Outdated
type SCMProviderGeneratorGitlab struct {
// GitHub org to scan. Required.
Group string `json:"group"`
// The GitHub API URL to talk to. If blank, use https://api.github.com/.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweak the comment.

Comment thread pkg/services/scm_provider/gitlab.go Outdated
"github.com/stretchr/testify/assert"
)

// func checkRateLimit(t *testing.T, err error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guessing you commented this because it would collide with the impl from github? Could rename that checkGithubRateLimit and this checkGitlabRateLimit since they might not use the same error messages? But "rate limit exceeded" is generic enough it might work for both by accident :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants