From f9e3554e0ef5a8d10e306c5cda7b68cdee93c481 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Wed, 28 Sep 2022 11:55:36 +0100 Subject: [PATCH] Add support for creating confidential issues in GitLab (#496) * Confidential issue * changelog * Dedupe a bit --- changelog.d/496.feature | 1 + src/Connections/GitlabRepo.ts | 39 +++++++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 changelog.d/496.feature diff --git a/changelog.d/496.feature b/changelog.d/496.feature new file mode 100644 index 00000000..a35fcb12 --- /dev/null +++ b/changelog.d/496.feature @@ -0,0 +1 @@ +Added `create-confidential` GitLab connection command. diff --git a/src/Connections/GitlabRepo.ts b/src/Connections/GitlabRepo.ts index db7a4e91..898f0b69 100644 --- a/src/Connections/GitlabRepo.ts +++ b/src/Connections/GitlabRepo.ts @@ -14,6 +14,7 @@ import { GetConnectionsResponseItem } from "../provisioning/api"; import { ErrCode, ApiError, ValidatorApiError } from "../api" import { AccessLevel } from "../Gitlab/Types"; import Ajv, { JSONSchemaType } from "ajv"; +import { CommandError } from "../errors"; export interface GitLabRepoConnectionState extends IConnectionState { instance: string; @@ -328,13 +329,17 @@ export class GitLabRepoConnection extends CommandConnection