pkgjs / meet

Create a meeting issue on a schedule
MIT License
8 stars 6 forks source link

Allow passing in data from action config to EJS #206

Open jonchurch opened 4 days ago

jonchurch commented 4 days ago

We have a template which is exactly the same between two different types of meetings, except for the meeting link.

I want to be able to add in a string to be available to my EJS template at render time.

https://github.com/expressjs/discussions/pull/283

For example, I want to be able to do something like:

     uses: 'pkgjs/meet@v0'
        with:
          issueTitle: '<%= date.toFormat("yyyy-MM-dd") %> Express TC Meeting'
          # ...
          data:
            meetingLink: "https://example.com"

And have data object be passed to the EJS template

jonchurch commented 4 days ago

Another workaround, for our specific case, would be to pass in the Title into the template.

We can check that to differentiate between the two types of meetings inside the ejs template and pick a meeting link that way.

bjohansebas commented 3 days ago

Oops, I hadn't seen this issue. Maybe adding the data option could be a better idea and would be more flexible than adding meetingLink.