forgejo-federation/routers/api/v1
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 <mailport@mikescher.de>

* Fixed failing drone build

Signed-off-by: Mike Schwörer <mailport@mikescher.de>

* Implemented requested changes (PR reviews)

Signed-off-by: Mike Schwörer <mailport@mikescher.de>

* gofmt

Signed-off-by: Mike Schwörer <mailport@mikescher.de>

* 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 <lauris@nix.lv>

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

Co-Authored-By: Lauris BH <lauris@nix.lv>

* go fmt

* Refactored common code into ToCommit()

* made toCommit not exported

* added check for userCache == nil
2019-08-26 16:09:10 +02:00
..
admin Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
convert Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
misc Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
org Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo API method to list all commits of a repository (#6408) 2019-08-26 16:09:10 +02:00
swagger API method to list all commits of a repository (#6408) 2019-08-26 16:09:10 +02:00
user Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
utils Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
api.go API method to list all commits of a repository (#6408) 2019-08-26 16:09:10 +02:00