Skip to content

Commit 13477a1

Browse files
committed
Add option to mark baseline in PDF upload and HTTP client
1 parent 9ea1aee commit 13477a1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/commander/uploadPdf.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ command
1414
.argument('<directory>', 'Path of the directory containing PDFs')
1515
.option('--fetch-results [filename]', 'Fetch results and optionally specify an output file, e.g., <filename>.json')
1616
.option('--buildName <string>', 'Specify the build name')
17+
.option('--markBaseline', 'Mark this build baseline')
1718
.action(async function(directory, _, command) {
1819
const options = command.optsWithGlobals();
1920
if (options.buildName === '') {

src/lib/httpClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@ export default class httpClient {
675675
if (ctx.build.name !== undefined && ctx.build.name !== '') {
676676
form.append('buildName', buildName);
677677
}
678+
if (ctx.options.markBaseline) {
679+
form.append('markBaseline', ctx.options.markBaseline);
680+
}
678681

679682
try {
680683
const response = await this.axiosInstance.request({

0 commit comments

Comments
 (0)