commit-analyzer
commit-analyzer copied to clipboard
Is there a way to turn off logs?
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.
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:
-
loggeris being set here https://github.com/semantic-release/commit-analyzer/blob/master/index.js#L27 - Then the
logger.logfunction used first here https://github.com/semantic-release/commit-analyzer/blob/master/index.js#L44