Add types for branches, commits, and commit metadata
Review Request #10009 — Created June 8, 2018 and submitted
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 ./...
.
Rango test ./...
.
- Description:
-
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 thesestructures 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.
- Change Summary:
-
Minor cleanups
- Commit:
-
18e75e527fe0198d453fc72c7759c8e7960dcb8cabdf1e8fdb88b3a9fc867498c094db7303be7f7b
Checks run (2 succeeded)
- Change Summary:
-
Rebase
- Depends On:
-
- Commit:
abdf1e8fdb88b3a9fc867498c094db7303be7f7b2d6e0bf0a24aafe6c7d7e5e4a6d788b84c8c4ff5- Diff:
Revision 3 (+126 -178)
Checks run (2 succeeded)
flake8 passed.JSHint passed.