aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/gitlab.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitlab/gitlab.go')
-rw-r--r--bridge/gitlab/gitlab.go17
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{})
}