Skip to content

Commit

Permalink
add shorthand and update default-template
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Nov 22, 2024
1 parent 1433ba0 commit beab348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions lib/conversions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const inputs = {
title: core.getInput('issueTitle'),
agendaLabel: core.getInput('agendaLabel'),
invitees: core.getInput('invitees'),
observers: core.getInput('observers')
observers: core.getInput('observers'),
meetingLink: core.getInput('meetingLink')
}

// template keys and values that we automagically replace in
Expand All @@ -15,13 +16,15 @@ const templates = {
title: '<!-- title -->',
agendaLabel: '<!-- agenda label -->',
invitees: '<!-- invitees -->',
observers: '<!-- observers -->'
observers: '<!-- observers -->',
meetingLink: '<!-- meeting link -->'
},
values: {
title: inputs.issueTitle,
agendaLabel: inputs.agendaLabel,
invitees: inputs.invitees,
observers: inputs.observers
observers: inputs.observers,
meetingLink: inputs.meetingLink
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/default-template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo }) => {
module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink }) => {
return `
## Date/Time
Expand Down Expand Up @@ -39,6 +39,6 @@ ${agendaIssues.map((i) => {
### Joining the meeting
* link for participants:
* link for participants: ${meetingLink || ''}
* For those who just want to watch:`
}

0 comments on commit beab348

Please sign in to comment.