Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
📝 Add entrypoint in README.md
  • Loading branch information
NatoBoram committed Oct 1, 2024
commit 9a2ba052af82a8254227a5cedffd4e6692e9fa69
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pnpm i @coderabbitai/bitbucket
### Cloud

```ts
import { createBitbucketCloudClient, toBase64 } from "@coderabbitai/bitbucket"
import { createBitbucketCloudClient } from "@coderabbitai/bitbucket/cloud"
import { toBase64 } from "@coderabbitai/bitbucket"
import {
BITBUCKET_CLOUD_APP_PASSWORD,
BITBUCKET_CLOUD_URL,
Expand All @@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
### Server

```ts
import { createBitbucketServerClient } from "@coderabbitai/bitbucket"
import { createBitbucketServerClient } from "@coderabbitai/bitbucket/server"
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "./env.js"

const server = createBitbucketServerClient({
Expand Down
5 changes: 3 additions & 2 deletions tests/cloud/client.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { createBitbucketCloudClient, toBase64 } from "../../src/index.js"
import { createBitbucketCloudClient } from "../../src/cloud/index.js"
import { toBase64 } from "../../src/index.js"
import {
BITBUCKET_CLOUD_APP_PASSWORD,
BITBUCKET_CLOUD_URL,
BITBUCKET_CLOUD_USERNAME,
} from "../env.js"

const basic = toBase64(
BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD,
`${BITBUCKET_CLOUD_USERNAME}:${BITBUCKET_CLOUD_APP_PASSWORD}`,
)

export const client = createBitbucketCloudClient({
Expand Down
2 changes: 1 addition & 1 deletion tests/server/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createBitbucketServerClient } from "../../src/index.js"
import { createBitbucketServerClient } from "../../src/server/index.js"
import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "../env.js"

export const client = createBitbucketServerClient({
Expand Down