sourcecred/scripts
Dandelion Mané c58315fe4d
Hackily add support for mixed GitHub/Discourse projects (#1378)
For phase one of the CredSperiment, I need a SourceCred instance which combines GitHub and Discourse servers. I'll also need to be able to give it very specific configuration to collapse certain user identities together.

Shortly after launching the CredSperiment, I plan to come back and totally re-write SourceCred's command line interface and site building system, in a way that will throw away most of the existing codebase.

As such, I found it expedient to add rather hacky and untested support for loading combined GitHub/Discourse instances, so I can land the promised features. This PR does so by:

- adding sourcecred gen-project for constructing project.json files
- adding sourcecred load --project for loading a project.json file
- ensuring that load provides the right plugins based on the project that's in scope
- updating build_static_site so that it can use the new --project flag

Test plan:
I have done some end-to-end testing, but the overall commit stack lacks automated testing. This is a deliberate tradeoff: I'm planning to re-write this section of the codebase, and the testing ergonomics are not great, so I'd rather accept some technical debt, especially since I plan to pay it off soon.

See the pull request on GitHub for the individual constituent commits.
2019-09-12 17:35:21 +02:00
..
build_static_site.sh Hackily add support for mixed GitHub/Discourse projects (#1378) 2019-09-12 17:35:21 +02:00
check-gnu-coreutils.sh Add helpful message when missing gnu-coreutils (#1034) 2019-01-05 12:20:07 -08:00
check-stopships.sh Permit STOPSHIPs in Markdown files (#573) 2018-07-31 10:58:29 -07:00
deploy.sh Include full projects on sourcecred.io (#1270) 2019-08-07 20:07:31 +02:00
docker-entrypoint.sh Adding Docker container with instructions for running sourcecred (#1288) 2019-08-23 13:23:35 +02:00
ensure-flow.sh ensure-flow.sh: simplify, removing dep on GNU grep (#602) 2018-08-22 11:44:20 -07:00
update_snapshots.sh update_snapshots: fix Discourse key check (#1360) 2019-09-07 16:27:29 -07:00