Create squash-message
create squash-message - Generate squash commit message from branch commits
Analyzes all commits in the current branch compared to the base branch and generates a comprehensive, cohesive commit message suitable for squash merges in pull requests or local branch merging.
This command examines the full commit history and cumulative diff to create a message that accurately represents the entire feature or change set, rather than individual commit details.
The generated message is designed to be copied into GitHub's PR squash merge UI for use when squashing and merging pull requests.
Flags
| Flag | Description |
|---|---|
--base (default: main) |
Base branch for comparison |
-d, --debug (default: false) |
Enable debug mode to save intermediate outputs |
Notes
Expected Output:
- Comprehensive commit message for squash merge
- Suitable for GitHub PR squash merge UI
Examples
Custom Prompts
The squash message generation supports three-tier prompt system for customization:
- Command Flag:
--prompt /path/to/custom.md(highest priority) - Team Override:
.r2r/eac/templates/ai/commit/squash.md(team-wide customization) - System Default:
templates/ai/commit/squash.md(fallback)
See commit-message for detailed customization guide or:
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.