Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create notes using HackMD #30

Merged
merged 2 commits into from
Nov 19, 2020
Merged

Conversation

mmarchini
Copy link
Contributor

No description provided.

@mmarchini
Copy link
Contributor Author

Passing CI on my fork: https://github.com/mmarchini/meet/runs/964840886?check_suite_focus=true
Issue generated by test: mmarchini#14

@mmarchini
Copy link
Contributor Author

cc @wesleytodd :)

lib/notes.js Outdated
const resp = await client.repos.getContents({
owner: opts.owner,
repo: opts.repo,
path: `.github/ISSUE_TEMPLATE/${opts.notesTemplate || 'meeting-notes.md'}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this to .github/ right? Since it is technically not an issue template?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say we may want to have our own folder in .github/ - perhaps .github/meet/. But yes, I agree with this.

run.js Outdated
@@ -14,8 +16,10 @@ const defaultTemplate = require('./lib/default-template')
const labels = list(core.getInput('labels'))
const issueTemplate = core.getInput('issueTemplate')
const createWithin = core.getInput('createWithin')
const agendaLabel = core.getInput('agendaLabel')
const agendaLabel = core.getInput('agendaLabel') || 'meeting-agenda'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can set this as a default for the action instead of here, right? The benefit being it would show in the action docs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I see it is set as a default above. Are both necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, this was my first time working on an actual Action (instead of consuming one), so I wanted to be extra safe 😅. It's probably not necessary though.

Copy link
Contributor

@bnb bnb Sep 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, setting it as the default in action.yml would be ideal.

@wesleytodd
Copy link
Member

cc: @pkgjs/meet-collaborators

lib/default-notes-template.js Outdated Show resolved Hide resolved
lib/default-notes-template.js Outdated Show resolved Hide resolved
Copy link
Contributor

@bnb bnb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending comments, huge +1. Thank you for this work, Mary ❤️

@boneskull
Copy link

if I can be of any help getting this to land (or developing it further), please let me know!

  • maybe a template engine like handlebars or liquid would be helpful
  • also interested in figuring out how to tag stuff, as I know HackMD has added some API endpoints we could use
  • can work on adoption by OJSF CPC

@github-actions github-actions bot mentioned this pull request Oct 9, 2020
@github-actions github-actions bot mentioned this pull request Oct 26, 2020
@bnb
Copy link
Contributor

bnb commented Oct 26, 2020

+1 @boneskull

@bnb
Copy link
Contributor

bnb commented Nov 11, 2020

@mmarchini any update on this? ❤️

@mmarchini mmarchini force-pushed the hackmd-meeting-notes branch from b088fdb to 80b87bf Compare November 11, 2020 20:34
@mmarchini
Copy link
Contributor Author

Addressed all inline comments and rebased.

maybe a template engine like handlebars or liquid would be helpful

I think that's already how it works, but if it's not we should do it in a separate PR and include issue templating as well

also interested in figuring out how to tag stuff, as I know HackMD has added some API endpoints we could use

That sounds interesting, let's open an issue to investigate in the future

can work on adoption by OJSF CPC

<3

@mmarchini
Copy link
Contributor Author

Test on my fork: https://github.com/mmarchini/meet/pull/15/checks?check_run_id=1387198907
Issue created: mmarchini#17

Seems like I messed something up and now the issue template is not being used 🤔

@mmarchini mmarchini force-pushed the hackmd-meeting-notes branch from dc97e91 to e04b9cb Compare November 11, 2020 21:55
@mmarchini
Copy link
Contributor Author

Ok, should be working now.

Test on my fork: https://github.com/mmarchini/meet/runs/1387488797?check_suite_focus=true
Issue created: mmarchini#34
Notes created: https://hackmd.io/bAoXtmZ2QRKlFmXDR9LBMQ
(notes aren't showing on the issue because the Action will get the template directly from the default branch, which doesn't have meetingNotes yet, should work once we merge)

date,
agendaLabel: opts.agendaLabel,
agendaIssues: opts.agendaIssues,
labels: opts.labels,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to change with #39

@bnb bnb merged commit 6d25454 into pkgjs:master Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants