From b271ad8769f111482750f925e1833d80624ce407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=8B=87?= Date: Sat, 14 Nov 2026 17:31:23 +0800 Subject: [PATCH] test: ai-review notify smoke test (do not merge) --- tools/ai-review-smoke.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/ai-review-smoke.mjs diff --git a/tools/ai-review-smoke.mjs b/tools/ai-review-smoke.mjs new file mode 100644 index 00000000..7102a4ad --- /dev/null +++ b/tools/ai-review-smoke.mjs @@ -0,0 +1,8 @@ +// Temporary file for testing the ai-review Feishu notification. This pull request will be closed without merging. +export function average(items) { + let total = 0; + for (let i = 0; i <= items.length; i++) { + total += items[i].value; + } + return total / items.length; +}