Skip to content

Add option to hide prek verbose logs#78

Merged
j178 merged 1 commit into
mainfrom
hide-log
Mar 15, 2026
Merged

Add option to hide prek verbose logs#78
j178 merged 1 commit into
mainfrom
hide-log

Conversation

@j178

@j178 j178 commented Mar 15, 2026

Copy link
Copy Markdown
Owner

Closes #45

Copilot AI review requested due to automatic review settings March 15, 2026 10:46
@j178 j178 added the enhancement New feature or request label Mar 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a show-verbose-logs input to the prek GitHub Action, defaulting to true, allowing users to suppress verbose log output after prek run.

Changes:

  • New show-verbose-logs action input with default true, wired through getInputs() and conditionally gating showVerboseLogs() in main.ts
  • Tests and documentation for the new option
  • Bundled dist files updated accordingly

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
action.yaml Declares new show-verbose-logs input
src/shared.ts Adds showVerboseLogs to Inputs type and parsing
src/main.ts Conditionally calls showVerboseLogs() based on input
test/shared.test.ts Test for default and opt-out behavior
README.md Documents the new input with an example
dist/index.js Bundled main entry
dist/post/index.js Bundled post entry

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@j178 j178 merged commit 7826f62 into main Mar 15, 2026
13 checks passed
@j178 j178 deleted the hide-log branch March 15, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disable verbose output at the end

2 participants