From e878e0a1eb1a98bc971edd375df2f3d4babac21a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 10 Apr 2026 10:44:33 +0200 Subject: [PATCH] style: use compact Unicode symbols instead of emoji in CLI output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds AGENTS.md with CLI output style guideline: prefer compact Unicode symbols (✓ ✗ ● ○ —) over emoji for consistent terminal rendering. Replaces all emoji in the stack module (setup.py, pre-push.sh) with the compact symbols to match the queue module's existing style. Change-Id: Ie9a1cbe04ce1abdd5866e9f7de6d7000e95b9675 Claude-Session-Id: 2d9f4a52-4a1d-4a50-a459-3b57847dec9f --- AGENTS.md | 20 ++++++++++++++++++++ mergify_cli/stack/hooks/scripts/pre-push.sh | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..77483aa --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,20 @@ +# Agent Instructions + +## CLI Output Style + +Use compact Unicode symbols for terminal output, not emoji. This keeps new and +updated terminal output consistent and avoids rendering issues across terminals. + +**Preferred symbols:** +- `✓` success, approved, merged +- `✗` failure, conflict, changes requested +- `●` active, pending, in progress +- `○` inactive, skipped, none +- `—` unknown, not applicable + +**Avoid in terminal output:** `✅`, `❌`, `🟢`, `🔴`, `📝`, `⚠️`, `🔄`, `📦`, `🤖`, `🔗` +and other emoji. They can render at inconsistent widths across terminals and +break column alignment. + +**Exception:** Emoji are acceptable in markdown output destined for GitHub +(PR comments, CI summaries) where they render consistently. diff --git a/mergify_cli/stack/hooks/scripts/pre-push.sh b/mergify_cli/stack/hooks/scripts/pre-push.sh index 56c34fa..9a0bbae 100755 --- a/mergify_cli/stack/hooks/scripts/pre-push.sh +++ b/mergify_cli/stack/hooks/scripts/pre-push.sh @@ -40,7 +40,7 @@ if test "$has_change_id" -eq 0; then fi echo "" -echo "⚠ This branch is managed by Mergify stacks." +echo "This branch is managed by Mergify stacks." echo " Use 'mergify stack push' instead of 'git push'." echo "" echo " 'mergify stack push' will:"