diff --git a/gogs.go b/gogs.go index c03661a4e..7cf99ee67 100644 --- a/gogs.go +++ b/gogs.go @@ -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 b4be42471..bb1832ea5 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 7feeb4bcc..d92fefef3 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