.github/workflows/issue.yml in algolia-3.1.1 vs .github/workflows/issue.yml in algolia-3.2.0
- old
+ new
@@ -20,33 +20,19 @@
return;
}
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',
'Content-Type': 'application/json',
'Authorization': `Basic ${{ secrets.JIRA_TOKEN }}`
},
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'
},
parent: {
key: 'DI-2737'