Skip to content

Commit 659cc05

Browse files
algolia-botmillotp
andcommitted
chore(scripts): use markdown in jira (generated)
algolia/api-clients-automation#3572 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 47cd476 commit 659cc05

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/issue.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
const title = context.payload.issue.title;
2323
const body = context.payload.issue.body;
2424
25-
const res = await fetch('https://algolia.atlassian.net/rest/api/3/issue', {
25+
const res = await fetch('https://algolia.atlassian.net/rest/api/2/issue', {
2626
method: 'POST',
2727
headers: {
2828
'Accept': 'application/json',
@@ -31,21 +31,7 @@ jobs:
3131
},
3232
body: JSON.stringify({
3333
fields: {
34-
description: {
35-
content: [
36-
{
37-
content: [
38-
{
39-
text: `Issue created by ${context.actor} at ${context.payload.issue.html_url} \n\n${body}`,
40-
type: 'text'
41-
}
42-
],
43-
type: 'paragraph'
44-
}
45-
],
46-
type: 'doc',
47-
version: 1
48-
},
34+
description: `Issue created by ${context.actor} at [${context.payload.issue.html_url}](${context.payload.issue.html_url}) \n\n${body}`,
4935
issuetype: {
5036
id: '10001'
5137
},

0 commit comments

Comments
 (0)