Compare commits

..

No commits in common. "4be78a92a1d015c9b8163de2264035602dbbea73" and "3a147962ec296570aa687044b33cd17fb5147fd6" have entirely different histories.

View File

@ -84,17 +84,11 @@ class GiteaClient:
return True return True
def get_issues(self, owner, repo): def get_issues(self, owner, repo):
"""Download issues from the specified repository and filter those with the aider label.""" """Download issues from the specified repository."""
url = f"{self.gitea_url}/repos/{owner}/{repo}/issues" url = f"{self.gitea_url}/repos/{owner}/{repo}/issues"
response = self.session.get(url) response = self.session.get(url)
response.raise_for_status() response.raise_for_status()
issues = response.json() return 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): def create_pull_request(self, owner, repo, title, head, base, body):
"""Create a pull request for the given branch.""" """Create a pull request for the given branch."""