Skip to content

Commit

Permalink
iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
jean9696 committed Dec 26, 2023
1 parent 54ab9de commit a081a73
Show file tree
Hide file tree
Showing 2 changed files with 3 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.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function run(): Promise<void> {
...github.context.repo,
base: latestRelease.data.target_commitish,
head: mainBranch,
state: 'closed'
state: 'closed',
})
console.log(`${pullRequests.data.length} found`)

Expand All @@ -31,7 +31,7 @@ export async function run(): Promise<void> {
})
const linearComment = comments.data.find(c => {
console.log(
`Comment by ${c.performed_via_github_app ?? c.user?.name}`
`Comment by ${c.performed_via_github_app?.name ?? c.user?.name}`
)
return c.performed_via_github_app?.name === 'linear'
})
Expand Down

0 comments on commit a081a73

Please sign in to comment.