aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-06-08 15:53:19 -0400
committerUnknwon <u@gogs.io>2017-06-08 15:53:19 -0400
commit09f2cbfb183f5ff3003ed93fb97bd2f9a69c24d7 (patch)
treedeace0ca93e865b56300784de0df1f3bc40d51ae
parent88791089ed9b8c163f256f953b192488c36a9f88 (diff)
api/repo: response full API format for search results (#4522)
-rw-r--r--gogs.go2
-rw-r--r--routers/api/v1/repo/repo.go5
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 6 deletions
diff --git a/gogs.go b/gogs.go
index c03661a4..7cf99ee6 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 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