Skip to content

Commit 62a48b0

Browse files
committed
fix(ci): remove redundant silent and debug options, use CP_VERBOSE env
1 parent edfd95d commit 62a48b0

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

packages/ci/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Optionally, you can override default options for further customization:
103103
| `nxProjectsFilter` | `string \| string[]` | `'--with-target={task}'` | Arguments passed to [`nx show projects`](https://nx.dev/nx-api/nx/documents/show#projects), only relevant for Nx in [monorepo mode](#monorepo-mode) [^2] |
104104
| `directory` | `string` | `process.cwd()` | Directory in which Code PushUp CLI should run |
105105
| `config` | `string \| null` | `null` [^1] | Path to config file (`--config` option) |
106-
| `silent` | `boolean` | `false` | Hides logs from CLI commands (errors will be printed) |
107106
| `bin` | `string` | `'npx --no-install code-pushup'` | Command for executing Code PushUp CLI |
108107
| `detectNewIssues` | `boolean` | `true` | Toggles if new issues should be detected and returned in `newIssues` property |
109108
| `skipComment` | `boolean` | `false` | Toggles if comparison comment is posted to PR |

packages/ci/src/lib/models.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export type Options = {
1515
bin?: string;
1616
config?: string | null;
1717
directory?: string;
18-
silent?: boolean;
19-
debug?: boolean;
2018
detectNewIssues?: boolean;
2119
skipComment?: boolean;
2220
configPatterns?: ConfigPatterns | null;

packages/ci/src/lib/run-utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export async function createRunEnv(
9090
options: Options | undefined,
9191
git: SimpleGit,
9292
): Promise<RunEnv> {
93-
logger.setVerbose(options?.debug === true || options?.silent === false);
94-
9593
const [head, base] = await Promise.all([
9694
normalizeGitRef(refs.head, git),
9795
refs.base && normalizeGitRef(refs.base, git),

packages/ci/src/lib/settings.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export const DEFAULT_SETTINGS: Settings = {
1010
bin: 'npx --no-install code-pushup',
1111
config: null,
1212
directory: process.cwd(),
13-
silent: false,
14-
debug: false,
1513
detectNewIssues: true,
1614
nxProjectsFilter: '--with-target={task}',
1715
skipComment: false,

0 commit comments

Comments
 (0)