Skip to content

Commit

Permalink
chore(scripts): use markdown in jira (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3572

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Aug 22, 2024
1 parent d02f49f commit 49d6ea9
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
},
Expand Down

0 comments on commit 49d6ea9

Please sign in to comment.