From bbe01ebf8224029df0730c409185b1406aaf023e Mon Sep 17 00:00:00 2001 From: Max P Date: Mon, 19 Aug 2024 16:28:13 +0200 Subject: [PATCH] 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 --- ait.commit.sample.config.json | 10 ++++++++++ ait.pull.sample.config.json | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ait.commit.sample.config.json create mode 100644 ait.pull.sample.config.json diff --git a/ait.commit.sample.config.json b/ait.commit.sample.config.json new file mode 100644 index 0000000..2851a8f --- /dev/null +++ b/ait.commit.sample.config.json @@ -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 +} \ No newline at end of file diff --git a/ait.pull.sample.config.json b/ait.pull.sample.config.json new file mode 100644 index 0000000..bd19807 --- /dev/null +++ b/ait.pull.sample.config.json @@ -0,0 +1,10 @@ +{ + "api_key": "YOUR_OPENAI_API_KEY_HERE", + "diff_expression": "main...", + "log_expression": "main...", + "system_prompt": "**You are an automatic pull request message generator and an expert in this field!**", + "prompt": "Generate a concise pull request 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 - A detailed description in Markdown format explaining the changes, their purpose, and any additional context that is relevant for the reviewers.\\n \\n Focus strictly on the changes themselves, avoiding any speculation about the reasons or potential impacts beyond the modifications. Ensure that the message is informative enough to understand the changes and their context for a comprehensive review.", + "model": "gpt-4o", + "max_tokens": 1000, + "temperature": 0.7 +} \ No newline at end of file