microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
.github/prompts/git-commit-message.prompt.md
23lines · modecode
| 1 | --- |
| 2 | agent: 'agent' |
| 3 | description: 'Generates a commit message following the commit-message.instructions.md rules based on all changes in the branch' |
| 4 | --- |
| 5 | |
| 6 | # Generate Commit Message |
| 7 | |
| 8 | Follow all instructions from #file:../instructions/commit-message.instructions.md |
| 9 | |
| 10 | ## Input |
| 11 | |
| 12 | ${input:useTerminal:true} - When `true` use the `run_in_terminal` tool with `git --no-pager diff --staged`. |
| 13 | |
| 14 | ## Protocol |
| 15 | |
| 16 | * Use ${input:useTerminal} to either use `git` or `get_changed_files` tool to get the diff of staged changes. |
| 17 | * Review the complete diff and build a high quality commit message following the commit message instructions. |
| 18 | * Output to the user this commit message inside a markdown code block. |
| 19 | * Inform the user that they should copy it as-is or modify it and use it for their commit message. |
| 20 | |
| 21 | --- |
| 22 | |
| 23 | Proceed to generate the commit message |
| 24 | |