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 22
22
const title = context.payload.issue.title;
23
23
const body = context.payload.issue.body;
24
24
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', {
26
26
method: 'POST',
27
27
headers: {
28
28
'Accept': 'application/json',
31
31
},
32
32
body: JSON.stringify({
33
33
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}`,
49
35
issuetype: {
50
36
id: '10001'
51
37
},
You can’t perform that action at this time.
0 commit comments