Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: out-format #770

Merged
merged 1 commit into from Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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