Add types for branches, commits, and commit metadata

Review Request #10009 — Created June 8, 2018 and submitted

brennie
rb-gateway
master
10007
9409
2d6e0bf...
rb-gateway

This patch updates our internals to return objects from Repository
methods instead of just returning raw responses. This moves the
serialization code into the API endpoints, instead of having it in every
Repository implementation. This also allows our tests to compare these
structures directly, instead of re-parsing the JSON into a private
struct.

Additionally, the Git unit tests have been updated to use
assert.Equal(expected, actual), which is what the library expects.

Ran go fmt ./....
Ran go test ./....

brennie
brennie
brennie
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (0df2f27)
Loading...