The loader gets run automatically every hour and on push to the
master branches via the GitHub Actions workflow defined in
.github/workflows/loader.yml on the
A history of runs can be accessed under the Actions section of the brigade-project-index repository.
With node v12+ installed:
node run.js --all --commit-to=index/v1 --commit-orgs-to=cfapi/orgs/v1
To avoid hitting GitHub's API rate limits easily, generate a Personal Access Token and provide it via the environment:
export GITHUB_ACTOR="my-username" export GITHUB_TOKEN="my-personal-access-token"
To see all available options:
node run.js --help
Debugging with Visual Studio Code
This branch include configuration under
.vscode/ for running the loader and debugging it interactively.
The "Import projects" launcher will prompt for your GitHub credentials, but won't remember them for you between runs. To make this less annoying:
- Use the restart button while debugging whenever you can, it will re-run the code with whatever changes you've saved without re-prompting for inputs
- Paste your settings into the blank defaults within
.vscode/launch.jsonand don't commit them