aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab
diff options
context:
space:
mode:
authorGaël James <gaeljames@gmail.com>2022-03-31 09:57:50 +0200
committerGaël James <gaeljames@gmail.com>2022-03-31 09:57:50 +0200
commit09037baa7ce316a71ce835004709172d814c0f51 (patch)
tree9752e93b11a2f6849f10b49e79c94f585031f8f3 /bridge/gitlab
parent450d7f7ade2496d4ecb8ae6906f53134c96ca7fb (diff)
downloadgit-bug-09037baa7ce316a71ce835004709172d814c0f51.tar.gz
Allow new gitlab PAT format
Diffstat (limited to 'bridge/gitlab')
-rw-r--r--bridge/gitlab/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/gitlab/config.go b/bridge/gitlab/config.go
index 4a714d09..c9d95adb 100644
--- a/bridge/gitlab/config.go
+++ b/bridge/gitlab/config.go
@@ -200,7 +200,7 @@ func promptToken(baseUrl string) (*auth.Token, error) {
fmt.Println("'api' access scope: to be able to make api calls")
fmt.Println()
- re := regexp.MustCompile(`^[a-zA-Z0-9\-\_]{20}$`)
+ re := regexp.MustCompile(`^(glpat-)?[a-zA-Z0-9\-\_]{20}$`)
var login string