Skip to content

Commit

Permalink
fix: out-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 12, 2023
1 parent c57cc43 commit 9bc3c62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/post_run/index.js
Expand Up @@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
const res = yield execShellCommand(`${lintPath} cache status`);
printOutput(res);
}
const userArgs = core.getInput(`args`);
let userArgs = core.getInput(`args`);
const addedArgs = [];
const userArgsList = userArgs
.trim()
Expand All @@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
.concat("github-actions")
.join(",");
addedArgs.push(`--out-format=${formats}`);
userArgs = userArgs.replace(/--out-format=\S+/gi, "").trim();
if (patchPath) {
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
Expand Down
3 changes: 2 additions & 1 deletion dist/run/index.js
Expand Up @@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
const res = yield execShellCommand(`${lintPath} cache status`);
printOutput(res);
}
const userArgs = core.getInput(`args`);
let userArgs = core.getInput(`args`);
const addedArgs = [];
const userArgsList = userArgs
.trim()
Expand All @@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
.concat("github-actions")
.join(",");
addedArgs.push(`--out-format=${formats}`);
userArgs = userArgs.replace(/--out-format=\S+/gi, "").trim();
if (patchPath) {
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
Expand Down
3 changes: 2 additions & 1 deletion src/run.ts
Expand Up @@ -118,7 +118,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
printOutput(res)
}

const userArgs = core.getInput(`args`)
let userArgs = core.getInput(`args`)
const addedArgs: string[] = []

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

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

if (patchPath) {
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
Expand Down

0 comments on commit 9bc3c62

Please sign in to comment.