Compare commits

...

4 Commits

Author SHA1 Message Date
107ee6b55c 🤖 Bumped version to 0.1.2
All checks were successful
Package Python / Package (push) Successful in 25s
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-04-13 18:39:38 +02:00
3c9f04044a 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-04-13 18:39:16 +02:00
fd7d5f49e6 Updated root docs v2 2025-04-13 18:39:14 +02:00
15f6077b99 Updated root docs 2025-04-13 18:38:08 +02:00
4 changed files with 65 additions and 14 deletions

View File

@ -8,10 +8,27 @@
![Test program/library](https://gitfub.space/Jmaa/aider-gitea/actions/workflows/python-test.yml/badge.svg)
Work in progress code automation tool.
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
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
```
## Dependencies

View File

@ -1,9 +1,26 @@
"""# Aider Gitea
"""# Aider Gitea.
Work in progress code automation tool.
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
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
```
"""
import argparse
@ -178,7 +195,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)
run_cmd(['git', 'commit', '-m', 'Ruff'], tmpdirname, check=False)
# Push changes
return push_changes(

View File

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

View File

@ -11,16 +11,33 @@ from setuptools import setup
PACKAGE_NAME = 'aider_gitea'
PACKAGE_DESCRIPTION = """
# Aider Gitea
# Aider Gitea.
Work in progress code automation tool.
A code automation tool that integrates Gitea with Aider to automatically solve issues.
Use [Aider](https://aider.chat/) by creating issues. The program will then
automatically invoke Aider and create a pull request for the issue.
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
```
""".strip()
PACKAGE_DESCRIPTION_SHORT = """
Work in progress code automation tool.""".strip()
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
def parse_version_file(text: str) -> str: