Generate a concise MR title and structured MR description with feature-wise changes, code logic summary, bug fixes, and DB/schema notes. Use when the user wants merge request or pull request writeup.
Generate a merge request writeup in the following format.
Title: <short MR title>
Description:
Before generating the MR writeup:
Ask the user for the base branch of the MR
dev, but confirm with user if not providedIdentify the current branch
Collect code differences using git in the following priority:
a) Unstaged changes (working directory):
git diffb) Staged changes:
git diff --cachedc) Committed changes vs base branch:
git diff <base-branch>...HEADgit diff --stat <base-branch>...HEADgit diff --name-only <base-branch>...HEADCombine all relevant diffs to understand the full scope of changes
Use this combined diff as the primary context
From the diff, infer:
If the diff is not enough to clearly infer intent:
Use context in this order:
git diff)git diff --cached)git diff <base-branch>...HEAD)If multiple sources are available, combine them. Prefer real diff over user description. Do not over-explain.
Title: Add connector catalog and connection state
Description:
If no diff is found, inform the user and ask for changes summary instead of generating empty output.