Skip to content

Commit

Permalink
Make PROJECT_OWNER optional (defaults to "w3c") as documented
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Apr 25, 2024
1 parent 16cd08a commit 015c8bd
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tools/add-minutes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { todoStrings } from './lib/todostrings.mjs';


async function main(number) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion tools/create-recording-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function createRecordingPage(recording, recordingFolder) {

async function main() {
// First, retrieve known information about the project
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion tools/init-room-zoom.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getEnvKey } from './lib/envkeys.mjs';
import { fetchProject } from './lib/project.mjs';

async function run() {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const project = await fetchProject(PROJECT_OWNER, PROJECT_NUMBER);
if (!project) {
Expand Down
2 changes: 1 addition & 1 deletion tools/list-chairs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { authenticate } from './lib/calendar.mjs';
import puppeteer from 'puppeteer';

async function main() {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
const W3C_LOGIN = await getEnvKey('W3C_LOGIN');
Expand Down
2 changes: 1 addition & 1 deletion tools/minutes-to-w3c.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { validateSession } from './lib/validate.mjs';
import puppeteer from 'puppeteer';

async function main(number) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
console.log();
console.log(`Retrieve project ${PROJECT_OWNER}/${PROJECT_NUMBER}...`);
Expand Down
2 changes: 1 addition & 1 deletion tools/setup-irc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function waitForIRCMessage(what) {
* Main function
*/
async function main({ number, onlyCommands, dismissBots } = {}) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion tools/suggest-grid.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function makeseed() {
}

async function main({ preserve, except, changesFile, apply, seed }) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.warn();
Expand Down
2 changes: 1 addition & 1 deletion tools/update-calendar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { validateSession } from './lib/validate.mjs';
async function main(sessionNumber, status, options) {
options = options ?? {};
console.log(`Retrieve environment variables...`);
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
console.log(`- PROJECT_OWNER: ${PROJECT_OWNER}`);
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
console.log(`- PROJECT_NUMBER: ${PROJECT_NUMBER}`);
Expand Down
2 changes: 1 addition & 1 deletion tools/upload-grid.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function readconfig(filename) {
}

async function main({ filename, apply }) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
console.warn();
console.warn(`Retrieve project ${PROJECT_OWNER}/${PROJECT_NUMBER}...`);
Expand Down
2 changes: 1 addition & 1 deletion tools/validate-grid.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const schedulingErrors = [

async function main(validation) {
// First, retrieve known information about the project and the session
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion tools/validate-session.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getProjectPlenaryShortname(project) {

async function main(sessionNumber, changesFile) {
// First, retrieve known information about the project and the session
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion tools/view-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { fetchProject, convertProjectToJSON } from './lib/project.mjs';
import { convertProjectToHTML } from './lib/project2html.mjs';

async function main(format) {
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER');
const PROJECT_OWNER = await getEnvKey('PROJECT_OWNER', 'w3c');
const PROJECT_NUMBER = await getEnvKey('PROJECT_NUMBER');
const CHAIR_W3CID = await getEnvKey('CHAIR_W3CID', {}, true);
console.warn();
Expand Down

0 comments on commit 015c8bd

Please sign in to comment.