Reading GitLab account settings

Answered

We would like to read GitLab account settings from Version Control → GitLab in our plugin's custom new project wizard steps. We already read the GitHub account settings using

ApplicationManager.getApplication().getService(GHAccountManager::class.java)

 Is there a similar way to read the GitLab account settings?

 

0
1 comment

Hi,

Yes, please use org.jetbrains.plugins.gitlab.authentication.accounts.PersistentGitLabAccountManager.

Note that you must add a dependency on the org.jetbrains.plugins.gitlab plugin:
https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

0

Please sign in to leave a comment.