Commit Graph
2 Commits
Author SHA1 Message Date
Mike Schwörer 042089fbaf API method to list all commits of a repository (#6408)
* Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits)

Signed-off-by: Mike Schwörer <[email protected]>

* Fixed failing drone build

Signed-off-by: Mike Schwörer <[email protected]>

* Implemented requested changes (PR reviews)

Signed-off-by: Mike Schwörer <[email protected]>

* gofmt

Signed-off-by: Mike Schwörer <[email protected]>

* Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits"

* Removed unnecessary line

* better error message when git repo is empty

* make generate-swagger

* fixed removed return

* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <[email protected]>

* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <[email protected]>

* go fmt

* Refactored common code into ToCommit()

* made toCommit not exported

* added check for userCache == nil
2019-08-26 16:09:10 +02:00
Lunny Xiao 34eee25bd4 Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor
2019-05-11 18:21:34 +08:00