Commit Graph

7 Commits (7e1ae380975df0afab3fdc04c7a926181e5daba9)

Author SHA1 Message Date
Lunny Xiao a161c2ca58
Fix zero created time bug on commit api ()
Fix 
6543 59c58553ba
Fix API to return author for author on commits()
6543 290cf75f93
[refactor] Unify the export of user data via API ()
* [refactor] unify how user data is exported via API

* test time via unix timestamp
6543 cbe7f5296e
[API] Add affected files of commits to commit struct ()
* Add files affected by a commit to gitea API -- similar to github

* Add files affected by a commit to gitea API

* Fix stupid error

* Fix other stupid typo

* Generate swagger tmpl

* Comply with convert to git commit refacto

* update swagger docs

* extend test

* format code

* Update integrations/api_repo_git_commits_test.go

* Update modules/convert/git_commit.go

Co-authored-by: Laurent Cahour <laurent.cahour@dont-nod.com>
Co-authored-by: zeripath <art27@cantab.net>
6543 d453533beb
[Refactor] Move APIFormat functions into convert package ()
* USER APIFormat -> ToUser

* Migrate more and mark APIFormat deprecated

* models.Comment APIFormat() -> convert.ToComment

* models.Release APIFormat() -> convert.ToRelease

* models.Attachments APIFormat() -> convert.ToReleaseAttachments

* models.CommitStatus APIFormat() -> convert.ToCommitStatus

* finish migration to convert.ToUser

* Move Test

* Imprufe Test

* fix test

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lucas Queiroz 67a5573310
[] Add Timestamp to Tag list API ()
* Add Timestamp to Tag list API

* Add unit test for ToCommitMeta

* Rename timestamp to created

* Reformat files
6543 1418288734
Refactor: move Commit To APIFormat Code & Lot of StopWatch related things ()
* move GitCommit to APIFormat convertion into convert package

* rename Commit convert functions

* move stopwatch to api convertion into convert package & rm unused code & extend test

* fix compare time

* Gitea not Gogs ;)