Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: add comment on why we need the maintain role (#1826)

tianzhou27d77ff279c0
diff --git a/plugin/vcs/gitlab/gitlab.go b/plugin/vcs/gitlab/gitlab.go
index 1dd16f758e..123758059f 100644
--- a/plugin/vcs/gitlab/gitlab.go
+++ b/plugin/vcs/gitlab/gitlab.go
@@ -252,6 +252,7 @@ func (p *Provider) ExchangeOAuthToken(ctx context.Context, instanceURL string, o
}
// FetchAllRepositoryList fetches all repositories where the authenticated user has a maintainer role.
+// The maintainer role is required to create webhook in the project.
func (p *Provider) FetchAllRepositoryList(ctx context.Context, oauthCtx common.OauthContext, instanceURL string) ([]*vcs.Repository, error) {
repoList := []*vcs.Repository{}
// page is the current requesting page index, starts from 1.