mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Merge pull request #884 from skx/master
Updated to fix truncated name in JSON: watchers_coun
This commit is contained in:
@@ -15,7 +15,7 @@ case class ApiRepository(
|
|||||||
default_branch: String,
|
default_branch: String,
|
||||||
owner: ApiUser) {
|
owner: ApiUser) {
|
||||||
val forks_count = forks
|
val forks_count = forks
|
||||||
val watchers_coun = watchers
|
val watchers_count = watchers
|
||||||
val url = ApiPath(s"/api/v3/repos/${full_name}")
|
val url = ApiPath(s"/api/v3/repos/${full_name}")
|
||||||
val http_url = ApiPath(s"/git/${full_name}.git")
|
val http_url = ApiPath(s"/git/${full_name}.git")
|
||||||
val clone_url = ApiPath(s"/git/${full_name}.git")
|
val clone_url = ApiPath(s"/git/${full_name}.git")
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class JsonFormatSpec extends Specification {
|
|||||||
"default_branch" : "master",
|
"default_branch" : "master",
|
||||||
"owner" : $apiUserJson,
|
"owner" : $apiUserJson,
|
||||||
"forks_count" : 0,
|
"forks_count" : 0,
|
||||||
"watchers_coun" : 0,
|
"watchers_count" : 0,
|
||||||
"url" : "${context.baseUrl}/api/v3/repos/octocat/Hello-World",
|
"url" : "${context.baseUrl}/api/v3/repos/octocat/Hello-World",
|
||||||
"http_url" : "${context.baseUrl}/git/octocat/Hello-World.git",
|
"http_url" : "${context.baseUrl}/git/octocat/Hello-World.git",
|
||||||
"clone_url" : "${context.baseUrl}/git/octocat/Hello-World.git",
|
"clone_url" : "${context.baseUrl}/git/octocat/Hello-World.git",
|
||||||
|
|||||||
Reference in New Issue
Block a user