mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-23 00:21:28 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
parent
aec0d1a257
commit
71a5202c03
1 changed files with 14 additions and 3 deletions
|
|
@ -82,8 +82,16 @@ describe("gitea event parsing", () => {
|
||||||
{ "x-gitea-event": "pull_request_comment" },
|
{ "x-gitea-event": "pull_request_comment" },
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
action: "created",
|
action: "created",
|
||||||
issue: { number: 7, title: "Add feature", html_url: "https://git.example.com/org/repo/pulls/7" },
|
issue: {
|
||||||
comment: { body: "looks good", line: 12, html_url: "https://git.example.com/org/repo/pulls/7#issuecomment-1" },
|
number: 7,
|
||||||
|
title: "Add feature",
|
||||||
|
html_url: "https://git.example.com/org/repo/pulls/7",
|
||||||
|
},
|
||||||
|
comment: {
|
||||||
|
body: "looks good",
|
||||||
|
line: 12,
|
||||||
|
html_url: "https://git.example.com/org/repo/pulls/7#issuecomment-1",
|
||||||
|
},
|
||||||
repository: { full_name: "org/repo" },
|
repository: { full_name: "org/repo" },
|
||||||
sender: { login: "octo" },
|
sender: { login: "octo" },
|
||||||
}),
|
}),
|
||||||
|
|
@ -101,7 +109,10 @@ describe("gitea event parsing", () => {
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
action: "created",
|
action: "created",
|
||||||
commit_id: "abcd1234ef",
|
commit_id: "abcd1234ef",
|
||||||
comment: { body: "why?", html_url: "https://git.example.com/org/repo/commit/abcd1234ef#commitcomment-1" },
|
comment: {
|
||||||
|
body: "why?",
|
||||||
|
html_url: "https://git.example.com/org/repo/commit/abcd1234ef#commitcomment-1",
|
||||||
|
},
|
||||||
repository: { full_name: "org/repo" },
|
repository: { full_name: "org/repo" },
|
||||||
sender: { login: "octo" },
|
sender: { login: "octo" },
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue