From 856bd0709cd37d65c74aecf130f64ac0ed956af3 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 22 Aug 2024 09:28:29 +0000 Subject: [PATCH] chore(scripts): use markdown in jira (generated) https://github.com/algolia/api-clients-automation/pull/3572 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- .github/workflows/issue.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index c4c24b58..66461e79 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -22,7 +22,7 @@ jobs: const title = context.payload.issue.title; const body = context.payload.issue.body; - const res = await fetch('https://algolia.atlassian.net/rest/api/3/issue', { + const res = await fetch('https://algolia.atlassian.net/rest/api/2/issue', { method: 'POST', headers: { 'Accept': 'application/json', @@ -31,21 +31,7 @@ jobs: }, body: JSON.stringify({ fields: { - description: { - content: [ - { - content: [ - { - text: `Issue created by ${context.actor} at ${context.payload.issue.html_url} \n\n${body}`, - type: 'text' - } - ], - type: 'paragraph' - } - ], - type: 'doc', - version: 1 - }, + description: `Issue created by ${context.actor} at [${context.payload.issue.html_url}](${context.payload.issue.html_url}) \n\n${body}`, issuetype: { id: '10001' },