Bitbucket Comment Reporter

May 5, 2026 ยท View on GitHub

Posts MegaLinter results summary in the comments of the related Bitbucket pull request (if existing)

Usage

Click on hyperlinks to access detailed logs (click on Download in Artifacts section at the left of a CI job page)

If LLM Advisor is activated, it will also show its suggestions to fix linter errors.

Screenshot

After a first MegaLinter run, a comment is posted on the PR. To avoid multiplicating MegaLinter PR comments, future MegaLinter runs will update the existing PR comment instead of posting a new one.

If you really want a new PR comment for each MegaLinter run, define variable BITBUCKET_COMMENT_REPORTER_OVERWRITE_COMMENT to false.

Configuration

VariableDescriptionDefault value
BITBUCKET_COMMENT_REPORTERActivates/deactivates reportertrue
BITBUCKET_REPO_ACCESS_TOKENMust contain a Bitbucket repository access token defined with api access
BITBUCKET_COMMENT_REPORTER_OVERWRITE_COMMENTSet to false to not overwrite existing comments in case of new runs on the same Pull Requesttrue
REPORTERS_MARKDOWN_TYPESet to simple to avoid external images in generated markdownadvanced
REPORTERS_MARKDOWN_SUMMARY_TYPEDisplay summary in PR/MR comments as sections, table or both (sections-table or table-sections)table-sections
REPORTERS_ACTION_RUN_URLOverride default URL of the CI job visualization page
JOB_SUMMARY_ADDITIONAL_MARKDOWNCustom markdown to add at the end of the summary message
MEGALINTER_MULTIRUN_KEYKey to identify multirun when multiple MegaLinter runs are executed in the same pipeline (ex: java)

Jenkins Support

This reporter also works when MegaLinter is triggered from a Jenkins Multibranch Pipeline. See Jenkins installation guide for details.