Only rerun if the issue text has been updated #18

Closed
Jmaa wants to merge 4 commits from jmaa/issue-15-only-rerun-if-the-issue-text-has-been-updated into main
Showing only changes of commit 2eda0f1728 - Show all commits

View File

@ -160,8 +160,11 @@ def load_issue_from_sqlite(issue_number: str, db_path: Path) -> tuple[str, str]:
return result return result
else: else:
raise ValueError(f"Issue {issue_number} not found in the database.") raise ValueError(f"Issue {issue_number} not found in the database.")
return result
else:
raise ValueError(f"Issue {issue_number} not found in the database.")
def parse_args():
parser = argparse.ArgumentParser(description="Download issues and create pull requests for a Gitea repository.") parser = argparse.ArgumentParser(description="Download issues and create pull requests for a Gitea repository.")
parser.add_argument("--gitea-url", required=True, help="Base URL for the Gitea instance, e.g., https://gitfub.space/api/v1")
parser.add_argument("--owner", required=True, help="Owner of the repository") parser.add_argument("--owner", required=True, help="Owner of the repository")
parser.add_argument("--repo", required=True, help="Repository name") parser.add_argument("--repo", required=True, help="Repository name")
parser.add_argument("--base-branch", default="main", help="Base branch to use for new branches (default: main)") parser.add_argument("--base-branch", default="main", help="Base branch to use for new branches (default: main)")