Merge pull request '[Issue 1] Aider should only work on issues that have been marked with the aider label.' (#4) from issue-1 into main
Some checks failed
Run Python tests (through Pytest) / Test (push) Successful in 23s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 21s

Reviewed-on: #4
This commit is contained in:
Jmaa 2025-04-13 13:41:28 +00:00
commit 4be78a92a1

View File

@ -84,11 +84,17 @@ class GiteaClient:
return True
def get_issues(self, owner, repo):
"""Download issues from the specified repository."""
"""Download issues from the specified repository and filter those with the aider label."""
url = f"{self.gitea_url}/repos/{owner}/{repo}/issues"
response = self.session.get(url)
response.raise_for_status()
return response.json()
issues = response.json()
# Filter to only include issues marked with the "aider" label.
issues = [
issue for issue in issues
if any(label.get("name") == "aider" for label in issue.get("labels", []))
]
return issues
def create_pull_request(self, owner, repo, title, head, base, body):
"""Create a pull request for the given branch."""