Compare commits
4 Commits
1c4e13b7d0
...
107ee6b55c
Author | SHA1 | Date | |
---|---|---|---|
107ee6b55c | |||
3c9f04044a | |||
fd7d5f49e6 | |||
15f6077b99 |
23
README.md
23
README.md
|
@ -8,10 +8,27 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
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
|
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
|
||||||
automatically invoke Aider and create a pull request for the issue.
|
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
|
## Dependencies
|
||||||
|
|
||||||
|
|
|
@ -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
|
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
|
||||||
automatically invoke Aider and create a pull request for the issue.
|
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
|
import argparse
|
||||||
|
@ -178,7 +195,7 @@ def solve_issue_in_repository(
|
||||||
# Auto-fix standard code quality stuff
|
# Auto-fix standard code quality stuff
|
||||||
run_cmd(['bash', '-c', RUFF_FORMAT_AND_AUTO_FIX], tmpdirname, check=False)
|
run_cmd(['bash', '-c', RUFF_FORMAT_AND_AUTO_FIX], tmpdirname, check=False)
|
||||||
run_cmd(['git', 'add', '.'], tmpdirname)
|
run_cmd(['git', 'add', '.'], tmpdirname)
|
||||||
run_cmd(['git', 'commit', '-m', 'Ruff'], tmpdirname)
|
run_cmd(['git', 'commit', '-m', 'Ruff'], tmpdirname, check=False)
|
||||||
|
|
||||||
# Push changes
|
# Push changes
|
||||||
return push_changes(
|
return push_changes(
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.1'
|
__version__ = '0.1.2'
|
||||||
|
|
27
setup.py
27
setup.py
|
@ -11,16 +11,33 @@ from setuptools import setup
|
||||||
PACKAGE_NAME = 'aider_gitea'
|
PACKAGE_NAME = 'aider_gitea'
|
||||||
|
|
||||||
PACKAGE_DESCRIPTION = """
|
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
|
This program monitors your [Gitea](https://about.gitea.com/) repository for issues with the 'aider' label.
|
||||||
automatically invoke Aider and create a pull request for the issue.
|
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()
|
""".strip()
|
||||||
|
|
||||||
PACKAGE_DESCRIPTION_SHORT = """
|
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:
|
def parse_version_file(text: str) -> str:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user