holmari / gerritstats

Tool for creating statistics from a Gerrit repository
MIT License
193 stars 54 forks source link

Extend GerritDownloader for REST API via https #58

Closed chrisinmtown closed 4 years ago

chrisinmtown commented 4 years ago

Add command-line option -c for command-line tool; ssh, curl, wget. Add rest package with REST version of downloader including the API query and output formats. Refactor the ssh package such as creation of several abstract classes to allow reuse in the rest package and reduce repeated code.

chrisinmtown commented 4 years ago

@holmari please consider this revision and I hope you will comment on the code. But don't merge it :) at least not yet. The REST API yields JSON in a different format from the ssh/query interface, so the files downloaded by this change can't be analyzed! I'm working on that next.

chrisinmtown commented 4 years ago

The REST API is giving me trouble, I'll come back with an updated PR if/when I figure it out.