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

Is there a way to turn off logs? #340

Open
asibilia opened this issue May 20, 2022 · 1 comment
Open

Is there a way to turn off logs? #340

asibilia opened this issue May 20, 2022 · 1 comment

Comments

@asibilia
Copy link

Since every commit being analyzed is logged (with the description as well as the commit message) we sometimes ned up with thousands of lines of logs in our GH Actions consoles when merging together multiple branches... to the point where the browser almost crashes.

@jveldboom
Copy link

You should be able to turn off logging by setting the logger to return undefined or true.

Something like this:

const context = {
  commits: [],
  logger: {
    log: () => undefined
  }
}
let bump = await commit.analyzeCommits(pluginConfig, context)

// or one line
let bump = await commit.analyzeCommits(pluginConfig, { commits, logger: { log: () => undefined } })

For more context:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants