Skip to content

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

create squash-message
create squash-message --base=develop
create squash-message --debug

Custom Prompts

The squash message generation supports three-tier prompt system for customization:

  1. Command Flag: --prompt /path/to/custom.md (highest priority)
  2. Team Override: .r2r/eac/templates/ai/commit/squash.md (team-wide customization)
  3. System Default: templates/ai/commit/squash.md (fallback)

See commit-message for detailed customization guide or:

cat .r2r/eac/templates/ai/README.md

See Also


Tutorials | How-to Guides | Explanation | Reference

You are here: Reference — information-oriented technical descriptions of the system.