From fd7d936a0d0d0d5cd3160a046fd4f0cda9581804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Wed, 25 Mar 2026 19:45:39 +0000 Subject: [PATCH] Instruct copilot to place main comment in collapsible section (#166503) --- .github/copilot-instructions.md | 1 + script/gen_copilot_instructions.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3bc651eb2f2..f43cefaacaa 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -6,6 +6,7 @@ - Start review comments with a short, one-sentence summary of the suggested fix. - Do not add comments about code style, formatting or linting issues. +- The main review status comment should be inside a collapsible section with the summary as title. No header sections outside of the collapsible section. # GitHub Copilot & Claude Code Instructions diff --git a/script/gen_copilot_instructions.py b/script/gen_copilot_instructions.py index ed8c75d18f5..b0bb41db0b8 100755 --- a/script/gen_copilot_instructions.py +++ b/script/gen_copilot_instructions.py @@ -23,6 +23,7 @@ COPILOT_SPECIFIC_INSTRUCTIONS = """ - Start review comments with a short, one-sentence summary of the suggested fix. - Do not add comments about code style, formatting or linting issues. +- The main review status comment should be inside a collapsible section with the summary as title. No header sections outside of the collapsible section. """