microsoft/hve-core

Public

mirrored from https://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
hve-core-v2.1.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/prompts/git-commit-message.prompt.md

24lines · modecode

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