Generate Git Title and Description
Generate a commit message based on the latest changes without committing.
Process
- •Check
git difffor current changes - •If no changes, check the last commit's diff
- •Generate title and description
- •Display the message
- •Copy to clipboard using
pbcopy(macOS)
Message Format
Two sections (no headers):
- •Problem: - Describe the issue being solved
- •Solution: - Describe how it was solved
Guidelines
- •Keep it short and on point
- •Use markdown to format code variables and identifiers
- •Use at most three paragraphs (single paragraph if changes are small)
- •Do NOT include test changes
- •Write like a principal software engineer: simple, easy to understand, no complex words
- •If the Problem is unclear, ask the user
Example Output
code
Problem: AWS's API call limit is 200. Using more than 200 requests causes the error: "error": "describe : describe vpc endpoints: operation error EC2: DescribeVPCEndpoints, https response error StatusCode: 400, RequestID: a4643f0b-75b0-4597-83ed-0d1acff666ad, api error InvalidParameterValue: The maximum number of filter values specified on a single call is 200", Solution: Decrease the number of filter values per call from 300 to 50.