Skip to content

Commit

Permalink
fixup! feat: create notes using HackMD
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchini committed Nov 11, 2020
1 parent 001eba7 commit b088fdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions lib/default-notes-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module.exports = ({ agendaIssues, agendaLabel, owner, repo, issue }) => {
*
## Agenda
## Announcements
## Agenda
*Extracted from **${agendaLabel}** labelled issues and pull requests from the **${owner} org** prior to the meeting.
${agendaIssues.map((i) => {
Expand All @@ -25,10 +25,5 @@ ${agendaIssues.map((i) => {
## Q&A, Other
## Upcoming Meetings
* **Node.js Foundation Calendar**: https://nodejs.org/calendar
Click \`+GoogleCalendar\` at the bottom right to add to your own Google calendar.
`
}
2 changes: 1 addition & 1 deletion lib/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function getNotesTemplate (client, opts) {
const resp = await client.repos.getContents({
owner: opts.owner,
repo: opts.repo,
path: `.github/ISSUE_TEMPLATE/${opts.notesTemplate || 'meeting-notes.md'}`
path: `.github/meet/${opts.notesTemplate || 'meeting-notes.md'}`
})
if (resp.statusCode === 404) {
return false
Expand Down
2 changes: 1 addition & 1 deletion run.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const defaultNotesTemplate = require('./lib/default-notes-template')
const labels = list(core.getInput('labels'))
const issueTemplate = core.getInput('issueTemplate')
const createWithin = core.getInput('createWithin')
const agendaLabel = core.getInput('agendaLabel') || 'meeting-agenda'
const agendaLabel = core.getInput('agendaLabel')
const issueTitle = core.getInput('issueTitle')
const createNotes = core.getInput('createNotes')
const notesUserTemplate = core.getInput('notesTemplate')
Expand Down

0 comments on commit b088fdb

Please sign in to comment.