Skip to content

Commit eaae77e

Browse files
author
Auto-Co AI
committed
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.
1 parent 09347e4 commit eaae77e

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ Categorizes files into Source Code, Configuration, Tests, Documentation, and Ass
7777
7878
Everything in Standard, plus a diff preview showing the first 3000 characters of the diff — useful for reviewers who want context without switching tabs.
7979
80+
### Summary Only
81+
82+
Just the summary line — file count and change categories. No file list, no categorization. Best for teams that want a quick overview without clutter.
83+
84+
```
85+
## Summary
86+
3 files changed — 1 feature, 1 test update, 1 config change
87+
```
88+
8089
### Minimal
8190
8291
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:
147156
| `openai-model` | No | `gpt-4o-mini` | OpenAI model name |
148157
| `mode` | No | `template` | `template` or `ai` |
149158
| `update-title` | No | `false` | Update PR title too |
150-
| `template-style` | No | `standard` | `standard`, `detailed`, or `minimal` |
159+
| `template-style` | No | `standard` | `standard`, `detailed`, `minimal`, or `summary-only` |
151160
| `custom-template` | No | — | Inline custom markdown template with `{{summary}}`, `{{files}}`, `{{changes}}`, `{{file_count}}` placeholders |
152161
| `custom-template-file` | No | — | Path to a file in the repo containing a custom markdown template |
153162
| `generate-changelog` | No | `false` | When `true`, generates changelog entries from merged PRs |

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,17 @@ $(cat /tmp/pr_files.txt 2>/dev/null || echo "None")
425425

426426
---
427427

428+
###### 🤖 Generated by [DocuCraft](https://github.com/${{ github.repository }})
429+
DESC_EOF
430+
)
431+
elif [ "$STYLE" = "summary-only" ]; then
432+
DESCRIPTION=$(cat <<DESC_EOF
433+
## Summary
434+
435+
$SUMMARY
436+
437+
---
438+
428439
###### 🤖 Generated by [DocuCraft](https://github.com/${{ github.repository }})
429440
DESC_EOF
430441
)

0 commit comments

Comments
 (0)