- Add a Personal Token (API Key) and production API URL in a
.env
file.
# For GitHub Sponsors AND 1kproject scripts
PERSONAL_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
API_URL=https://api.opencollective.com
# For Slack scripts
# Secrets available on: https://api.slack.com/apps/A04249P7C0N/oauth
SLACK_SIGNING_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SLACK_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SLACK_USER_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxx
- Run
npm install
-
Download the CSV file
-
Launch the dry run with:
node github-sponsors/csv-import.js {CSV_FILE}
If you see:
- "Detected a new Collective ...", it's recommended to quickly review it and add it to the
csv-import-mapping.json
file. - "Error finding a matching Collective for GitHub Organization ...", you need to investigate and add an entry in the
csv-import-mapping.json
file.
- Happy with the dry run?
node github-sponsors/csv-import.js {CSV_FILE} --run
To run the scripts, you need to be an admin of https://opencollective.com/ukrainian-families-1k and https://opencollective.com/foundation. Ask someone to invite you beforehand if necessary.
All scripts support the --yubikey
option to use a yubikey instead of TOTP for 2FA.
-
Download the CSV file and name it with a shorter name like
Bulk_07_21.csv
-
Launch the dry run for Expense Creation with:
node 1kproject/create-expenses.js Bulk_07_21.csv
Check any warning before proceeding, if there is a problem remove the entries from the CSV.
- Once happy with the dry run, launch Expense Creation with:
node 1kproject/create-expenses.js Bulk_07_21.csv --run
- Trigger the dry run for Expense Payment with:
node 1kproject/pay-expenses.js
Check that the number of approved Expenses is the expected one and that there is no warning.
- Proceed Expense Payments with, enter your 2FA token when asked.
node 1kproject/pay-expenses.js --run