You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package scm provides a unified interface to multiple source code management systems including GitHub, GitHub Enterprise, Bitbucket, Bitbucket Server, Gitea and Gogs.
5
+
Package scm provides a unified interface to multiple source code management systems including GitHub, GitHub Enterprise, Bitbucket, Bitbucket Server, Gitee, Gitea and Gogs.
6
6
7
7
## Getting Started
8
8
@@ -12,21 +12,21 @@ Create a GitHub client:
12
12
package main
13
13
14
14
import (
15
-
"github.com/drone/go-scm/scm"
16
-
"github.com/drone/go-scm/scm/driver/github"
15
+
"github.com/drone/go-scm/scm"
16
+
"github.com/drone/go-scm/scm/driver/github"
17
17
)
18
18
19
19
funcmain() {
20
-
client:= github.NewDefault()
20
+
client:= github.NewDefault()
21
21
}
22
22
```
23
23
24
24
Create a GitHub Enterprise client:
25
25
26
26
```Go
27
27
import (
28
-
"github.com/drone/go-scm/scm"
29
-
"github.com/drone/go-scm/scm/driver/github"
28
+
"github.com/drone/go-scm/scm"
29
+
"github.com/drone/go-scm/scm/driver/github"
30
30
)
31
31
32
32
funcmain() {
@@ -38,8 +38,8 @@ Create a Bitbucket client:
38
38
39
39
```Go
40
40
import (
41
-
"github.com/drone/go-scm/scm"
42
-
"github.com/drone/go-scm/scm/driver/bitbucket"
41
+
"github.com/drone/go-scm/scm"
42
+
"github.com/drone/go-scm/scm/driver/bitbucket"
43
43
)
44
44
45
45
funcmain() {
@@ -51,8 +51,8 @@ Create a Bitbucket Server (Stash) client:
0 commit comments