Skip to content

Commit

Permalink
fix: added log for exisitng meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Mar 2, 2024
1 parent 82949a0 commit b5ce316
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/meetings.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const shouldCreateNextMeetingIssue = module.exports.shouldCreateNextMeetingIssue
return false
}

console.log(`Checking for existing meeting ${opts.owner}/${opts.repo}#${opts.meetingLabels}`)
const meetings = await issues.getMeetingIssues(client, {
owner: opts.owner,
repo: opts.repo,
Expand All @@ -58,8 +59,11 @@ const shouldCreateNextMeetingIssue = module.exports.shouldCreateNextMeetingIssue
return i.title === nextIssueTitle
})
if (!shouldCreate) {
console.log(`Found existing meeting issue: #${shouldCreate.id}`)
return false
}
console.log('No existing meeting issues found')
console.log(meetings)

// Load issues for agenda
return issue
Expand Down

0 comments on commit b5ce316

Please sign in to comment.