From 1b7aca9cd656acdbe53c1ad95e5ad6c9f501604b Mon Sep 17 00:00:00 2001 From: Pavel Strunkin Date: Mon, 16 Nov 2020 19:54:31 +0200 Subject: [PATCH 1/2] ciBuildId validation added --- src/builds/dto/build-create.dto.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/builds/dto/build-create.dto.ts b/src/builds/dto/build-create.dto.ts index d1c69185..40420783 100644 --- a/src/builds/dto/build-create.dto.ts +++ b/src/builds/dto/build-create.dto.ts @@ -1,9 +1,11 @@ import { ApiProperty } from '@nestjs/swagger'; -import { IsString, IsOptional } from 'class-validator'; +import { IsString, IsOptional, IsNotEmpty } from 'class-validator'; export class CreateBuildDto { @ApiProperty() @IsOptional() + @IsString() + @IsNotEmpty() readonly ciBuildId?: string; @ApiProperty() From da75d72396efa818d9269387ea960e299b11ce71 Mon Sep 17 00:00:00 2001 From: Pavel Strunkin Date: Mon, 16 Nov 2020 20:01:46 +0200 Subject: [PATCH 2/2] Update workflow.yml --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7984cc9d..f161e877 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup Node.js environment - uses: actions/setup-node@v1.4.2 + uses: actions/setup-node@v1.4.4 - name: Install npm dependencies run: npm ci