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 4251cb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion run.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const conversions = require('./lib/conversions')
const createWithin = core.getInput('createWithin')

// variables we use for labels
const meetingLabels = core.getInput('meetingLabels')
const agendaLabel = core.getInput('agendaLabel')
let meetingLabels = core.getInput('meetingLabels')
if (meetingLabels) {
meetingLabels = meetingLabels.split(',').map((l) => list.trim())
}

// variables we use for content
const issueTitle = core.getInput('issueTitle')
Expand Down

0 comments on commit 4251cb0

Please sign in to comment.