@n8n-dev/n8n-nodes-lgtm 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -0
- package/dist/banner.svg +144 -0
- package/dist/credentials/LgtmApi.credentials.d.ts +9 -0
- package/dist/credentials/LgtmApi.credentials.js +40 -0
- package/dist/credentials/LgtmApi.credentials.js.map +1 -0
- package/dist/icons/lgtm.dark.svg +18 -0
- package/dist/icons/lgtm.svg +18 -0
- package/dist/nodes/Lgtm/Lgtm.node.d.ts +4 -0
- package/dist/nodes/Lgtm/Lgtm.node.js +110 -0
- package/dist/nodes/Lgtm/Lgtm.node.js.map +1 -0
- package/dist/nodes/Lgtm/Lgtm.node.json +20 -0
- package/dist/nodes/Lgtm/lgtm.dark.svg +18 -0
- package/dist/nodes/Lgtm/lgtm.svg +18 -0
- package/dist/nodes/Lgtm/resources/analyses/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/analyses/index.js +437 -0
- package/dist/nodes/Lgtm/resources/analyses/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/api-root/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/api-root/index.js +109 -0
- package/dist/nodes/Lgtm/resources/api-root/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/code-reviews/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/code-reviews/index.js +313 -0
- package/dist/nodes/Lgtm/resources/code-reviews/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/index.d.ts +9 -0
- package/dist/nodes/Lgtm/resources/index.js +22 -0
- package/dist/nodes/Lgtm/resources/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/issues/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/issues/index.js +114 -0
- package/dist/nodes/Lgtm/resources/issues/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/operations/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/operations/index.js +96 -0
- package/dist/nodes/Lgtm/resources/operations/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/projects/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/projects/index.js +822 -0
- package/dist/nodes/Lgtm/resources/projects/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/query-jobs/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/query-jobs/index.js +560 -0
- package/dist/nodes/Lgtm/resources/query-jobs/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/snapshots/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/snapshots/index.js +495 -0
- package/dist/nodes/Lgtm/resources/snapshots/index.js.map +1 -0
- package/dist/nodes/Lgtm/resources/system/index.d.ts +2 -0
- package/dist/nodes/Lgtm/resources/system/index.js +208 -0
- package/dist/nodes/Lgtm/resources/system/index.js.map +1 -0
- package/dist/package.json +62 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectsDescription = void 0;
|
|
4
|
+
exports.projectsDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Projects"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Get Projects",
|
|
20
|
+
"value": "Get Projects",
|
|
21
|
+
"action": "List projects",
|
|
22
|
+
"description": "List all the projects the current user has authorization to view. \n\nA maximum of 100 projects are returned in each response. When further results are available, the response includes the URL you need to request the next page of results.\n\nUse the optional parameter, `limit`, to change the number of results reported in each response (range of 1—100). If you supply an invalid value for this parameter, the default value of 100 is used.\n\nWhen more than one page of results is available, each response includes a `nextPageUrl` response parameter. You can use this URL to request the next page of results. The `nextPageUrl` includes an automatically generated `start` parameter, which specifies the projects to return in the next page of results.\n",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/projects"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Add Project",
|
|
32
|
+
"value": "Add Project",
|
|
33
|
+
"action": "Add a project to LGTM",
|
|
34
|
+
"description": "LGTM administrators can add a new project to LGTM by providing a repository URL. By default, LGTM tries to build and analyze the project in the same way as for projects added through the user interface. If at least one language is successfully analyzed, and the repository doesn't already exist on LGTM, a new project is created. If the project already exists but your API call triggers a successful analysis of additional languages, LGTM adds those languages to the project.\n\nYou can configure how LGTM processes the project using query parameters to:\n * Specify the languages to analyze.\n * Create a new project in [sparse mode](https://help.semmle.com/lgtm-enterprise/user/help/analysis-faqs.html#what-is-sparse-analysis).\n * Create a new project in [upload mode](https://help.semmle.com/lgtm-enterprise/user/help/analysis-faqs.html#what-is-upload-analysis) to analyze externally-generated databases. Each database represents a snapshot of the codebase. \n Use this option when you want to upload databases that were generated by the CodeQL CLI (or the QL command-line tools).\n The version of the command line used to generate the database\n must be the same version as LGTM Enterprise. \n\nWith any of these options, you can also include an `lgtm.yml` in the body of the request to [customize extraction](https://lgtm.com/help/lgtm/customizing-code-extraction).\n",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/projects"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Delete Project",
|
|
44
|
+
"value": "Delete Project",
|
|
45
|
+
"action": "Delete project by numeric identifier",
|
|
46
|
+
"description": "Delete a project with a particular numeric project identifier.\nIn addition to access to the project, administrative access to LGTM or the LGTM Enterprise instance is required to delete projects.\n",
|
|
47
|
+
"routing": {
|
|
48
|
+
"request": {
|
|
49
|
+
"method": "DELETE",
|
|
50
|
+
"url": "=/projects/{{$parameter[\"project-id\"]}}"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Get Project",
|
|
56
|
+
"value": "Get Project",
|
|
57
|
+
"action": "Get project by numeric identifier",
|
|
58
|
+
"description": "Get the latest summary for a specific project using the numeric project identifier.\n\nTo find the LGTM identifier for a project, list all projects using the `/projects` endpoint and look up the project by name. Alternatively, use the `/projects/{provider}/{org}/{name}` endpoint. If you have administration access, the project identifier is also displayed in the administration page for the project.\n",
|
|
59
|
+
"routing": {
|
|
60
|
+
"request": {
|
|
61
|
+
"method": "GET",
|
|
62
|
+
"url": "=/projects/{{$parameter[\"project-id\"]}}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Get Project Config",
|
|
68
|
+
"value": "Get Project Config",
|
|
69
|
+
"action": "Get configuration for a project identified by numeric identifier",
|
|
70
|
+
"description": "Get the latest configuration for a specific project using the numeric project identifier.",
|
|
71
|
+
"routing": {
|
|
72
|
+
"request": {
|
|
73
|
+
"method": "GET",
|
|
74
|
+
"url": "=/projects/{{$parameter[\"project-id\"]}}/settings/analysis-configuration"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Set Project Config",
|
|
80
|
+
"value": "Set Project Config",
|
|
81
|
+
"action": "Set the administrator configuration for a project identified by numeric identifier",
|
|
82
|
+
"description": "Set the administrator configuration for a specific project using the numeric project identifier.",
|
|
83
|
+
"routing": {
|
|
84
|
+
"request": {
|
|
85
|
+
"method": "PUT",
|
|
86
|
+
"url": "=/projects/{{$parameter[\"project-id\"]}}/settings/analysis-configuration"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "Get Project By URL Identifier",
|
|
92
|
+
"value": "Get Project By URL Identifier",
|
|
93
|
+
"action": "Get project by URL identifier",
|
|
94
|
+
"description": "Get the latest summary for a specific project using the project's URL identifier `{provider}/{org}/{name}`.\n\nTo find the URL identifier for a project, view the project overview page in LGTM. The URL identifier follows after `/projects`. For example, for a project with the URL `https://lgtm.example.com/projects/g/apache/commons-io` the URL identifier is `g/apache/commons-io`. In the example, `g` represents the `provider` (repository host), `apache` is the `organization` and `commons-io` is the `name` of the repository.\n",
|
|
95
|
+
"routing": {
|
|
96
|
+
"request": {
|
|
97
|
+
"method": "GET",
|
|
98
|
+
"url": "=/projects/{{$parameter[\"provider\"]}}/{{$parameter[\"org\"]}}/{{$parameter[\"name\"]}}"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"default": ""
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"displayName": "GET /projects",
|
|
107
|
+
"name": "operation",
|
|
108
|
+
"type": "notice",
|
|
109
|
+
"typeOptions": {
|
|
110
|
+
"theme": "info"
|
|
111
|
+
},
|
|
112
|
+
"default": "",
|
|
113
|
+
"displayOptions": {
|
|
114
|
+
"show": {
|
|
115
|
+
"resource": [
|
|
116
|
+
"Projects"
|
|
117
|
+
],
|
|
118
|
+
"operation": [
|
|
119
|
+
"Get Projects"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"displayName": "Limit",
|
|
126
|
+
"name": "limit",
|
|
127
|
+
"description": "The maximum number of projects to return in each response (1-100).",
|
|
128
|
+
"default": 100,
|
|
129
|
+
"type": "number",
|
|
130
|
+
"routing": {
|
|
131
|
+
"send": {
|
|
132
|
+
"type": "query",
|
|
133
|
+
"property": "limit",
|
|
134
|
+
"value": "={{ $value }}",
|
|
135
|
+
"propertyInDotNotation": false
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"displayOptions": {
|
|
139
|
+
"show": {
|
|
140
|
+
"resource": [
|
|
141
|
+
"Projects"
|
|
142
|
+
],
|
|
143
|
+
"operation": [
|
|
144
|
+
"Get Projects"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"displayName": "Start",
|
|
151
|
+
"name": "start",
|
|
152
|
+
"description": "An opaque identifier generated by the API.",
|
|
153
|
+
"default": "",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"routing": {
|
|
156
|
+
"send": {
|
|
157
|
+
"type": "query",
|
|
158
|
+
"property": "start",
|
|
159
|
+
"value": "={{ $value }}",
|
|
160
|
+
"propertyInDotNotation": false
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"displayOptions": {
|
|
164
|
+
"show": {
|
|
165
|
+
"resource": [
|
|
166
|
+
"Projects"
|
|
167
|
+
],
|
|
168
|
+
"operation": [
|
|
169
|
+
"Get Projects"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"displayName": "Bearer Token",
|
|
176
|
+
"name": "security_access_token",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"default": "",
|
|
179
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
180
|
+
"required": false,
|
|
181
|
+
"routing": {
|
|
182
|
+
"request": {
|
|
183
|
+
"headers": {
|
|
184
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"displayOptions": {
|
|
189
|
+
"show": {
|
|
190
|
+
"resource": [
|
|
191
|
+
"Projects"
|
|
192
|
+
],
|
|
193
|
+
"operation": [
|
|
194
|
+
"Get Projects"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"displayName": "POST /projects",
|
|
201
|
+
"name": "operation",
|
|
202
|
+
"type": "notice",
|
|
203
|
+
"typeOptions": {
|
|
204
|
+
"theme": "info"
|
|
205
|
+
},
|
|
206
|
+
"default": "",
|
|
207
|
+
"displayOptions": {
|
|
208
|
+
"show": {
|
|
209
|
+
"resource": [
|
|
210
|
+
"Projects"
|
|
211
|
+
],
|
|
212
|
+
"operation": [
|
|
213
|
+
"Add Project"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"displayName": "Repository",
|
|
220
|
+
"name": "repository",
|
|
221
|
+
"required": true,
|
|
222
|
+
"description": "The URL of the repository to analyze.\nLGTM tests this against the [repository providers](https://lgtm.com/admin/help/adding-repository-providers) defined for the system. If it doesn't match any of them, the request fails.",
|
|
223
|
+
"default": "",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"routing": {
|
|
226
|
+
"send": {
|
|
227
|
+
"type": "query",
|
|
228
|
+
"property": "repository",
|
|
229
|
+
"value": "={{ $value }}",
|
|
230
|
+
"propertyInDotNotation": false
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"displayOptions": {
|
|
234
|
+
"show": {
|
|
235
|
+
"resource": [
|
|
236
|
+
"Projects"
|
|
237
|
+
],
|
|
238
|
+
"operation": [
|
|
239
|
+
"Add Project"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"displayName": "Language",
|
|
246
|
+
"name": "language",
|
|
247
|
+
"description": "Optional, a [language code](https://lgtm.com/help/lgtm/analysis-faqs#which-languages-are-supported) to specify which language to analyze.\nTo request the analysis of more than one language, specify a query parameter for each language. By default, LGTM tries to analyze all supported languages.\n",
|
|
248
|
+
"default": "[\n null\n]",
|
|
249
|
+
"type": "json",
|
|
250
|
+
"routing": {
|
|
251
|
+
"send": {
|
|
252
|
+
"type": "query",
|
|
253
|
+
"property": "language",
|
|
254
|
+
"value": "={{ $value }}",
|
|
255
|
+
"propertyInDotNotation": false
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"displayOptions": {
|
|
259
|
+
"show": {
|
|
260
|
+
"resource": [
|
|
261
|
+
"Projects"
|
|
262
|
+
],
|
|
263
|
+
"operation": [
|
|
264
|
+
"Add Project"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"displayName": "Mode",
|
|
271
|
+
"name": "mode",
|
|
272
|
+
"description": "The analysis mode of the new project.\nWhen set to `full` all commits of the project are analyzed; when set to `sparse` the latest commit of the project is analyzed periodically; when set to `upload`, no automatic analysis is performed, instead externally-generated databases should be uploaded.\nFor new projects the default value is `full`. The `mode` parameter cannot be used to change the analysis mode of existing projects. Therefore, for existing projects, it should either be left blank or set to match the analysis mode of the project.\n",
|
|
273
|
+
"default": "full",
|
|
274
|
+
"type": "options",
|
|
275
|
+
"options": [
|
|
276
|
+
{
|
|
277
|
+
"name": "Full",
|
|
278
|
+
"value": "full"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "Sparse",
|
|
282
|
+
"value": "sparse"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "Upload",
|
|
286
|
+
"value": "upload"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"routing": {
|
|
290
|
+
"send": {
|
|
291
|
+
"type": "query",
|
|
292
|
+
"property": "mode",
|
|
293
|
+
"value": "={{ $value }}",
|
|
294
|
+
"propertyInDotNotation": false
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"displayOptions": {
|
|
298
|
+
"show": {
|
|
299
|
+
"resource": [
|
|
300
|
+
"Projects"
|
|
301
|
+
],
|
|
302
|
+
"operation": [
|
|
303
|
+
"Add Project"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"displayName": "Commit",
|
|
310
|
+
"name": "commit",
|
|
311
|
+
"description": "Required when `mode=upload`, specify the identifier of the commit used to generate the database.",
|
|
312
|
+
"default": "",
|
|
313
|
+
"type": "string",
|
|
314
|
+
"routing": {
|
|
315
|
+
"send": {
|
|
316
|
+
"type": "query",
|
|
317
|
+
"property": "commit",
|
|
318
|
+
"value": "={{ $value }}",
|
|
319
|
+
"propertyInDotNotation": false
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"displayOptions": {
|
|
323
|
+
"show": {
|
|
324
|
+
"resource": [
|
|
325
|
+
"Projects"
|
|
326
|
+
],
|
|
327
|
+
"operation": [
|
|
328
|
+
"Add Project"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"displayName": "Date",
|
|
335
|
+
"name": "date",
|
|
336
|
+
"description": "Optional when `mode=upload`, specify the date and time of the commit used to generate the database; defaults to the current time.",
|
|
337
|
+
"default": "",
|
|
338
|
+
"type": "string",
|
|
339
|
+
"routing": {
|
|
340
|
+
"send": {
|
|
341
|
+
"type": "query",
|
|
342
|
+
"property": "date",
|
|
343
|
+
"value": "={{ $value }}",
|
|
344
|
+
"propertyInDotNotation": false
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"displayOptions": {
|
|
348
|
+
"show": {
|
|
349
|
+
"resource": [
|
|
350
|
+
"Projects"
|
|
351
|
+
],
|
|
352
|
+
"operation": [
|
|
353
|
+
"Add Project"
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"displayName": "Worker Label",
|
|
360
|
+
"name": "worker-label",
|
|
361
|
+
"description": "Optional, any [labels](https://lgtm.com/admin/help/defining-worker-labels) required by workers to analyze this project. \nTo specify more than one label, repeat the query parameter.\n",
|
|
362
|
+
"default": "[\n null\n]",
|
|
363
|
+
"type": "json",
|
|
364
|
+
"routing": {
|
|
365
|
+
"send": {
|
|
366
|
+
"type": "query",
|
|
367
|
+
"property": "worker-label",
|
|
368
|
+
"value": "={{ $value }}",
|
|
369
|
+
"propertyInDotNotation": false
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"displayOptions": {
|
|
373
|
+
"show": {
|
|
374
|
+
"resource": [
|
|
375
|
+
"Projects"
|
|
376
|
+
],
|
|
377
|
+
"operation": [
|
|
378
|
+
"Add Project"
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"displayName": "POST /projects<br/><br/>There's no body available for request, kindly use HTTP Request node to send body",
|
|
385
|
+
"name": "operation",
|
|
386
|
+
"type": "notice",
|
|
387
|
+
"default": "",
|
|
388
|
+
"displayOptions": {
|
|
389
|
+
"show": {
|
|
390
|
+
"resource": [
|
|
391
|
+
"Projects"
|
|
392
|
+
],
|
|
393
|
+
"operation": [
|
|
394
|
+
"Add Project"
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"displayName": "Bearer Token",
|
|
401
|
+
"name": "security_access_token",
|
|
402
|
+
"type": "string",
|
|
403
|
+
"default": "",
|
|
404
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
405
|
+
"required": false,
|
|
406
|
+
"routing": {
|
|
407
|
+
"request": {
|
|
408
|
+
"headers": {
|
|
409
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"displayOptions": {
|
|
414
|
+
"show": {
|
|
415
|
+
"resource": [
|
|
416
|
+
"Projects"
|
|
417
|
+
],
|
|
418
|
+
"operation": [
|
|
419
|
+
"Add Project"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"displayName": "DELETE /projects/{project-id}",
|
|
426
|
+
"name": "operation",
|
|
427
|
+
"type": "notice",
|
|
428
|
+
"typeOptions": {
|
|
429
|
+
"theme": "info"
|
|
430
|
+
},
|
|
431
|
+
"default": "",
|
|
432
|
+
"displayOptions": {
|
|
433
|
+
"show": {
|
|
434
|
+
"resource": [
|
|
435
|
+
"Projects"
|
|
436
|
+
],
|
|
437
|
+
"operation": [
|
|
438
|
+
"Delete Project"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"displayName": "Project ID",
|
|
445
|
+
"name": "project-id",
|
|
446
|
+
"required": true,
|
|
447
|
+
"description": "The numeric project identifier",
|
|
448
|
+
"default": 0,
|
|
449
|
+
"type": "number",
|
|
450
|
+
"displayOptions": {
|
|
451
|
+
"show": {
|
|
452
|
+
"resource": [
|
|
453
|
+
"Projects"
|
|
454
|
+
],
|
|
455
|
+
"operation": [
|
|
456
|
+
"Delete Project"
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"displayName": "Bearer Token",
|
|
463
|
+
"name": "security_access_token",
|
|
464
|
+
"type": "string",
|
|
465
|
+
"default": "",
|
|
466
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
467
|
+
"required": false,
|
|
468
|
+
"routing": {
|
|
469
|
+
"request": {
|
|
470
|
+
"headers": {
|
|
471
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"displayOptions": {
|
|
476
|
+
"show": {
|
|
477
|
+
"resource": [
|
|
478
|
+
"Projects"
|
|
479
|
+
],
|
|
480
|
+
"operation": [
|
|
481
|
+
"Delete Project"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"displayName": "GET /projects/{project-id}",
|
|
488
|
+
"name": "operation",
|
|
489
|
+
"type": "notice",
|
|
490
|
+
"typeOptions": {
|
|
491
|
+
"theme": "info"
|
|
492
|
+
},
|
|
493
|
+
"default": "",
|
|
494
|
+
"displayOptions": {
|
|
495
|
+
"show": {
|
|
496
|
+
"resource": [
|
|
497
|
+
"Projects"
|
|
498
|
+
],
|
|
499
|
+
"operation": [
|
|
500
|
+
"Get Project"
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"displayName": "Project ID",
|
|
507
|
+
"name": "project-id",
|
|
508
|
+
"required": true,
|
|
509
|
+
"description": "The numeric project identifier",
|
|
510
|
+
"default": 0,
|
|
511
|
+
"type": "number",
|
|
512
|
+
"displayOptions": {
|
|
513
|
+
"show": {
|
|
514
|
+
"resource": [
|
|
515
|
+
"Projects"
|
|
516
|
+
],
|
|
517
|
+
"operation": [
|
|
518
|
+
"Get Project"
|
|
519
|
+
]
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"displayName": "Bearer Token",
|
|
525
|
+
"name": "security_access_token",
|
|
526
|
+
"type": "string",
|
|
527
|
+
"default": "",
|
|
528
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
529
|
+
"required": false,
|
|
530
|
+
"routing": {
|
|
531
|
+
"request": {
|
|
532
|
+
"headers": {
|
|
533
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"displayOptions": {
|
|
538
|
+
"show": {
|
|
539
|
+
"resource": [
|
|
540
|
+
"Projects"
|
|
541
|
+
],
|
|
542
|
+
"operation": [
|
|
543
|
+
"Get Project"
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"displayName": "GET /projects/{project-id}/settings/analysis-configuration",
|
|
550
|
+
"name": "operation",
|
|
551
|
+
"type": "notice",
|
|
552
|
+
"typeOptions": {
|
|
553
|
+
"theme": "info"
|
|
554
|
+
},
|
|
555
|
+
"default": "",
|
|
556
|
+
"displayOptions": {
|
|
557
|
+
"show": {
|
|
558
|
+
"resource": [
|
|
559
|
+
"Projects"
|
|
560
|
+
],
|
|
561
|
+
"operation": [
|
|
562
|
+
"Get Project Config"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"displayName": "Project ID",
|
|
569
|
+
"name": "project-id",
|
|
570
|
+
"required": true,
|
|
571
|
+
"description": "The numeric project identifier",
|
|
572
|
+
"default": 0,
|
|
573
|
+
"type": "number",
|
|
574
|
+
"displayOptions": {
|
|
575
|
+
"show": {
|
|
576
|
+
"resource": [
|
|
577
|
+
"Projects"
|
|
578
|
+
],
|
|
579
|
+
"operation": [
|
|
580
|
+
"Get Project Config"
|
|
581
|
+
]
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"displayName": "Source",
|
|
587
|
+
"name": "source",
|
|
588
|
+
"description": "The type of project configuration to retrieve.\nIf this parameter isn't specified, the request retrieves the effective configuration. That is, the configuration that is actually applied to the project, which may be from:\n* the repository\n* the administrator-set, project configuration\n* the global configuration.\n\nIf you do specify this value, it must be one of:\n\n * `repository` to retrieve the configuration specified by a YAML file in the repository. A 404 status is returned if there is no repository configuration. \n\n * `administrator` to retrieve the administrator-set, project configuration. A 404 status is returned if there is no administrator configuration.\n",
|
|
589
|
+
"default": "repository",
|
|
590
|
+
"type": "options",
|
|
591
|
+
"options": [
|
|
592
|
+
{
|
|
593
|
+
"name": "Repository",
|
|
594
|
+
"value": "repository"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "Administrator",
|
|
598
|
+
"value": "administrator"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"routing": {
|
|
602
|
+
"send": {
|
|
603
|
+
"type": "query",
|
|
604
|
+
"property": "source",
|
|
605
|
+
"value": "={{ $value }}",
|
|
606
|
+
"propertyInDotNotation": false
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"displayOptions": {
|
|
610
|
+
"show": {
|
|
611
|
+
"resource": [
|
|
612
|
+
"Projects"
|
|
613
|
+
],
|
|
614
|
+
"operation": [
|
|
615
|
+
"Get Project Config"
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"displayName": "Bearer Token",
|
|
622
|
+
"name": "security_access_token",
|
|
623
|
+
"type": "string",
|
|
624
|
+
"default": "",
|
|
625
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
626
|
+
"required": false,
|
|
627
|
+
"routing": {
|
|
628
|
+
"request": {
|
|
629
|
+
"headers": {
|
|
630
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"displayOptions": {
|
|
635
|
+
"show": {
|
|
636
|
+
"resource": [
|
|
637
|
+
"Projects"
|
|
638
|
+
],
|
|
639
|
+
"operation": [
|
|
640
|
+
"Get Project Config"
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"displayName": "PUT /projects/{project-id}/settings/analysis-configuration",
|
|
647
|
+
"name": "operation",
|
|
648
|
+
"type": "notice",
|
|
649
|
+
"typeOptions": {
|
|
650
|
+
"theme": "info"
|
|
651
|
+
},
|
|
652
|
+
"default": "",
|
|
653
|
+
"displayOptions": {
|
|
654
|
+
"show": {
|
|
655
|
+
"resource": [
|
|
656
|
+
"Projects"
|
|
657
|
+
],
|
|
658
|
+
"operation": [
|
|
659
|
+
"Set Project Config"
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"displayName": "Project ID",
|
|
666
|
+
"name": "project-id",
|
|
667
|
+
"required": true,
|
|
668
|
+
"description": "The numeric project identifier",
|
|
669
|
+
"default": 0,
|
|
670
|
+
"type": "number",
|
|
671
|
+
"displayOptions": {
|
|
672
|
+
"show": {
|
|
673
|
+
"resource": [
|
|
674
|
+
"Projects"
|
|
675
|
+
],
|
|
676
|
+
"operation": [
|
|
677
|
+
"Set Project Config"
|
|
678
|
+
]
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"displayName": "PUT /projects/{project-id}/settings/analysis-configuration<br/><br/>There's no body available for request, kindly use HTTP Request node to send body",
|
|
684
|
+
"name": "operation",
|
|
685
|
+
"type": "notice",
|
|
686
|
+
"default": "",
|
|
687
|
+
"displayOptions": {
|
|
688
|
+
"show": {
|
|
689
|
+
"resource": [
|
|
690
|
+
"Projects"
|
|
691
|
+
],
|
|
692
|
+
"operation": [
|
|
693
|
+
"Set Project Config"
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"displayName": "Bearer Token",
|
|
700
|
+
"name": "security_access_token",
|
|
701
|
+
"type": "string",
|
|
702
|
+
"default": "",
|
|
703
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
704
|
+
"required": false,
|
|
705
|
+
"routing": {
|
|
706
|
+
"request": {
|
|
707
|
+
"headers": {
|
|
708
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"displayOptions": {
|
|
713
|
+
"show": {
|
|
714
|
+
"resource": [
|
|
715
|
+
"Projects"
|
|
716
|
+
],
|
|
717
|
+
"operation": [
|
|
718
|
+
"Set Project Config"
|
|
719
|
+
]
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"displayName": "GET /projects/{provider}/{org}/{name}",
|
|
725
|
+
"name": "operation",
|
|
726
|
+
"type": "notice",
|
|
727
|
+
"typeOptions": {
|
|
728
|
+
"theme": "info"
|
|
729
|
+
},
|
|
730
|
+
"default": "",
|
|
731
|
+
"displayOptions": {
|
|
732
|
+
"show": {
|
|
733
|
+
"resource": [
|
|
734
|
+
"Projects"
|
|
735
|
+
],
|
|
736
|
+
"operation": [
|
|
737
|
+
"Get Project By URL Identifier"
|
|
738
|
+
]
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"displayName": "Provider",
|
|
744
|
+
"name": "provider",
|
|
745
|
+
"required": true,
|
|
746
|
+
"description": "The first part of the URL identifier of a project, which represents the repository host.",
|
|
747
|
+
"default": "",
|
|
748
|
+
"type": "string",
|
|
749
|
+
"displayOptions": {
|
|
750
|
+
"show": {
|
|
751
|
+
"resource": [
|
|
752
|
+
"Projects"
|
|
753
|
+
],
|
|
754
|
+
"operation": [
|
|
755
|
+
"Get Project By URL Identifier"
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"displayName": "Org",
|
|
762
|
+
"name": "org",
|
|
763
|
+
"required": true,
|
|
764
|
+
"description": "The second part of the URL identifier of a project, the organization.",
|
|
765
|
+
"default": "",
|
|
766
|
+
"type": "string",
|
|
767
|
+
"displayOptions": {
|
|
768
|
+
"show": {
|
|
769
|
+
"resource": [
|
|
770
|
+
"Projects"
|
|
771
|
+
],
|
|
772
|
+
"operation": [
|
|
773
|
+
"Get Project By URL Identifier"
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"displayName": "Name",
|
|
780
|
+
"name": "name",
|
|
781
|
+
"required": true,
|
|
782
|
+
"description": "The third part of the URL identifier of a project, the repository name.",
|
|
783
|
+
"default": "",
|
|
784
|
+
"type": "string",
|
|
785
|
+
"displayOptions": {
|
|
786
|
+
"show": {
|
|
787
|
+
"resource": [
|
|
788
|
+
"Projects"
|
|
789
|
+
],
|
|
790
|
+
"operation": [
|
|
791
|
+
"Get Project By URL Identifier"
|
|
792
|
+
]
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"displayName": "Bearer Token",
|
|
798
|
+
"name": "security_access_token",
|
|
799
|
+
"type": "string",
|
|
800
|
+
"default": "",
|
|
801
|
+
"description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
|
|
802
|
+
"required": false,
|
|
803
|
+
"routing": {
|
|
804
|
+
"request": {
|
|
805
|
+
"headers": {
|
|
806
|
+
"Authorization": "={{ 'Bearer ' + $value }}"
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"displayOptions": {
|
|
811
|
+
"show": {
|
|
812
|
+
"resource": [
|
|
813
|
+
"Projects"
|
|
814
|
+
],
|
|
815
|
+
"operation": [
|
|
816
|
+
"Get Project By URL Identifier"
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
];
|
|
822
|
+
//# sourceMappingURL=index.js.map
|