diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-19 18:56:58 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-23 17:18:04 +0200 |
commit | b9a533804940989617890b84d5008e8bb7c8e15b (patch) | |
tree | 71b3dc66c2e7a2f1396dd4e87860c63afff5f4e3 /bridge/gitlab/gitlab.go | |
parent | 7726bbdbcf8aa49548ecbcfc323b47b0ec034f54 (diff) | |
download | git-bug-b9a533804940989617890b84d5008e8bb7c8e15b.tar.gz |
bridge/gitlab: move constants to gitlab.go
Diffstat (limited to 'bridge/gitlab/gitlab.go')
-rw-r--r-- | bridge/gitlab/gitlab.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bridge/gitlab/gitlab.go b/bridge/gitlab/gitlab.go index 9f5807cd..d0faf1ef 100644 --- a/bridge/gitlab/gitlab.go +++ b/bridge/gitlab/gitlab.go @@ -1,11 +1,28 @@ package gitlab import ( + "time" + "github.com/xanzy/go-gitlab" "github.com/MichaelMure/git-bug/bridge/core" ) +const ( + target = "gitlab" + gitlabV4Url = "https://gitlab.com/api/v4" + + keyProjectID = "project-id" + keyGitlabId = "gitlab-id" + keyGitlabUrl = "gitlab-url" + keyGitlabLogin = "gitlab-login" + keyToken = "token" + keyTarget = "target" + keyOrigin = "origin" + + defaultTimeout = 60 * time.Second +) + func init() { core.Register(&Gitlab{}) } |