Add config files for commit and pull request messages

- Created `ait.commit.sample.config.json` with parameters for generating commit messages
- Created `ait.pull.sample.config.json` with parameters for generating pull request messages
This commit is contained in:
2024-08-19 16:28:13 +02:00
parent 2dce81fcdb
commit bbe01ebf82
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{
"api_key": "YOUR_OPENAI_API_KEY_HERE",
"diff_expression": "--cached",
"log_expression": "--oneline HEAD",
"system_prompt": "**You are an automatic commit message generator and an expert in this field!**",
"prompt": "Generate a concise commit message based on the provided Git diffs, including:\\n - A short and direct subject line (under 50 characters) summarizing the specific changes. No formatting should be used in the subject line.\\n - A brief bullet-point list of the exact modifications made, with basic Markdown formatting allowed in the body.\\n \\n Focus strictly on the changes themselves, avoiding any speculation about the reasons or potential impacts. Ensure that the message is informative enough to understand the changes without needing additional context.",
"model": "gpt-4o",
"max_tokens": 1000,
"temperature": 0.7
}