From bba67d0b1ad8236c034ea05ccc18d96ef6939f04 Mon Sep 17 00:00:00 2001
From: takunomi-build-bot <build-bot@takunomi.space>
Date: Sun, 13 Apr 2025 18:47:56 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Repository=20layout=20updated=20?=
 =?UTF-8?q?to=20latest=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
---
 README.md | 37 +++++++++++++++++++++++++++++++++++++
 setup.py  | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/README.md b/README.md
index ea055df..2c240f9 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,43 @@ python -m aider_gitea
 
 # Specify custom repository and owner
 python -m aider_gitea --owner myorg --repo myproject
+
+# Use a custom Gitea URL
+python -m aider_gitea --gitea-url https://gitea.example.com
+
+# Specify a different base branch
+python -m aider_gitea --base-branch develop
+```
+
+### Python API
+
+```python
+from aider_gitea import solve_issue_in_repository
+from pathlib import Path
+
+# Solve an issue programmatically
+args = argparse.Namespace(
+    gitea_url="https://gitea.example.com",
+    owner="myorg",
+    repo="myproject",
+    base_branch="main"
+)
+
+solve_issue_in_repository(
+    args,
+    Path("/path/to/repo"),
+    "issue-123-fix-bug",
+    "Fix critical bug",
+    "The application crashes when processing large files",
+    "123"
+)
+```
+
+### Environment Configuration
+
+The tool uses environment variables for sensitive information:
+- `GITEA_TOKEN`: Your Gitea API token
+- `LLM_API_KEY`: API key for the language model used by Aider
 ```
 
 ## Dependencies
diff --git a/setup.py b/setup.py
index 63c29e3..3aff15c 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,43 @@ python -m aider_gitea
 
 # Specify custom repository and owner
 python -m aider_gitea --owner myorg --repo myproject
+
+# Use a custom Gitea URL
+python -m aider_gitea --gitea-url https://gitea.example.com
+
+# Specify a different base branch
+python -m aider_gitea --base-branch develop
+```
+
+### Python API
+
+```python
+from aider_gitea import solve_issue_in_repository
+from pathlib import Path
+
+# Solve an issue programmatically
+args = argparse.Namespace(
+    gitea_url="https://gitea.example.com",
+    owner="myorg",
+    repo="myproject",
+    base_branch="main"
+)
+
+solve_issue_in_repository(
+    args,
+    Path("/path/to/repo"),
+    "issue-123-fix-bug",
+    "Fix critical bug",
+    "The application crashes when processing large files",
+    "123"
+)
+```
+
+### Environment Configuration
+
+The tool uses environment variables for sensitive information:
+- `GITEA_TOKEN`: Your Gitea API token
+- `LLM_API_KEY`: API key for the language model used by Aider
 ```
 """.strip()