package.json 19.7 KB
Newer Older
F
Fatih Acet 已提交
1
{
F
Fatih Acet 已提交
2 3 4
  "name": "gitlab-workflow",
  "displayName": "GitLab Workflow",
  "description": "GitLab VSCode integration",
T
3.5.0  
Tomas Vik 已提交
5
  "version": "3.5.0",
6
  "publisher": "GitLab",
M
Matthias Wirtz 已提交
7
  "license": "MIT",
F
Fatih Acet 已提交
8 9
  "repository": {
    "type": "git",
10
    "url": "https://gitlab.com/gitlab-org/gitlab-vscode-extension"
F
Fatih Acet 已提交
11
  },
F
Fatih Acet 已提交
12
  "engines": {
13
    "vscode": "^1.41.0"
F
Fatih Acet 已提交
14
  },
M
Master  
Matthias Wirtz 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27
  "categories": [
    "Other"
  ],
  "keywords": [
    "git",
    "gitlab",
    "merge request",
    "pipeline",
    "ci cd"
  ],
  "activationEvents": [
    "*"
  ],
28
  "bugs": {
29 30
    "url": "https://gitlab.com/gitlab-org/gitlab-vscode-extension/issues",
    "email": "incoming+gitlab-org-gitlab-vscode-extension-5261717-issue-@incoming.gitlab.com"
31 32 33 34 35
  },
  "galleryBanner": {
    "color": "#805DE7",
    "theme": "dark"
  },
36
  "main": "out/src/extension",
F
Fatih Acet 已提交
37
  "icon": "src/assets/logo.png",
F
Fatih Acet 已提交
38
  "contributes": {
F
Fatih Acet 已提交
39 40
    "commands": [
      {
F
Fatih Acet 已提交
41 42 43 44 45 46 47 48
        "command": "gl.setToken",
        "title": "GitLab: Set GitLab Personal Access Token"
      },
      {
        "command": "gl.removeToken",
        "title": "GitLab: Remove your GitLab Personal Access Token"
      },
      {
F
Fatih Acet 已提交
49
        "command": "gl.showIssuesAssignedToMe",
F
Fatih Acet 已提交
50 51 52
        "title": "GitLab: Show issues assigned to me"
      },
      {
F
Fatih Acet 已提交
53
        "command": "gl.showMergeRequestsAssignedToMe",
F
Fatih Acet 已提交
54 55 56 57 58 59
        "title": "GitLab: Show merge requests assigned to me"
      },
      {
        "command": "gl.openActiveFile",
        "title": "GitLab: Open active file on GitLab"
      },
60 61 62 63
      {
        "command": "gl.copyLinkToActiveFile",
        "title": "GitLab: Copy link to active file on GitLab"
      },
F
Fatih Acet 已提交
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
      {
        "command": "gl.openCurrentMergeRequest",
        "title": "GitLab: Open merge request for current branch"
      },
      {
        "command": "gl.openCreateNewIssue",
        "title": "GitLab: Create new issue on current project"
      },
      {
        "command": "gl.openCreateNewMR",
        "title": "GitLab: Create new merge request on current project"
      },
      {
        "command": "gl.openProjectPage",
        "title": "GitLab: Open current project on GitLab"
79 80 81 82
      },
      {
        "command": "gl.openCurrentPipeline",
        "title": "GitLab: Open current pipeline on GitLab"
F
Fatih Acet 已提交
83 84 85 86
      },
      {
        "command": "gl.pipelineActions",
        "title": "GitLab: Pipeline actions - View, Create, Retry or Cancel"
F
Fatih Acet 已提交
87 88 89
      },
      {
        "command": "gl.issueSearch",
90
        "title": "GitLab: Search project issues (Supports filters)"
F
Fatih Acet 已提交
91 92 93
      },
      {
        "command": "gl.mergeRequestSearch",
94 95 96 97 98
        "title": "GitLab: Search project merge requests (Supports filters)"
      },
      {
        "command": "gl.projectAdvancedSearch",
        "title": "GitLab: Project Advanced Search (Issues, MR's, commits, comments...)"
99 100 101 102
      },
      {
        "command": "gl.compareCurrentBranch",
        "title": "GitLab: Compare current branch with master"
F
Fatih Acet 已提交
103 104 105 106
      },
      {
        "command": "gl.createSnippet",
        "title": "GitLab: Create snippet"
F
Fatih Acet 已提交
107
      },
108 109 110 111
      {
        "command": "gl.insertSnippet",
        "title": "GitLab: Insert snippet"
      },
F
Fatih Acet 已提交
112 113 114
      {
        "command": "gl.validateCIConfig",
        "title": "GitLab: Validate GitLab CI config"
F
Fatih Acet 已提交
115
      },
116 117 118 119
      {
        "command": "gl.showOutput",
        "title": "GitLab: Show extension logs"
      },
F
Fatih Acet 已提交
120 121
      {
        "command": "gl.refreshSidebar",
F
Fatih Acet 已提交
122 123 124 125 126
        "title": "GitLab: Refresh sidebar",
        "icon": {
          "light": "src/assets/images/light/refresh.svg",
          "dark": "src/assets/images/dark/refresh.svg"
        }
F
Fatih Acet 已提交
127
      }
F
Fatih Acet 已提交
128
    ],
F
Fatih Acet 已提交
129
    "menus": {
F
Fatih Acet 已提交
130 131 132
      "view/title": [
        {
          "command": "gl.refreshSidebar",
133
          "when": "view =~ /(currentBranchInfo|issuesAndMrs)/",
F
Fatih Acet 已提交
134 135 136
          "group": "navigation"
        }
      ]
F
Fatih Acet 已提交
137 138
    },
    "viewsContainers": {
F
Fatih Acet 已提交
139 140 141 142 143 144 145
      "activitybar": [
        {
          "id": "gitlab-workflow",
          "title": "GitLab Workflow",
          "icon": "src/assets/images/light/gitlab-logo.svg"
        }
      ]
F
Fatih Acet 已提交
146 147
    },
    "views": {
F
Fatih Acet 已提交
148 149
      "gitlab-workflow": [
        {
150 151
          "id": "issuesAndMrs",
          "name": "Issues and Merge Requests"
152
        },
F
Fatih Acet 已提交
153
        {
F
Fatih Acet 已提交
154 155
          "id": "currentBranchInfo",
          "name": "For current branch"
F
Fatih Acet 已提交
156 157 158
        }
      ]
    },
F
Fatih Acet 已提交
159
    "configuration": {
160
      "title": "GitLab Workflow (GitLab VSCode Extension)",
F
Fatih Acet 已提交
161 162
      "properties": {
        "gitlab.instanceUrl": {
T
3.3.0  
Tomas Vik 已提交
163 164 165 166
          "type": [
            "string",
            "null"
          ],
167
          "default": null,
F
Fatih Acet 已提交
168
          "description": "Your GitLab instance URL (default is https://gitlab.com)"
169
        },
170 171 172 173 174
        "gitlab.showStatusBarLinks": {
          "type": "boolean",
          "default": true,
          "description": "Whether to display all GitLab related link in the status bar (Requires restart of VSCode)"
        },
175 176 177 178
        "gitlab.showIssueLinkOnStatusBar": {
          "type": "boolean",
          "default": true,
          "description": "Whether to display the GitLab issue link in the status bar"
P
Pierre Carru 已提交
179
        },
180 181 182 183 184
        "gitlab.showMrStatusOnStatusBar": {
          "type": "boolean",
          "default": true,
          "description": "Whether to display the GitLab Merge Request status in the status bar"
        },
P
Pierre Carru 已提交
185 186 187 188
        "gitlab.ca": {
          "type": "string",
          "default": null,
          "description": "Custom CA file to use (example: /etc/ssl/certs/ca-certificates.crt)"
189
        },
190 191 192 193 194 195 196 197 198 199
        "gitlab.cert": {
          "type": "string",
          "default": null,
          "description": "Custom Certificate file to use (example: /etc/ssl/certs/certificate.crt)"
        },
        "gitlab.certKey": {
          "type": "string",
          "default": null,
          "description": "Custom Certificate Key file to use (example: /etc/ssl/certs/certificateKey.key)"
        },
200 201 202 203
        "gitlab.ignoreCertificateErrors": {
          "type": "boolean",
          "default": false,
          "description": "Ignore TLS/SSL certificate errors when calling the GitLab API"
J
Julien Duponchelle 已提交
204 205 206 207 208
        },
        "gitlab.remoteName": {
          "type": "string",
          "default": null,
          "description": "Name of the git remote to use in order to locate the Gitlab project"
209
        },
210 211 212 213 214
        "gitlab.pipelineGitRemoteName": {
          "type": "string",
          "default": null,
          "description": "Name of the git remote to use in order to locate the Gitlab project for your pipeline. Keep empty for default"
        },
215 216 217 218
        "gitlab.showPipelineUpdateNotifications": {
          "type": "boolean",
          "default": false,
          "description": "Show notification in VSCode when pipeline status changed"
219 220 221 222 223
        },
        "gitlab.showProjectMergeRequests": {
          "type": "boolean",
          "default": true,
          "description": "Enable the \"All Project Merge Requests\" sidebar pane"
F
Fatih Acet 已提交
224 225 226
        },
        "gitlab.enableExperimentalFeatures": {
          "type": "boolean",
227
          "default": true,
F
Fatih Acet 已提交
228
          "description": "Enable experimental features including showing Issue details in VSCode"
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
        },
        "gitlab.customQueries": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "title": "Custom GitLab Quety",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The label to show in the GitLab panel"
              },
              "maxResults": {
                "type": "number",
                "description": "The maximum number of results to show",
                "default": 20,
                "maximum": 100,
                "minItems": 1
              },
              "orderBy": {
                "type": "string",
                "description": "Return issues ordered by the selected value. It is not applicable for vulnerabilities",
                "enum": [
                  "created_at",
                  "updated_at",
                  "priority",
                  "due_date",
                  "relative_position",
                  "label_priority",
                  "milestone_due",
                  "popularity",
                  "weight"
                ],
                "default": "created_at"
              },
              "sort": {
                "type": "string",
                "description": "Return issues sorted in ascending or descending order. It is not applicable for vulnerabilities",
                "enum": [
                  "asc",
                  "desc"
                ],
                "default": " desc"
              },
              "scope": {
                "type": "string",
                "description": "Return Gitlab items for the given scope. It is not applicable for epics. \"assigned_to_me\" and \"created_by_me\" are not applicable for vulnerabilities. \"dismissed\" is not applicable for issues and merge requests",
                "enum": [
                  "assigned_to_me",
                  "created_by_me",
                  "dismissed",
                  "all"
                ],
                "default": "all"
              },
              "type": {
                "type": "string",
                "description": "The type of GitLab items to return. If snippets is selected, none of the other filter will work. Epics will work only on GitLab ultimate/gold.",
                "enum": [
                  "issues",
                  "merge_requests",
                  "epics",
                  "snippets",
                  "vulnerabilities"
                ],
                "default": "merge_requests"
              },
              "noItemText": {
                "type": "string",
                "description": "The text to show if the query returns no items",
                "default": "No items found."
              },
              "state": {
                "type": "string",
                "description": "Return \"all\" issues or just those that are \"opened\" or \"closed\". It is not applicable for vulnerabilities",
                "enum": [
                  "all",
                  "opened",
                  "closed"
                ],
                "default": "opened"
              },
              "labels": {
                "type": "array",
                "description": "Array of label names, Gitlab item must have all labels to be returned. \"None\" lists all GitLab items with no labels. \"Any\" lists all GitLab issues with at least one label. Predefined names are case-insensitive. It is not applicable for vulnerabilities",
                "items": {
                  "type": "string"
                }
              },
              "milestone": {
                "type": "string",
                "description": "The milestone title. \"None\" lists all GitLab items with no milestone. \"Any\" lists all GitLab items that have an assigned milestone. It is not applicable for epics and vulnerabilities"
              },
              "author": {
                "type": "string",
                "description": "Return GitLab items created by the given username. It is not applicable for vulnerabilities"
              },
              "assignee": {
                "type": "string",
                "description": "Returns GitLab items assigned to the given username. \"None\" returns unassigned GitLab items. \"Any\" returns GitLab items with an assignee. It is not applicable for epics and vulnerabilities"
              },
              "search": {
                "type": "string",
                "description": "Search GitLab items against their title and description. It is not applicable for vulnerabilities"
              },
              "searchIn": {
                "type": "string",
                "description": "Modify the scope of the search attribute. It is not applicable for epics and vulnerabilities",
                "enum": [
                  "all",
                  "title",
                  "description"
                ],
                "default": "all"
              },
              "createdAfter": {
                "type": "string",
                "format": "date",
                "description": "Return GitLab items created after the given date. It is not applicable for vulnerabilities"
              },
              "createdBefore": {
                "type": "string",
                "format": "date",
                "description": "Return GitLab items created before the given date. It is not applicable for vulnerabilities"
              },
              "updatedAfter": {
                "type": "string",
                "format": "date",
                "description": "Return GitLab items updated after the given date. It is not applicable for vulnerabilities"
              },
              "updatedBefore": {
                "type": "string",
                "format": "date",
                "description": "Return GitLab items updated before the given date. It is not applicable for vulnerabilities"
              },
              "wip": {
                "type": "string",
                "enum": [
                  "yes",
                  "no"
                ],
                "description": "Filter merge requests against their wip status. \"yes\" to return only WIP merge requests, \"no\" to return non WIP merge requests. Works only with merge requests",
                "default": "no"
              },
              "confidential": {
                "type": "boolean",
                "description": "Filter confidential or public issues. Works only with issues",
                "default": false
              },
              "excludeLabels": {
                "type": "array",
                "description": "Array of label names, Gitlab item must not have to be returned. Predefined names are case-insensitive. Works only with issues",
                "items": {
                  "type": "string"
                }
              },
              "excludeMilestone": {
                "type": "string",
                "description": "The milestone title to exclude. Works only with issues"
              },
              "excludeAuthor": {
                "type": "string",
                "description": "Return GitLab items not created by the given username. Works only with issues"
              },
              "excludeAssignee": {
                "type": "string",
                "description": "Returns GitLab items not assigned to the given username. Works only with issues"
              },
              "excludeSearch": {
                "type": "string",
                "description": "Search GitLab items that doesn't have the search key in their title or description. Works only with issues"
              },
              "excludeSearchIn": {
                "type": "string",
                "description": "Modify the scope of the excludeSearch attribute. Works only with issues",
                "enum": [
                  "all",
                  "title",
                  "description"
                ],
                "default": "all"
              },
              "reportTypes": {
                "type": "array",
                "description": "Returns vulnerabilities belonging to specified report types. Works only with vulnerabilities",
                "items": {
                  "type": "string",
                  "enum": [
                    "sast",
                    "dast",
                    "dependency_scanning",
                    "container_scanning"
                  ]
                }
              },
              "severityLevels": {
                "type": "array",
                "description": "Returns vulnerabilities belonging to specified severity levels. Defaults to all. Works only with vulnerabilities",
                "items": {
                  "type": "string",
                  "enum": [
                    "undefined",
                    "info",
                    "unknown",
                    "low",
                    "medium",
                    "high",
                    "critical"
                  ]
                }
              },
              "confidenceLevels": {
                "type": "array",
                "description": "Returns vulnerabilities belonging to specified confidence levels. Defaults to all. Works only with vulnerabilities",
                "items": {
                  "type": "string",
                  "enum": [
                    "undefined",
                    "ignore",
                    "unknown",
                    "experimental",
                    "low",
                    "medium",
                    "high",
                    "confirmed"
                  ]
                }
              },
              "pipelineId": {
                "type": "string",
                "description": "Returns vulnerabilities belonging to specified pipeline. \"branch\" returns vulnerabilities belonging to latest pipeline of the current branch. Works only with vulnerabilities"
              }
            }
          },
          "default": [
            {
              "name": "Issues assigned to me",
              "type": "issues",
              "scope": "assigned_to_me",
              "state": "opened",
              "noItemText": "There is no issue assigned to you."
            },
            {
              "name": "Issues created by me",
              "type": "issues",
              "scope": "created_by_me",
              "state": "opened",
              "noItemText": "There is no issue created by you."
            },
            {
              "name": "Merge requests assigned to me",
              "type": "merge_requests",
              "scope": "assigned_to_me",
              "state": "opened",
              "noItemText": "There is no MR assigned to you."
            },
            {
              "name": "Merge requests created by me",
              "type": "merge_requests",
              "scope": "created_by_me",
              "state": "opened",
              "noItemText": "There is no MR created by you."
            },
            {
              "name": "All project merge requests",
              "type": "merge_requests",
              "scope": "all",
              "state": "opened",
              "noItemText": "The project has no merge requests"
            }
          ],
          "description": "Custom views in the GitLab panel"
504
        }
F
Fatih Acet 已提交
505
      }
F
Fatih Acet 已提交
506
    }
F
Fatih Acet 已提交
507 508
  },
  "scripts": {
509
    "vscode:prepublish": "npm run compile",
510 511
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./",
512
    "test-unit": "jest",
513
    "test-integration": "npm run compile && node ./out/test/runTest.js",
T
Tomas Vik 已提交
514 515 516
    "create-test-workspace": "npm run compile && node ./scripts/create_workspace_for_test_debugging.js",
    "test": "npm run test-unit && npm run test-integration",
    "eslint": "eslint --ext .js --ext .ts .",
517
    "autofix": "eslint --fix . && prettier --write '**/*.{js,json}'",
518
    "publish": "vsce publish",
519 520
    "webview": "cd src/webview ; npm install ; npm run watch",
    "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
F
Fatih Acet 已提交
521 522
  },
  "devDependencies": {
523
    "@types/jest": "^26.0.14",
524
    "@types/node": "^13.7.0",
T
Tomas Vik 已提交
525
    "@types/temp": "^0.8.34",
526
    "@types/vscode": "^1.41.0",
T
Tomas Vik 已提交
527 528
    "@typescript-eslint/eslint-plugin": "^3.7.0",
    "@typescript-eslint/parser": "^3.7.0",
529
    "conventional-changelog-cli": "^2.0.34",
530 531 532 533 534
    "eslint": "^6.8.0",
    "eslint-config-airbnb-base": "^14.0.0",
    "eslint-config-prettier": "^6.10.0",
    "eslint-plugin-import": "^2.20.0",
    "eslint-plugin-prettier": "^3.1.2",
535
    "jest": "^26.4.2",
536
    "mocha": "^7.0.1",
537
    "msw": "^0.21.2",
538 539
    "prettier": "^1.19.1",
    "rewire": "^4.0.1",
T
Tomas Vik 已提交
540
    "simple-git": "^2.14.0",
541
    "sinon": "^9.1.0",
T
Tomas Vik 已提交
542
    "temp": "^0.9.1",
543 544
    "ts-jest": "^26.1.4",
    "typescript": "^3.9.7",
545
    "vsce": "^1.72.0",
546
    "vscode-test": "^1.4.0"
F
Fatih Acet 已提交
547 548
  },
  "dependencies": {
549
    "cross-fetch": "^3.0.6",
T
Tomas Vik 已提交
550
    "execa": "^4.0.3",
551 552 553
    "graphql": "^15.3.0",
    "graphql-request": "^3.2.0",
    "https-proxy-agent": "^5.0.0",
554
    "moment": "^2.24.0",
555
    "request": "^2.88.0",
556
    "request-promise": "^4.2.5",
557
    "url": "^0.11.0"
F
Fatih Acet 已提交
558
  }
M
Matthias Wirtz 已提交
559
}