feat: reduce number of gitlab project settings

Signed-off-by: Ilya Katlinski <ilya.katlinsky@gmail.com>
This commit is contained in:
Ilya Katlinski
2023-10-06 09:02:25 +02:00
parent 7f51b8777d
commit 62a64275b3
2 changed files with 0 additions and 48 deletions
@@ -129,12 +129,6 @@ export function createPublishGitlabAction(options: {
'Additional project settings, based on https://docs.gitlab.com/ee/api/projects.html#create-project attributes',
type: 'object',
properties: {
name: {
title: 'Project name',
description:
'The name of the new project. Equals path if not provided.',
type: 'string',
},
path: {
title: 'Project path',
description:
@@ -156,12 +150,6 @@ export function createPublishGitlabAction(options: {
description: 'Short project description',
type: 'string',
},
namespace_id: {
title: 'Namespace ID',
description:
'Namespace for the new project (defaults to the current users namespace)',
type: 'number',
},
topics: {
title: 'Topic labels',
description: 'Topic labels to apply on the repository',
@@ -177,36 +165,6 @@ export function createPublishGitlabAction(options: {
type: 'string',
enum: ['private', 'public', 'internal'],
},
group_runners_enabled: {
title: 'Group runners enabled',
description: 'Enable group runners for this project',
type: 'boolean',
},
emails_enabled: {
title: 'Emails enabled',
description: 'Send email notifications',
type: 'boolean',
},
container_registry_access_level: {
title: 'Container registry access level',
description:
'Configure the container registry to be enabled or disabled',
type: 'string',
enum: ['disabled', 'private', 'enabled'],
},
builds_access_level: {
title: 'Builds access level',
description: 'Configure the builds to be enabled or disabled',
type: 'string',
enum: ['disabled', 'private', 'enabled'],
},
auto_cancel_pending_pipelines: {
title: 'Auto cancel pending pipelines',
description:
'Enable auto-cancel of pipelines for branches that have newer commits',
type: 'string',
enum: ['disabled', 'enabled'],
},
},
},
branches: {
@@ -19,14 +19,8 @@ export type GitlabProjectSettings = {
auto_devops_enabled?: boolean;
ci_config_path?: string;
description?: string;
namespace_id?: number;
topics?: string[];
visibility?: 'private' | 'internal' | 'public';
group_runners_enabled?: boolean;
emails_enabled?: boolean;
container_registry_access_level?: 'disabled' | 'private' | 'enabled';
builds_access_level?: 'disabled' | 'private' | 'enabled';
auto_cancel_pending_pipelines?: 'disabled' | 'enabled';
};
export type GitlabBranchSettings = {