-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.json
41 lines (41 loc) · 1.21 KB
/
routes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"tickettogitlab": {
"auth_headers": {
"X-Api-Token": "MySuperToken"
},
"input": {
"body": {
"$.num": {
"equalsTo": "12345"
}
}
},
"output": {
"gitlab": {
"url": "https://gitlab.com/api/v4/projects/lgatellier%2Ftest/issues",
"headers": {
"Private-Token": "#env[GITLAB_API_TOKEN]"
},
"body": {
"title": "Ticket #input.num"
},
"context_variables": {
"$.id": "GITLAB_ISSUE_ID"
}
},
"gitlab2": {
"url": "https://gitlab.com/api/v4/projects/lgatellier%2Ftest/issues",
"headers": {
"Private-Token": "#env[GITLAB_API_TOKEN]"
},
"body": {
"title": "Sub-ticket #input.num",
"description": "Relates to issue #output[gitlab].iid"
},
"context_variables": {
"$.id": "GITLAB_ISSUE_ID"
}
}
}
}
}