From 400a668267be8b389cfc141063d5af150dcaeca5 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 28 Sep 2023 21:35:56 +0100 Subject: [PATCH] Fix issue creation Signed-off-by: Fred Boniface --- src/services/issue.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/issue.services.js b/src/services/issue.services.js index 7208c54..32e50ae 100644 --- a/src/services/issue.services.js +++ b/src/services/issue.services.js @@ -26,8 +26,9 @@ async function sendToGitea(body) { method: "POST", headers: { Authorization: key, + "Content-Type": "application/json", }, - body: body, + body: JSON.stringify(body), }; const res = await fetch(url, opts);