Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(action): skip annotate (#16102)

p0nya8c8a550cbf8
diff --git a/action/bitbucket.go b/action/bitbucket.go
index 483028aeca..48a8d7b9c9 100644
--- a/action/bitbucket.go
+++ b/action/bitbucket.go
@@ -131,6 +131,9 @@ func createBitbucketReport(checkResponse *v1pb.CheckReleaseResponse) error {
count++
}
}
+ if len(data) == 0 {
+ return nil
+ }
annotationsData, err := json.MarshalIndent(data, "", " ")
if err != nil {
return errors.Wrapf(err, "error marshaling json")