Skip to content

Commit a94c21f

Browse files
authored
Merge pull request #74 from Visual-Regression-Tracker/142-add-build-name
ciBuildId validation added
2 parents c05438f + da75d72 commit a94c21f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717

1818
- name: Setup Node.js environment
19-
uses: actions/[email protected].2
19+
uses: actions/[email protected].4
2020

2121
- name: Install npm dependencies
2222
run: npm ci

src/builds/dto/build-create.dto.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { ApiProperty } from '@nestjs/swagger';
2-
import { IsString, IsOptional } from 'class-validator';
2+
import { IsString, IsOptional, IsNotEmpty } from 'class-validator';
33

44
export class CreateBuildDto {
55
@ApiProperty()
66
@IsOptional()
7+
@IsString()
8+
@IsNotEmpty()
79
readonly ciBuildId?: string;
810

911
@ApiProperty()

0 commit comments

Comments
 (0)