File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 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',
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 },
You can’t perform that action at this time.
0 commit comments