Instead of pounding on the api or relying just on unit tests for testing, create a path for writing out data from just the github json. In case of any pipeline errors, we can just build data dumps from the json output.
Add logic to cli.py to:
[x] Write out the github json response to a .json file
[x] Set a read_from_file flag and a logical path for if it's set/not set
[x] Call github_api.aggregate_events to build the events data the writer expects
[x] Call CSV writer with the events data from ^^
[x] Write any unit tests for new behavior (but I think we're just using existing code paths)
Instead of pounding on the api or relying just on unit tests for testing, create a path for writing out data from just the github json. In case of any pipeline errors, we can just build data dumps from the json output.
Add logic to cli.py to: