diff --git a/.cursor/BUGBOT.md b/.cursor/BUGBOT.md new file mode 100644 index 0000000000..64fc389efc --- /dev/null +++ b/.cursor/BUGBOT.md @@ -0,0 +1,17 @@ +# Bugbot rules for redis/docs + +## Repo memory comments + +Some PRs have a "Redis Memory" comment listing earlier PRs from the repository history. +Treat each listed PR as prior art for the change under review. Its squash commit message +can record `Constraint:`, `Learned:` and `Gaps:` lines: rules the earlier change +established and mistakes it fixed. Check the diff against them and flag any violation. + +To read a listed PR's squash message, run `git log --grep "(#)" -1 --format=%B` +if the checkout has history. If you cannot read it, say so in your review. Do not guess +what it says. + +## Probe canary + +If the Redis Memory comment lists PR #4287, quote the first `Learned:` line of its squash +message verbatim in your review, and say how you obtained it. diff --git a/local_examples/geoindex/go-redis/geo_index_test.go b/local_examples/geoindex/go-redis/geo_index_test.go index b503451b0c..09eece51f4 100644 --- a/local_examples/geoindex/go-redis/geo_index_test.go +++ b/local_examples/geoindex/go-redis/geo_index_test.go @@ -191,7 +191,7 @@ func ExampleClient_geoindex() { // OK // OK // OK - // {1 [{product:46885 map[$:{"city":"Denver","description":"Navy Blue Slippers","location":"-104.991531, 39.742043","price":45.99}] }] []} + // {1 [{product:46885 map[$:{"city":"Denver","description":"Navy Blue Slippers","location":"-104.991531, 39.742043","price":45.99}] }]} // OK // OK // OK