fix default behaviour
@@ -359,14 +359,18 @@ github-pr-check reporter as a fallback.
cs = bbservice.NewReportAnnotator(client, reportName,
build.Owner, build.Repo, build.SHA)
- // by default scan whole project.
+ // by default scan whole project with "filter.ModeNoFilter"
// Bitbucket pipelines doesn't give an easy way to know
// which commit run pipeline before so we can comapre between them
// however once PR is opened, Bitbucket Reports UI will do automatic
// filtering of annotations dividing them in two groups:
// - This pull request (10)
// - All (50)
- if opt.diffCmd == "" || opt.filterMode == filter.ModeNoFilter {
+ if opt.diffCmd == "" && opt.filterMode == filter.ModeDefault {
+ opt.filterMode = filter.ModeNoFilter
+ }
+
+ if opt.filterMode == filter.ModeNoFilter {
ds = &reviewdog.EmptyDiff{}
} else {
d, err := diffService(opt.diffCmd, opt.diffStrip)
