Skip to content

Commit

Permalink
fix: Missing (unnecessary) github token causing error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Dec 3, 2023
1 parent dde7be8 commit 882b8b1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/sum-pr/src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ import {openaiSdkDef} from '@opensdks/sdk-openai'

type Commit = githubTypes['components']['schemas']['commit']

const github = initSDK(githubSdkDef, {
headers: {
Authorization: `Bearer ${process.env['GITHUB_TOKEN']}`,
'X-GitHub-Api-Version': '2022-11-28',
},
})
// github token is not needed given we are hitting a public API
const github = initSDK(githubSdkDef, {})

export async function fetchCommits(prLink: string) {
const prUrl = new URL(prLink)
Expand Down

2 comments on commit 882b8b1

@vercel
Copy link

@vercel vercel bot commented on 882b8b1 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

opensdks – ./website

opensdks-git-main-venice.vercel.app
opensdks-venice.vercel.app
opensdks.vercel.app
opensdks.org

@vercel
Copy link

@vercel vercel bot commented on 882b8b1 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

opensdks-example-summarize-pr – ./examples/sum-pr

opensdks-example-summarize-pr.vercel.app
opensdks-example-summarize-pr-venice.vercel.app
opensdks-example-summarize-pr-git-main-venice.vercel.app

Please sign in to comment.