Skip to content

Commit de8e591

Browse files
authored
Drop dependency on GitHub project (#227)
The logic had already been partly re-written to rely on GitHub variables instead of on the presence of a GitHub Project. This update further adjusts the logic to use the variables throughout. As a result, a GitHub project no longer needs to be created when a new event gets created, only a repository is. A new "Create repository" menu item got added to the "Advanced menu" of the Google spreadsheet. It takes care of what used to be done by the `create` CLI command (which no longer exists) and creates and initializes a GitHub repository for the event in particular. The menu item does not set GitHub secrets though (`GRAPHQL_TOKEN` and `W3C_PASSWORD`). They have to be set manually after creation (along with permissions for tpac-breakouts-bot).
1 parent e78e98c commit de8e591

File tree

79 files changed

+1184
-2976
lines changed

Some content is hidden

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

79 files changed

+1184
-2976
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config.json
22
node_modules
33
tools/appscript/bundle.js
4+
files/bundle.mjs
45
.clasp.json

files/workflows/suggest-grid.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ jobs:
4141
with:
4242
ref: main
4343

44+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
45+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
4446
- name: Install dependencies
45-
run: npm ci
47+
run: npm install
4648

4749
- name: Create directory to store result
4850
run: mkdir .schedule

files/workflows/sync-spreadsheet.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

files/workflows/update-calendar.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ jobs:
4040
with:
4141
ref: main
4242

43+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
44+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
4345
- name: Install dependencies
44-
run: npm ci
46+
run: npm install
4547

4648
- name: Convert session issues to calendar entries.
4749
run: npx tpac-breakouts sync-calendar ${{ inputs.sessionNumber }} --status ${{ inputs.calendarstatus }}

files/workflows/validate-grid.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
2727
with:
2828
ref: main
2929

30+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
31+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
3032
- name: Install dependencies
31-
run: npm ci
33+
run: npm install
3234

3335
- name: Validate grid and update project fields
3436
run: npx tpac-breakouts validate all --what ${{ inputs.validation }}

files/workflows/validate-session-manual.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
with:
2424
ref: main
2525

26+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
27+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
2628
- name: Install dependencies
27-
run: npm ci
29+
run: npm install
2830

2931
- name: Validate session and update project fields
3032
run: npx tpac-breakouts validate ${{ inputs.sessionNumber }} --what everything

files/workflows/validate-session.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ jobs:
3838
with:
3939
ref: main
4040

41+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
42+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
4143
- name: Install dependencies
42-
run: npm ci
44+
run: npm install
4345

4446
- name: Add issue to TPAC breakout session project
4547
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }}

files/workflows/view-event.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
with:
1919
ref: main
2020

21+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
22+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
2123
- name: Install dependencies
22-
run: npm ci
24+
run: npm install
2325

2426
- name: Create directory to store result
2527
run: mkdir .schedule

files/workflows/view-registrants.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ jobs:
3131
with:
3232
ref: main
3333

34+
# Note: no "package-lock.json" and no "npm ci" on purpose to retrieve
35+
# latest version of w3c/tpac-breakouts tools (which are unversioned)
3436
- name: Install dependencies
35-
run: npm ci
37+
run: npm install
3638

3739
- name: Create directory to store result
3840
run: mkdir .registrants

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,17 @@
2727
"tpac-breakouts": "./tools/cli.mjs",
2828
"add-minutes": "./tools/add-minutes.mjs",
2929
"create-recording-pages": "./tools/create-recording-pages.mjs",
30-
"init-repo-labels": "./tools/init-repo-labels.mjs",
31-
"init-room-zoom": "./tools/init-room-zoom.mjs",
3230
"list-chairs": "./tools/list-chairs.mjs",
3331
"minutes-to-w3c": "./tools/minutes-to-w3c.mjs",
3432
"setup-irc": "./tools/setup-irc.mjs",
3533
"truncate-recording": "./tools/truncate-recording.mjs"
3634
},
3735
"scripts": {
38-
"test": "mocha",
36+
"prepare": "node tools/bundle-files.mjs",
37+
"test": "node tools/bundle-files.mjs && mocha",
3938
"appscript-pull": "clasp pull",
4039
"appscript-push": "clasp push",
41-
"appscript-bundle": "rollup tools/appscript/main.mjs --file tools/appscript/bundle.js --no-treeshake --external ../../test/stubs.mjs",
40+
"appscript-bundle": "node tools/bundle-files.mjs && rollup tools/appscript/main.mjs --file tools/appscript/bundle.js --no-treeshake --external ../../test/stubs.mjs",
4241
"appscript": "npm run appscript-bundle && npm run appscript-push"
4342
},
4443
"engines": {

0 commit comments

Comments
 (0)