From 58be480143e7a7f5cb9064981e13640bb93b731b Mon Sep 17 00:00:00 2001 From: Nathan Gendron Date: Wed, 18 Sep 2024 14:59:34 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Docs=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/cloud/client.ts | 2 +- src/server/client.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 03ecd58..c03d575 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ const basic = toBase64( BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD, ) -export const client = createBitbucketCloudClient({ +const client = createBitbucketCloudClient({ baseUrl: BITBUCKET_CLOUD_URL.toString(), headers: { Accept: "application/json", Authorization: `Basic ${basic}` }, }) @@ -41,7 +41,7 @@ export const client = createBitbucketCloudClient({ import { createBitbucketServerClient } from "@coderabbitai/bitbucket" import { BITBUCKET_SERVER_TOKEN, BITBUCKET_SERVER_URL } from "./env.js" -export const server = createBitbucketServerClient({ +const server = createBitbucketServerClient({ baseUrl: BITBUCKET_SERVER_URL, headers: { Accept: "application/json", diff --git a/src/cloud/client.ts b/src/cloud/client.ts index 60763da..2074729 100644 --- a/src/cloud/client.ts +++ b/src/cloud/client.ts @@ -6,7 +6,7 @@ import type { paths } from "./openapi/index.js" * Creates an `openapi-fetch` client using {@link createClient}. * * @example - * export client = createBitbucketCloudClient({ + * const client = createBitbucketCloudClient({ * baseUrl: "https://api.bitbucket.org/2.0", * headers: { Accept: "application/json", Authorization: `Basic ${basic}` }, * }) diff --git a/src/server/client.ts b/src/server/client.ts index ba4d305..5c6c6d5 100644 --- a/src/server/client.ts +++ b/src/server/client.ts @@ -6,7 +6,7 @@ import type { paths } from "./openapi/index.js" * Creates an `openapi-fetch` client using {@link createClient}. * * @example - * export const client = createBitbucketServerClient({ + * const client = createBitbucketServerClient({ * baseUrl: "https://example.org/rest", * headers: { * Accept: "application/json",