File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 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
1818### Cloud
1919
2020``` ts
21- import { createBitbucketCloudClient , toBase64 } from " @coderabbitai/bitbucket"
21+ import { createBitbucketCloudClient } from " @coderabbitai/bitbucket/cloud"
22+ import { toBase64 } from " @coderabbitai/bitbucket"
2223import {
2324 BITBUCKET_CLOUD_APP_PASSWORD ,
2425 BITBUCKET_CLOUD_URL ,
@@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
3839### Server
3940
4041``` ts
41- import { createBitbucketServerClient } from " @coderabbitai/bitbucket"
42+ import { createBitbucketServerClient } from " @coderabbitai/bitbucket/server "
4243import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from " ./env.js"
4344
4445const 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"
23import {
34 BITBUCKET_CLOUD_APP_PASSWORD ,
45 BITBUCKET_CLOUD_URL ,
56 BITBUCKET_CLOUD_USERNAME ,
67} from "../env.js"
78
89const basic = toBase64 (
9- BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD ,
10+ ` ${ BITBUCKET_CLOUD_USERNAME } : ${ BITBUCKET_CLOUD_APP_PASSWORD } ` ,
1011)
1112
1213export 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"
22import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from "../env.js"
33
44export const client = createBitbucketServerClient ( {
You can’t perform that action at this time.
0 commit comments