5
5
6
6
> Bitbucket-API library for golang.
7
7
8
- Support Bitbucket API v2.0.
8
+ Support Bitbucket API v2.0.
9
9
10
10
And the response type is json format defined Bitbucket API.
11
11
@@ -26,7 +26,7 @@ package main
26
26
import (
27
27
" fmt"
28
28
29
- " github.com/ktrysmt/go-bitbucket"
29
+ " github.com/ktrysmt/go-bitbucket"
30
30
)
31
31
32
32
func main () {
@@ -47,7 +47,7 @@ func main() {
47
47
panic (err)
48
48
}
49
49
50
- fmt.Println (res)
50
+ fmt.Println (res)
51
51
}
52
52
```
53
53
@@ -59,35 +59,33 @@ It does not correspond yet. Because there are many differences between v2.0 and
59
59
60
60
- Bitbucket API v1.0 < https://confluence.atlassian.com/bitbucket/version-1-423626337.html >
61
61
62
- It is officially recommended to use v2.0.
63
- But unfortunately Bitbucket Server (formerly: Stash) API is still v1.0.
62
+ It is officially recommended to use v2.0.
63
+ But unfortunately Bitbucket Server (formerly: Stash) API is still v1.0.
64
64
And The API v1.0 covers resources that the v2.0 API and API v2.0 is yet to cover.
65
65
66
66
## Development
67
67
68
68
### Install dependencies
69
69
70
- It's using dep .
70
+ It's using ` go mod ` .
71
71
72
72
``` sh
73
- go get github.com/golang/dep/...
74
- git clone https://github.com/ktrysmt/go-bitbucket
75
- cd ./go-bitbucket
76
- dep ensure
73
+ export GO111MODULE=auto # or, =on
74
+ go build
77
75
```
78
76
79
77
### How to testing
80
78
81
79
Set your available user account to Global Env.
82
80
83
81
``` sh
84
- export BITBUCKET_TEST_USERNAME=< your_username>
85
- export BITBUCKET_TEST_PASSWORD=< your_password>
86
- export BITBUCKET_TEST_OWNER=< your_repo_owner>
82
+ export BITBUCKET_TEST_USERNAME=< your_username>
83
+ export BITBUCKET_TEST_PASSWORD=< your_password>
84
+ export BITBUCKET_TEST_OWNER=< your_repo_owner>
87
85
export BITBUCKET_TEST_REPOSLUG=< your_repo_name>
88
86
```
89
87
90
- Refs; URL Syntax is ` https://<your_username>:<your_password>@bitbucket.org/<your_repo_owner>/<your_repo_name>.git ` .
88
+ Refs; URL Syntax is ` https://<your_username>:<your_password>@bitbucket.org/<your_repo_owner>/<your_repo_name>.git ` .
91
89
92
90
And just run,
93
91
0 commit comments