Skip to content

Commit 2ff4b68

Browse files
authored
Merge pull request #180 from ovflowd/feat/updated-and-refactored
2 parents 94fe2a8 + 805b91f commit 2ff4b68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5011
-226
lines changed

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Required: GitHub Token (Needs "repo" permissions)
2+
# GITHUB_TOKEN=your_personal_access_token_or_org_token
3+
4+
# Required: HackMD Configuration
5+
# HACKMD_API_TOKEN=your_hackmd_api_token
6+
# HACKMD_TEAM_NAME=your_hackmd_team_name_optional # Defaults to your own personal space
7+
8+
# Google Calendar API Authentication
9+
# You can get this from the Google Cloud Console
10+
# Create an API Key and restrict it to the Google Calendar API
11+
# GOOGLE_API_KEY=your_google_calendar_api_key_here
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Create Meeting Artifacts
2+
3+
on:
4+
# Run every Monday at 10 AM UTC (adjust as needed)
5+
schedule:
6+
- cron: '0 10 * * 1'
7+
8+
# Allow manual triggering
9+
workflow_dispatch:
10+
inputs:
11+
meeting_group:
12+
description: 'Meeting group to create artifacts for'
13+
required: true
14+
type: choice
15+
options:
16+
- uvwasi
17+
- tsc
18+
- build
19+
- diag
20+
- diag_deepdive
21+
- typescript
22+
- Release
23+
- cross_project_council
24+
- modules
25+
- tooling
26+
- security-wg
27+
- next-10
28+
- package-maintenance
29+
- package_metadata_interop
30+
- ecosystem_report
31+
- sustainability_collab
32+
- standards
33+
- security_collab
34+
- loaders
35+
- web-server-frameworks
36+
37+
jobs:
38+
create-artifacts:
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
47+
with:
48+
node-version-file: '.nvmrc'
49+
cache: 'npm'
50+
51+
- name: Install dependencies
52+
run: npm ci
53+
54+
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
55+
id: app-token
56+
with:
57+
app-id: ${{ secrets.BOT_ID }}
58+
private-key: ${{ secrets.BOT_PRIVATE_KEY}}
59+
60+
- name: Create meeting artifacts
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
HACKMD_API_TOKEN: ${{ secrets.HACKMD_API_TOKEN }}
64+
# TODO: This should be part of the meeting artifact as different meetings
65+
# might use different HackMD teams.
66+
HACKMD_TEAM_NAME: ${{ secrets.HACKMD_TEAM_NAME }}
67+
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
68+
run: node create-node-meeting-artifacts.mjs ${{ github.event.inputs.meeting_group }}
69+
70+
- name: Upload artifacts
71+
if: always()
72+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
73+
with:
74+
name: meeting-artifacts-${{ github.event.inputs.meeting_group || 'tsc' }}
75+
path: |
76+
~/.make-node-meeting/
77+
*.md
78+
retention-days: 7
79+
if-no-files-found: ignore

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Suite
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [22.x, 'latest']
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22+
23+
- name: Setup Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Run linting
33+
run: npm run lint
34+
35+
- name: Run tests
36+
run: npm test
37+
38+
- name: Check format
39+
run: npm run format:check

.gitignore

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Node.js Packages
12
node_modules/
2-
client_secret.json
3-
package-lock.json
3+
4+
# Environment File
5+
.env
6+
7+
# Test artifacts and temporary files
8+
test/fixtures/temp/
9+
test/snapshots/*.snap
10+
*.log
11+
coverage/
12+
13+
# Files created during unit test runs
14+
*.sh
15+
meeting-test/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
templates/

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": true,
6+
"jsxSingleQuote": false,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"arrowParens": "avoid"
11+
}

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Michael Dawson <mdawson@devrus.com>
2+
Claudio Wunder <cwunder@gnome.org>

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Writing good commit logs is important. A commit log should describe what
4040
changed and why. Follow these guidelines when writing one:
4141

4242
1. The first line should be a short description of the change
43-
(e.g. "get-metadata: check if the committer matches the author").
43+
(e.g. "get-metadata: check if the committer matches the author").
4444
2. Keep the second line blank.
4545
3. Wrap all lines at 72 columns.
4646

@@ -90,23 +90,23 @@ in this project.
9090

9191
By making a contribution to this project, I certify that:
9292

93-
* (a) The contribution was created in whole or in part by me and I
93+
- (a) The contribution was created in whole or in part by me and I
9494
have the right to submit it under the open source license
9595
indicated in the file; or
9696

97-
* (b) The contribution is based upon previous work that, to the best
97+
- (b) The contribution is based upon previous work that, to the best
9898
of my knowledge, is covered under an appropriate open source
9999
license and I have the right under that license to submit that
100100
work with modifications, whether created in whole or in part
101101
by me, under the same open source license (unless I am
102102
permitted to submit under a different license), as indicated
103103
in the file; or
104104

105-
* (c) The contribution was provided directly to me by some other
105+
- (c) The contribution was provided directly to me by some other
106106
person who certified (a), (b) or (c) and I have not modified
107107
it.
108108

109-
* (d) I understand and agree that this project and the contribution
109+
- (d) I understand and agree that this project and the contribution
110110
are public and that a record of the contribution (including all
111111
personal information I submit with it, including my sign-off) is
112112
maintained indefinitely and may be redistributed consistent with

LICENSE.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
The MIT License (MIT)
2-
=====================
1+
# The MIT License (MIT)
32

4-
Copyright (c) 2018 create-node-meeting-artifacts authors
5-
-------------------------------------------------------------
3+
## Copyright (c) 2018 create-node-meeting-artifacts authors
64

7-
*contributors listed at <https://github.com/nodejs/create-node-meeting-artifacts/blob/master/AUTHORS>*
5+
_contributors listed at <https://github.com/nodejs/create-node-meeting-artifacts/blob/master/AUTHORS>_
86

97
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
108

0 commit comments

Comments
 (0)