tosher / StGitlab

Sublime text Gitlab manager
Other
12 stars 0 forks source link

feature_request(instances): multiple GitLab domains support #6

Open Kristinita opened 4 years ago

Kristinita commented 4 years ago

1. Summary

It would be nice, if StGitlab will support creating issues for different GitLab domains.

2. Argumentation

Currently, we can post issue to solely one GitLab instance — value of gitlab_url key.

But developers use self-hosted GitLab with different custom domains. That post issue to another instance, we need every time change values of gitlab_url and api_token keys. It takes users time. It would be nice, if StGitlab users can set these parameters for each GitLab domain once.

3. Example of expected behavior

StGitlab user add to User/StGitlab.sublime-settings these lines:

"default_instance": "gitlab"
"instances": {
    "freedesktop": {
        "api_key": "<API key for gitlab.freedesktop.org>",
        "url": "gitlab.freedesktop.org"
    },
    "gitlab": {
        "api_key": "<API key for gitlab.com>",
        "url": "gitlab.com"
    }
}

Ctrl+Shift+P (⌘⇧p for Mac) → Gitlab issue: Create → user will need to select instance; if user press Enter without instance selection, issue will post to default_instance → user paste/print repository and so on.

Thanks.