Bitbucket Comment Reporter

September 23, 2024 ยท 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)

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
JOB_SUMMARY_ADDITIONAL_MARKDOWNCustom markdown to add at the end of the summary message