diff --git a/.github/ISSUE_TEMPLATE/meeting-agenda.md b/.github/ISSUE_TEMPLATE/meeting-agenda.md index 8608182..c2ef7c9 100644 --- a/.github/ISSUE_TEMPLATE/meeting-agenda.md +++ b/.github/ISSUE_TEMPLATE/meeting-agenda.md @@ -1,8 +1,4 @@ -## Date/Time - -| Timezone | Date/Time | -|----------|-----------| -<%= [ +<% const timezones = [ 'America/Los_Angeles', 'America/Denver', 'America/Chicago', @@ -14,12 +10,31 @@ 'Asia/Shanghai', 'Asia/Tokyo', 'Australia/Sydney' -].map((zone) => { - return `| ${zone} | ${date.setZone(zone).toFormat('EEE dd-MMM-yyyy HH:mm (hh:mm a)')} |` +]; %> + +## Date/Time + +| Timezone | Date/Time | +|----------|-----------| +<%= timezones.map((zone) => { + const zonedDate = date.toZonedDateTimeISO(zone) + const formatter = new Intl.DateTimeFormat('en-US', { + weekday: 'short', + month: 'short', + day: '2-digit', + year: 'numeric', + hour: '2-digit', + minute: '2-digit', + hour12: true, + timeZone: zone + }) + const formattedDate = formatter.format(new Date(zonedDate.epochMilliseconds)) + return `| ${zone} | ${formattedDate} |` }).join('\n') %> Or in your local time: -* https://www.timeanddate.com/worldclock/?iso=<%= date.toFormat("yyyy-MM-dd'T'HH:mm:ss") %> + +* https://www.timeanddate.com/worldclock/fixedtime.html?msg=<%= encodeURIComponent(title) %>&iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString().slice(0, 16).replace(/[-:]/g, '') %>&p1=1440&ah=1 ## Agenda @@ -31,7 +46,7 @@ Extracted from **<%= agendaLabel %>** labelled issues and pull requests from **< ## Invited -- Webpack TSC (@webpack/tsc) +* Webpack TSC (@webpack/tsc) ### Observers/Guests @@ -46,6 +61,6 @@ This meeting is open for anyone who wants to attend. Reminder to follow our [Cod Please use the following emoji reactions in this post to indicate your availability. -- 👍 - Attending -- 👎 - Not attending -- 😕 - Not sure yet +* 👍 - Attending +* 👎 - Not attending +* 😕 - Not sure yet diff --git a/.github/workflows/generate-meeting-agendas.yml b/.github/workflows/generate-meeting-agendas.yml index bece1a2..558d750 100644 --- a/.github/workflows/generate-meeting-agendas.yml +++ b/.github/workflows/generate-meeting-agendas.yml @@ -2,9 +2,9 @@ name: Generate TSC Meeting Agenda on: pull_request: - push: - branches: - - main + paths: + - '.github/workflows/generate-meeting-agendas.yml' + - '.github/ISSUE_TEMPLATE/meeting-agenda.md' schedule: - cron: '0 0 * * *' @@ -18,13 +18,13 @@ jobs: steps: - name: Webpack TSC Meeting Agenda - uses: 'pkgjs/meet@v0' + uses: 'pkgjs/meet@v1' with: - issueTitle: 'TSC Meeting <%= date.toFormat("dd-MMMM-yyyy") %>' + issueTitle: 'TSC Meeting <%= date.toZonedDateTimeISO("UTC").toPlainDate().toString() %>' token: ${{ secrets.GITHUB_TOKEN }} orgs: webpack,webpack-contrib agendaLabel: 'tsc-agenda' meetingLabels: 'meeting' - schedules: '2025-05-05T16:00:00.0Z/P2W' + schedules: '2025-05-05T11:00:00.0[America/Chicago]/P2W' createWithin: 'P7D' issueTemplate: 'meeting-agenda.md'