diff options
author | Unknwon <u@gogs.io> | 2017-06-08 15:53:19 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-08 15:53:19 -0400 |
commit | 09f2cbfb183f5ff3003ed93fb97bd2f9a69c24d7 (patch) | |
tree | deace0ca93e865b56300784de0df1f3bc40d51ae | |
parent | 88791089ed9b8c163f256f953b192488c36a9f88 (diff) |
api/repo: response full API format for search results (#4522)
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | routers/api/v1/repo/repo.go | 5 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 3 insertions, 6 deletions
@@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/pkg/setting" ) -const APP_VER = "0.11.17.0607" +const APP_VER = "0.11.18.0608" func init() { setting.AppVer = APP_VER diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index b4be4247..bb1832ea 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -65,10 +65,7 @@ func Search(c *context.APIContext) { }) return } - results[i] = &api.Repository{ - ID: repos[i].ID, - FullName: path.Join(repos[i].Owner.Name, repos[i].Name), - } + results[i] = repos[i].APIFormat(nil) } c.SetLinkHeader(int(count), setting.API.MaxResponseItems) diff --git a/templates/.VERSION b/templates/.VERSION index 7feeb4bc..d92fefef 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.17.0607
\ No newline at end of file +0.11.18.0608
\ No newline at end of file |