Skip to content

Commit

Permalink
remove error
Browse files Browse the repository at this point in the history
  • Loading branch information
jean9696 committed Dec 26, 2023
1 parent 31b8039 commit ba2efa5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export async function run(): Promise<void> {
const mainBranch: string = core.getInput('mainBranch') ?? 'dev'
const token: string = core.getInput('token')

console.log('hey')
const octokit = github.getOctokit(token)
const latestRelease = await octokit.rest.repos.getLatestRelease({
...github.context.repo
Expand All @@ -17,12 +16,12 @@ export async function run(): Promise<void> {
base: latestRelease.data.target_commitish,
head: mainBranch
})
core.debug(`${pullRequests} found`)
console.log(`${pullRequests} found`)

const linearTickets = await Promise.all(
pullRequests.data
.map(async pr => {
core.debug(`${pr.title} found`)
console.log(`${pr.title} found`)
const comments = await octokit.rest.issues.listComments({
...github.context.repo,
issue_number: pr.number
Expand All @@ -37,7 +36,7 @@ export async function run(): Promise<void> {
.filter(Boolean)
)

core.debug(`Tickets found ${linearTickets.join()}`)
console.log(`Tickets found ${linearTickets.join()}`)
} catch (error) {
// Fail the workflow run if an error occurs
if (error instanceof Error) core.setFailed(error.message)
Expand Down

0 comments on commit ba2efa5

Please sign in to comment.