Skip to content

Commit

Permalink
fix n bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzhang committed Jan 18, 2024
1 parent fdd6bac commit c98dcc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export const getInputs = () => ({
})

const flip = (data: Map<any, any>) =>
Object.fromEntries(Object.entries(data).map(([key, value]) => [value, key]))
new Map(
Object.fromEntries(Object.entries(data).map(([key, value]) => [value, key]))
)

async function labeler() {
const { token, filePath, prNumber, labelsToOwner } = getInputs()
Expand All @@ -54,7 +56,7 @@ async function labeler() {
return
}

const labelMap = flip(JSON.parse(labelsToOwner))
const labelMap: Map<any, any> = flip(JSON.parse(labelsToOwner))
const preexistingLabels = pullRequest.data.labels.map(
(l: { name: string }) => l.name
)
Expand Down

0 comments on commit c98dcc6

Please sign in to comment.