diff options
author | Michael Muré <batolettre@gmail.com> | 2021-12-04 12:34:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 12:34:03 +0100 |
commit | 4ab6d91df6fd34aa617640c83a7ce2fa93deae17 (patch) | |
tree | a55ca202c392b7ce74c21f0990e0f7fdee7917e8 /bridge/gitlab | |
parent | c9e6a0ad3ccba23ab3349a13f0d8a622fef5d02d (diff) | |
parent | 882579b129c5131c30dc2425b24d798f1227e86c (diff) | |
download | git-bug-4ab6d91df6fd34aa617640c83a7ce2fa93deae17.tar.gz |
Merge pull request #715 from remram44/gitlab-access-tokens
Fix GitLab access tokens settings link
Diffstat (limited to 'bridge/gitlab')
-rw-r--r-- | bridge/gitlab/config.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/gitlab/config.go b/bridge/gitlab/config.go index 3496b4a3..4a714d09 100644 --- a/bridge/gitlab/config.go +++ b/bridge/gitlab/config.go @@ -3,7 +3,6 @@ package gitlab import ( "fmt" "net/url" - "path" "regexp" "strconv" "strings" @@ -195,7 +194,7 @@ func promptTokenOptions(repo repository.RepoKeyring, login, baseUrl string) (aut } func promptToken(baseUrl string) (*auth.Token, error) { - fmt.Printf("You can generate a new token by visiting %s.\n", path.Join(baseUrl, "profile/personal_access_tokens")) + fmt.Printf("You can generate a new token by visiting %s.\n", strings.TrimSuffix(baseUrl, "/")+"/-/profile/personal_access_tokens") fmt.Println("Choose 'Create personal access token' and set the necessary access scope for your repository.") fmt.Println() fmt.Println("'api' access scope: to be able to make api calls") |