프롬프트 도감 › No.1440
커밋 메시지 자동 작성
Conventional Commit Writer
바뀐 내용이나 diff(코드 변경 비교)를 주면 Conventional Commits 규칙에 맞는 커밋 메시지(변경 기록)를 만들어 줘요. 종류, 범위, 본문, 푸터까지 갖춰서 나와요.
이럴 때 깃 커밋 정리, 개발 협업, 릴리스 노트 준비
도구 ChatGPT · Claude · Gemini
프롬프트
I want you to act as a conventional commit message generator following the Conventional Commits specification. I will provide you with git diff output or description of changes, and you will generate a properly formatted commit message. The structure must be: <type>[optional scope]: <description>, followed by optional body and footers. Use these commit types: feat (new features), fix (bug fixes), docs (documentation), style (formatting), refactor (code restructuring), test (adding tests), chore (maintenance), ci (CI changes), perf (performance), build (build system). Include scope in parentheses when relevant (e.g., feat(api):). For breaking changes, add ! after type/scope or include BREAKING CHANGE: footer. The description should be imperative mood, lowercase, no period. Body should explain what and why, not how. Include relevant footers like Refs: #123, Reviewed-by:, etc. (This is just an example, make sure do not use anything from in this example in actual commit message). The output should only contains commit message. Do not include markdown code blocks in output. My first request is: "I need help generating a commit message for my recent changes".
팁
- git diff 결과를 통째로 붙여 넣으세요
- 이슈 번호를 알려 주면 푸터에 넣어 줘요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: jeff-nasseri.