### Modifications
- Updated `VERSION` file from `0.0.5` to `0.0.6`.
- Modified `ait.commit.sample.config.json`:
- Adjusted `temperature` from 0.7 to 0.6.
- Modified `ait.pull_request.sample.config.json`:
- Revised the prompt to exclude closing statements.
- Increased `max_tokens` from 1000 to 2000.
- Adjusted `temperature` from 0.7 to 0.6.
### Description
This pull request includes updates to the version number and
configuration settings for the commit and pull request message
generator:
1. **Version Update**:
- The version number in the `VERSION` file has been incremented from
`0.0.5` to `0.0.6`.
2. **Commit Sample Config Adjustments**:
- The `temperature` setting in `ait.commit.sample.config.json` has been
lowered from 0.7 to 0.6 to refine the output generation.
3. **Pull Request Sample Config Enhancements**:
- The prompt in `ait.pull_request.sample.config.json` was updated to
exclude any closing statements or generic sentences.
- The `max_tokens` parameter was increased from 1000 to 2000 to allow
for more detailed output.
- The `temperature` setting was also adjusted from 0.7 to 0.6 for
consistent behavior across configurations.
- Added a section on fallback configuration file search in `README.md`
- Explained searching for configuration files in the user's home directory under `~\.ait\*`
- Mentioned the option to provide a user-wide configuration file in the `~\.ait\` directory
- Modify `resolve_config_path` to check for `.json` files.
- First check in the current directory.
- Then check in `.ait` directory in the user's home directory.
- Return filename even if non-existent for later failure handling.
- **CreateRelease.yml**:
- Created a workflow triggered by pushes to `main` branch and manual dispatch.
- Configured jobs to run on `windows-latest`.
- Steps include:
- Checking out the code.
- Setting up Python with version 3.x.
- Installing dependencies `pip`, `pyinstaller`, and `openai`.
- Extracting the version from `VERSION` file.
- Building executable using `pyinstaller`.
- Fetching previous release tag.
- Generating release notes.
- Creating a new git tag and pushing it.
- Publishing the release on GitHub with release notes and the built executable.
- Removed JSON example config from README
- Added references to `ait.commit.sample.config.json` and `ait.pull_request.sample.config.json`
- Renamed `ait.pull.sample.config.json` to `ait.pull_request.sample.config.json`
- Created a `README.md` file
- Added descriptions for the project's purpose and features
- Provided installation steps and prerequisites
- Included usage instructions with command-line options
- Detailed example configuration file
- Added error handling information
- Documented the license and contributing guidelines
- 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
- Created a new Python script `ait.py`
- Implemented functions for loading config, resolving paths, and running git commands
- Integrated OpenAI API to generate text from git outputs
- Added command-line interface for user inputs and configuration settings
- Add `ait.config.json` and `ait.*.config.json` to ignore patterns
- Exception for `ait.sample.config.json` and `ait.*.sample.config.json`
- Ignore the `dist/` directory