Compare commits

..

No commits in common. "107ee6b55c1aa9098fcca52734c1c066e0cc3fc1" and "1c4e13b7d0b5863e22501d51e97257f18e24304a" have entirely different histories.

4 changed files with 14 additions and 65 deletions

View File

@ -8,27 +8,10 @@
![Test program/library](https://gitfub.space/Jmaa/aider-gitea/actions/workflows/python-test.yml/badge.svg)
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Work in progress code automation tool.
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
When such an issue is found, it:
1. Creates a new branch.
2. Invokes [Aider](https://aider.chat/) to solve the issue using a Large-Language Model.
3. Runs tests and code quality checks.
4. Creates a pull request with the solution.
## Example Usage
### Command Line
```bash
# Run with default settings
python -m aider_gitea
# Specify custom repository and owner
python -m aider_gitea --owner myorg --repo myproject
```
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
## Dependencies

View File

@ -1,26 +1,9 @@
"""# Aider Gitea.
"""# Aider Gitea
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Work in progress code automation tool.
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
When such an issue is found, it:
1. Creates a new branch.
2. Invokes [Aider](https://aider.chat/) to solve the issue using a Large-Language Model.
3. Runs tests and code quality checks.
4. Creates a pull request with the solution.
## Example Usage
### Command Line
```bash
# Run with default settings
python -m aider_gitea
# Specify custom repository and owner
python -m aider_gitea --owner myorg --repo myproject
```
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
"""
import argparse
@ -195,7 +178,7 @@ def solve_issue_in_repository(
# Auto-fix standard code quality stuff
run_cmd(['bash', '-c', RUFF_FORMAT_AND_AUTO_FIX], tmpdirname, check=False)
run_cmd(['git', 'add', '.'], tmpdirname)
run_cmd(['git', 'commit', '-m', 'Ruff'], tmpdirname, check=False)
run_cmd(['git', 'commit', '-m', 'Ruff'], tmpdirname)
# Push changes
return push_changes(

View File

@ -1 +1 @@
__version__ = '0.1.2'
__version__ = '0.1.1'

View File

@ -11,33 +11,16 @@ from setuptools import setup
PACKAGE_NAME = 'aider_gitea'
PACKAGE_DESCRIPTION = """
# Aider Gitea.
# Aider Gitea
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Work in progress code automation tool.
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
When such an issue is found, it:
1. Creates a new branch.
2. Invokes [Aider](https://aider.chat/) to solve the issue using a Large-Language Model.
3. Runs tests and code quality checks.
4. Creates a pull request with the solution.
## Example Usage
### Command Line
```bash
# Run with default settings
python -m aider_gitea
# Specify custom repository and owner
python -m aider_gitea --owner myorg --repo myproject
```
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
""".strip()
PACKAGE_DESCRIPTION_SHORT = """
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
Work in progress code automation tool.""".strip()
def parse_version_file(text: str) -> str: