We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648b17c commit 29513ecCopy full SHA for 29513ec
recipe/thirdparty/providers/gitlab.go
@@ -17,6 +17,7 @@ package providers
17
18
import (
19
"encoding/json"
20
+ "fmt"
21
"net/http"
22
"strings"
23
@@ -97,7 +98,7 @@ func GitLab(config tpmodels.GitLabConfig) tpmodels.TypeProvider {
97
98
return tpmodels.UserInfo{}, err
99
}
100
userInfo := response.(map[string]interface{})
- ID := userInfo["id"].(string)
101
+ ID := fmt.Sprint(userInfo["id"]) // the id returned by gitlab is a number, so we convert to a string
102
_, emailExists := userInfo["email"]
103
if !emailExists {
104
return tpmodels.UserInfo{
0 commit comments