Skip to content

Import data from Sched and export a JSON file in OpenFeedbacks format

License

Notifications You must be signed in to change notification settings

snowcamp/sched2openfeedback

Repository files navigation

sched2openfeedback

Import data from Sched and export a JSON file in OpenFeedback format.

Snowcamp team guide

How to prepare for a new edition:

  1. Set or update Actions secrets (if needed)
  • SCHED_KEY_RO: read-only key for sched event. Can be found at https://snowcamp.sched.com/editor/exports/api
  • GITHUB_TOKEN: a GitHub PAT with repository scope from someone with access to this repo
  1. Update SCHED_URL and BRANCH in export.yml

  2. Go to export action and select Run workflow to update the data

  3. You can now use the URL https://raw.githubusercontent.com/snowcamp/sched2openfeedback/<BRANCH>/openfeedback.json to import data in OpenFeedback.

Development

If the script needs to be updated, you can run it locally. Clone the repo, then:

npm install
npm run build
npm start

A file openfeedback.json will be created, to be imported in OpenFeedback.

You need to specify these 2 environment variables, either in your shell or in a .env file at the root of the project:

SCHED_URL=https://<you_event>.sched.com/
SCHED_RO_KEY=<your_sched_readonly_key>

You can also use the npm run build:watch command to automatically rebuild the script when a file is changed.

Sched format update

If the Sched format was updated you can dump direction the raw data from Sched by running:

npm run start:sched

It will create a file sched.json with the raw data.

About

Import data from Sched and export a JSON file in OpenFeedbacks format

Resources

License

Stars

Watchers

Forks

Packages

No packages published