Skip to content

Commit 248ff4b

Browse files
committed
[chores] Hide coderabbitai reviews in activity feed
1 parent 831e698 commit 248ff4b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

js/activity/feed.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ function createActivityFeed(options) {
294294

295295
if (!eventType) return; // don't display if event not handled above
296296

297+
// truncate AI reviews to avoid flooding the feed
298+
if (field.actor.login === "coderabbitai[bot]") {
299+
content = "";
300+
}
301+
297302
if (!$(".feed-container div").length) $(".feed-container").html("");
298303

299304
// Define a template using a template literal

theme/templates/page-activity.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% extends "page.html" %}
22
{% block scripts %}
3-
<script src="{{ SITEURL }}/theme/js/activity.min.js?v=1"></script>
3+
<script src="{{ SITEURL }}/theme/js/activity.min.js?v=2"></script>
44
{% endblock %}

0 commit comments

Comments
 (0)