Improve webhook payload compatibility for discord. close #1888

This commit is contained in:
KOUNOIKE Yuusuke
2018-04-15 15:13:10 +09:00
parent 35655f33c7
commit 6e31f19e9b
5 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class JsonFormatSpec extends FunSuite {
"email":"octocat@example.com",
"type":"User",
"site_admin":false,
"id": 0,
"created_at":"2011-04-14T16:00:49Z",
"url":"http://gitbucket.exmple.com/api/v3/users/octocat",
"html_url":"http://gitbucket.exmple.com/octocat",
@@ -50,6 +51,7 @@ class JsonFormatSpec extends FunSuite {
"name" : "Hello-World",
"full_name" : "octocat/Hello-World",
"description" : "This your first repo!",
"id": 0,
"watchers" : 0,
"forks" : 0,
"private" : false,
@@ -228,6 +230,7 @@ class JsonFormatSpec extends FunSuite {
"title": "Found a bug",
"body": "I'm having a problem with this.",
"user": $apiUserJson,
"id": 0,
"labels": [$apiLabelJson],
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
"html_url": "${context.baseUrl}/octocat/Hello-World/issues/1347",
@@ -251,6 +254,7 @@ class JsonFormatSpec extends FunSuite {
"title": "Found a bug",
"body": "I'm having a problem with this.",
"user": $apiUserJson,
"id": 0,
"labels": [$apiLabelJson],
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
@@ -285,6 +289,7 @@ class JsonFormatSpec extends FunSuite {
val apiPullRequestJson = s"""{
"number": 1347,
"state" : "open",
"id": 0,
"updated_at": "2011-04-14T16:00:49Z",
"created_at": "2011-04-14T16:00:49Z",
// "closed_at": "2011-04-14T16:00:49Z",