From 09037baa7ce316a71ce835004709172d814c0f51 Mon Sep 17 00:00:00 2001 From: Gaƫl James Date: Thu, 31 Mar 2022 09:57:50 +0200 Subject: Allow new gitlab PAT format --- bridge/gitlab/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge') 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 -- cgit