Skip to content

Commit

Permalink
alt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzhang committed Jan 18, 2024
1 parent 803a77e commit 5e3f1a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export async function getCodeowners(
const result = await client.rest.repos.getContent({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
path: filePath
path: filePath,
ref: github.context.sha,

Check failure on line 85 in src/api.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Delete `,`
})
core.debug(`codeowners response is:\n${result.data}`)
// @ts-expect-error false positive
fileContent = atob(result.data.content)
fileContent = Buffer.from(result.data.content, result.data.encoding).toString()

Check failure on line 88 in src/api.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `result.data.content,·result.data.encoding` with `⏎······result.data.content,⏎······result.data.encoding⏎····`
core.debug(`codeowners fileContent is:\n${fileContent}`)
} catch (error: any) {
core.warning(`Could not find pull request #${prNumber}, skipping`)
Expand Down

0 comments on commit 5e3f1a1

Please sign in to comment.