feat: update types for gitlab project settings

Signed-off-by: Ilya Katlinski <ilya.katlinsky@gmail.com>
This commit is contained in:
Ilya Katlinski
2023-10-06 08:48:45 +02:00
parent 7e30e2f399
commit 9fa972edea
2 changed files with 4 additions and 3 deletions
@@ -103,7 +103,7 @@ describe('publish:gitlab', () => {
topics: ['topic'],
settings: {
ci_config_path: '.gitlab-ci.yml',
visibility: 'internal',
visibility: 'internal' as const,
topics: ['topic1', 'topic2'],
},
},
@@ -14,13 +14,14 @@
* limitations under the License.
*/
export type GitlabProjectSettings = ({ name: string } | { path: string }) & {
export type GitlabProjectSettings = {
path?: string;
auto_devops_enabled?: boolean;
ci_config_path?: string;
description?: string;
namespace_id?: number;
topics?: string[];
visibility: 'private' | 'internal' | 'public';
visibility?: 'private' | 'internal' | 'public';
group_runners_enabled?: boolean;
emails_enabled?: boolean;
container_registry_access_level?: 'disabled' | 'private' | 'enabled';