forgejo/routers/api/v1/repo
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
..
blob.go
branch.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
collaborators.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
commits.go API method to list all commits of a repository (#6408) 2019-08-26 16:09:10 +02:00
file.go
fork.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue_comment.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue_label.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue_tracked_time.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
key.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
label.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
main_test.go
milestone.go
pull.go
release.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
release_attachment.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo.go Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
repo_test.go
star.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
status.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
subscriber.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
tag.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
tree.go