File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ pnpm i @coderabbitai/bitbucket
18
18
### Cloud
19
19
20
20
``` ts
21
- import { createBitbucketCloudClient , toBase64 } from " @coderabbitai/bitbucket"
21
+ import { createBitbucketCloudClient } from " @coderabbitai/bitbucket/cloud"
22
+ import { toBase64 } from " @coderabbitai/bitbucket"
22
23
import {
23
24
BITBUCKET_CLOUD_APP_PASSWORD ,
24
25
BITBUCKET_CLOUD_URL ,
@@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
38
39
### Server
39
40
40
41
``` ts
41
- import { createBitbucketServerClient } from " @coderabbitai/bitbucket"
42
+ import { createBitbucketServerClient } from " @coderabbitai/bitbucket/server "
42
43
import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from " ./env.js"
43
44
44
45
const server = createBitbucketServerClient ({
Original file line number Diff line number Diff line change 1
- import { createBitbucketCloudClient , toBase64 } from "../../src/index.js"
1
+ import { createBitbucketCloudClient } from "../../src/cloud/index.js"
2
+ import { toBase64 } from "../../src/index.js"
2
3
import {
3
4
BITBUCKET_CLOUD_APP_PASSWORD ,
4
5
BITBUCKET_CLOUD_URL ,
5
6
BITBUCKET_CLOUD_USERNAME ,
6
7
} from "../env.js"
7
8
8
9
const basic = toBase64 (
9
- BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD ,
10
+ ` ${ BITBUCKET_CLOUD_USERNAME } : ${ BITBUCKET_CLOUD_APP_PASSWORD } ` ,
10
11
)
11
12
12
13
export const client = createBitbucketCloudClient ( {
Original file line number Diff line number Diff line change 1
- import { createBitbucketServerClient } from "../../src/index.js"
1
+ import { createBitbucketServerClient } from "../../src/server/ index.js"
2
2
import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from "../env.js"
3
3
4
4
export const client = createBitbucketServerClient ( {
You can’t perform that action at this time.
0 commit comments