"reportOutput": [
"output-plugin",
[
"output-plugin-with-options",
{
"option1": "val",
"option2": true
}
]
]
Create check run, post commit status and a detailed comment on your PR.
Use default options
"reportOutput": ["github"]
Override default options
"reportOutput": [
[
"github",
{
"checkRun": false,
"commitStatus": true,
"prComment": true
}
]
]
type: boolean
default: false
Creates check run, add a check to GitHub checks page, will also create commit status.
type: boolean
default: true
Post commit status
type: boolean
default: true
Post comment on PR
Save raw results in json file.
Use default options
"reportOutput": ["json"]
Override default options
"reportOutput": [
[
"json",
{
"fileName": "fantastic-file-name.json"
}
]
]
type: string
default: bundlemon-results.json
Use custom file name for results.
Use your own implementation to output or process results.
path
option is required.
"reportOutput": [
[
"custom",
{
"path": "custom-output.js"
}
]
]
In the root of your project create custom-output.js
:
// Function that accepts generated report as parameter
const output = (report) => {
console.log(report);
};
module.exports = output;
The output function can also be async:
module.exports = async (report) => {
console.log(report);
await writeToStorage(report);
};
TODO: Document report object structure.
type: string
Relative path to the js file exporting a function.