File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
66637
66637
const res = yield execShellCommand(`${lintPath} cache status`);
66638
66638
printOutput(res);
66639
66639
}
66640
- const userArgs = core.getInput(`args`);
66640
+ let userArgs = core.getInput(`args`);
66641
66641
const addedArgs = [];
66642
66642
const userArgsList = userArgs
66643
66643
.trim()
@@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
66656
66656
.concat("github-actions")
66657
66657
.join(",");
66658
66658
addedArgs.push(`--out-format=${formats}`);
66659
+ userArgs = userArgs.replace(/--out-format=[^ ]+/gi, "").trim();
66659
66660
if (patchPath) {
66660
66661
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
66661
66662
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
Original file line number Diff line number Diff line change @@ -66637,7 +66637,7 @@ function runLint(lintPath, patchPath) {
66637
66637
const res = yield execShellCommand(`${lintPath} cache status`);
66638
66638
printOutput(res);
66639
66639
}
66640
- const userArgs = core.getInput(`args`);
66640
+ let userArgs = core.getInput(`args`);
66641
66641
const addedArgs = [];
66642
66642
const userArgsList = userArgs
66643
66643
.trim()
@@ -66656,6 +66656,7 @@ function runLint(lintPath, patchPath) {
66656
66656
.concat("github-actions")
66657
66657
.join(",");
66658
66658
addedArgs.push(`--out-format=${formats}`);
66659
+ userArgs = userArgs.replace(/--out-format=[^ ]+/gi, "").trim();
66659
66660
if (patchPath) {
66660
66661
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
66661
66662
throw new Error(`please, don't specify manually --new* args when requesting only new issues`);
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
118
118
printOutput ( res )
119
119
}
120
120
121
- const userArgs = core . getInput ( `args` )
121
+ let userArgs = core . getInput ( `args` )
122
122
const addedArgs : string [ ] = [ ]
123
123
124
124
const userArgsList = userArgs
@@ -141,6 +141,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
141
141
. join ( "," )
142
142
143
143
addedArgs . push ( `--out-format=${ formats } ` )
144
+ userArgs = userArgs . replace ( / - - o u t - f o r m a t = \S + / gi, "" ) . trim ( )
144
145
145
146
if ( patchPath ) {
146
147
if ( userArgNames . has ( `new` ) || userArgNames . has ( `new-from-rev` ) || userArgNames . has ( `new-from-patch` ) ) {
You can’t perform that action at this time.
0 commit comments