Skip to content

Commit 5abf3a5

Browse files
bjohansebaswesleytodd
authored andcommitted
add shorthand and update default-template
1 parent 59d310d commit 5abf3a5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

lib/conversions.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const inputs = {
55
title: core.getInput('issueTitle'),
66
agendaLabel: core.getInput('agendaLabel'),
77
invitees: core.getInput('invitees'),
8-
observers: core.getInput('observers')
8+
observers: core.getInput('observers'),
9+
meetingLink: core.getInput('meetingLink')
910
}
1011

1112
// template keys and values that we automagically replace in
@@ -15,13 +16,15 @@ const templates = {
1516
title: '<!-- title -->',
1617
agendaLabel: '<!-- agenda label -->',
1718
invitees: '<!-- invitees -->',
18-
observers: '<!-- observers -->'
19+
observers: '<!-- observers -->',
20+
meetingLink: '<!-- meeting link -->'
1921
},
2022
values: {
2123
title: inputs.issueTitle,
2224
agendaLabel: inputs.agendaLabel,
2325
invitees: inputs.invitees,
24-
observers: inputs.observers
26+
observers: inputs.observers,
27+
meetingLink: inputs.meetingLink
2528
}
2629
}
2730

lib/default-template.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo }) => {
3+
module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink }) => {
44
return `
55
## Date/Time
66
@@ -39,6 +39,6 @@ ${agendaIssues.map((i) => {
3939
4040
### Joining the meeting
4141
42-
* link for participants:
42+
* link for participants: ${meetingLink || ''}
4343
* For those who just want to watch:`
4444
}

0 commit comments

Comments
 (0)