From eaae77e25e5a511fb23d641baafbcbf3d7886484 Mon Sep 17 00:00:00 2001 From: Auto-Co AI Date: Sat, 20 Jun 2026 04:34:17 +0000 Subject: [PATCH] Add summary-only template style for compact PR summaries New template-style: summary-only outputs just the summary line (file count + change categories) without file lists or categorization. Useful for teams that want a quick overview without clutter. --- README.md | 11 ++++++++++- action.yml | 11 +++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a704407..13663ae 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ Categorizes files into Source Code, Configuration, Tests, Documentation, and Ass Everything in Standard, plus a diff preview showing the first 3000 characters of the diff — useful for reviewers who want context without switching tabs. +### Summary Only + +Just the summary line — file count and change categories. No file list, no categorization. Best for teams that want a quick overview without clutter. + +``` +## Summary +3 files changed — 1 feature, 1 test update, 1 config change +``` + ### Minimal A clean, simple file list with summary. No categorization, no diff preview. Best for small PRs or teams that prefer brevity. @@ -147,7 +156,7 @@ Add your OpenAI API key as a repository secret and enable AI mode: | `openai-model` | No | `gpt-4o-mini` | OpenAI model name | | `mode` | No | `template` | `template` or `ai` | | `update-title` | No | `false` | Update PR title too | -| `template-style` | No | `standard` | `standard`, `detailed`, or `minimal` | +| `template-style` | No | `standard` | `standard`, `detailed`, `minimal`, or `summary-only` | | `custom-template` | No | — | Inline custom markdown template with `{{summary}}`, `{{files}}`, `{{changes}}`, `{{file_count}}` placeholders | | `custom-template-file` | No | — | Path to a file in the repo containing a custom markdown template | | `generate-changelog` | No | `false` | When `true`, generates changelog entries from merged PRs | diff --git a/action.yml b/action.yml index a877d4d..99db128 100644 --- a/action.yml +++ b/action.yml @@ -425,6 +425,17 @@ $(cat /tmp/pr_files.txt 2>/dev/null || echo "None") --- +###### 🤖 Generated by [DocuCraft](https://github.com/${{ github.repository }}) +DESC_EOF +) + elif [ "$STYLE" = "summary-only" ]; then + DESCRIPTION=$(cat <