fix: out-format (#770)
This commit is contained in:
parent
c57cc43669
commit
569abaa281
3
dist/post_run/index.js
vendored
3
dist/post_run/index.js
vendored
@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
|
|||||||
const res = yield execShellCommand(`${lintPath} cache status`);
|
const res = yield execShellCommand(`${lintPath} cache status`);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
const userArgs = core.getInput(`args`);
|
let userArgs = core.getInput(`args`);
|
||||||
const addedArgs = [];
|
const addedArgs = [];
|
||||||
const userArgsList = userArgs
|
const userArgsList = userArgs
|
||||||
.trim()
|
.trim()
|
||||||
@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
|
|||||||
.concat("github-actions")
|
.concat("github-actions")
|
||||||
.join(",");
|
.join(",");
|
||||||
addedArgs.push(`--out-format=${formats}`);
|
addedArgs.push(`--out-format=${formats}`);
|
||||||
|
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||||
if (patchPath) {
|
if (patchPath) {
|
||||||
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
|
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`);
|
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
|
||||||
|
3
dist/run/index.js
vendored
3
dist/run/index.js
vendored
@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
|
|||||||
const res = yield execShellCommand(`${lintPath} cache status`);
|
const res = yield execShellCommand(`${lintPath} cache status`);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
const userArgs = core.getInput(`args`);
|
let userArgs = core.getInput(`args`);
|
||||||
const addedArgs = [];
|
const addedArgs = [];
|
||||||
const userArgsList = userArgs
|
const userArgsList = userArgs
|
||||||
.trim()
|
.trim()
|
||||||
@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
|
|||||||
.concat("github-actions")
|
.concat("github-actions")
|
||||||
.join(",");
|
.join(",");
|
||||||
addedArgs.push(`--out-format=${formats}`);
|
addedArgs.push(`--out-format=${formats}`);
|
||||||
|
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||||
if (patchPath) {
|
if (patchPath) {
|
||||||
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
|
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`);
|
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
|
||||||
|
@ -118,7 +118,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
|||||||
printOutput(res)
|
printOutput(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
const userArgs = core.getInput(`args`)
|
let userArgs = core.getInput(`args`)
|
||||||
const addedArgs: string[] = []
|
const addedArgs: string[] = []
|
||||||
|
|
||||||
const userArgsList = userArgs
|
const userArgsList = userArgs
|
||||||
@ -141,6 +141,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
|||||||
.join(",")
|
.join(",")
|
||||||
|
|
||||||
addedArgs.push(`--out-format=${formats}`)
|
addedArgs.push(`--out-format=${formats}`)
|
||||||
|
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim()
|
||||||
|
|
||||||
if (patchPath) {
|
if (patchPath) {
|
||||||
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
|
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user