Skip to content

Commit ef8ffd8

Browse files
committed
fix: out-format
1 parent c57cc43 commit ef8ffd8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

dist/post_run/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
6663766637
const res = yield execShellCommand(`${lintPath} cache status`);
6663866638
printOutput(res);
6663966639
}
66640-
const userArgs = core.getInput(`args`);
66640+
let userArgs = core.getInput(`args`);
6664166641
const addedArgs = [];
6664266642
const userArgsList = userArgs
6664366643
.trim()
@@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
6665666656
.concat("github-actions")
6665766657
.join(",");
6665866658
addedArgs.push(`--out-format=${formats}`);
66659+
userArgs = userArgs.replace(/--out-format=[^ ]+/gi, "").trim();
6665966660
if (patchPath) {
6666066661
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
6666166662
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);

dist/run/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
6663766637
const res = yield execShellCommand(`${lintPath} cache status`);
6663866638
printOutput(res);
6663966639
}
66640-
const userArgs = core.getInput(`args`);
66640+
let userArgs = core.getInput(`args`);
6664166641
const addedArgs = [];
6664266642
const userArgsList = userArgs
6664366643
.trim()
@@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
6665666656
.concat("github-actions")
6665766657
.join(",");
6665866658
addedArgs.push(`--out-format=${formats}`);
66659+
userArgs = userArgs.replace(/--out-format=[^ ]+/gi, "").trim();
6665966660
if (patchPath) {
6666066661
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
6666166662
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);

src/run.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
118118
printOutput(res)
119119
}
120120

121-
const userArgs = core.getInput(`args`)
121+
let userArgs = core.getInput(`args`)
122122
const addedArgs: string[] = []
123123

124124
const userArgsList = userArgs
@@ -141,6 +141,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
141141
.join(",")
142142

143143
addedArgs.push(`--out-format=${formats}`)
144+
userArgs = userArgs.replace(/--out-format=\S+/gi, "").trim()
144145

145146
if (patchPath) {
146147
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {

0 commit comments

Comments
 (0)