Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/ftl_code_review/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cli():
@click.option(
"--pr",
default=None,
help="GitHub PR to review (URL, owner/repo#N, or number)",
help="PR/MR to review (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--repo",
Expand Down Expand Up @@ -130,13 +130,13 @@ def cli():
@click.option(
"--github-issue",
default=None,
help="GitHub issue to check changes against (URL, owner/repo#N, or number)",
help="Issue to check against (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--comment",
is_flag=True,
default=False,
help="Post review as a comment on the PR (requires --pr)",
help="Post review as a comment on the PR/MR (requires --pr)",
)
@click.option(
"--timeout",
Expand Down Expand Up @@ -222,9 +222,9 @@ def review(branch, base, pr, repo, spec, model, output, output_dir, observations
if github_issue:
try:
issue_content = get_github_issue(github_issue)
click.echo(f"Fetched GitHub issue {github_issue}", err=True)
click.echo(f"Fetched issue {github_issue}", err=True)
except (RuntimeError, ValueError) as e:
click.echo(f"Warning: Could not fetch GitHub issue: {e}", err=True)
click.echo(f"Warning: Could not fetch issue: {e}", err=True)
elif issue:
issue_content = read_file_content(issue)
if issue_content:
Expand Down Expand Up @@ -399,7 +399,7 @@ def observe(branch, base, repo, model, output, run):
@click.option(
"--pr",
default=None,
help="GitHub PR to review (URL, owner/repo#N, or number)",
help="PR/MR to review (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--repo",
Expand Down Expand Up @@ -453,13 +453,13 @@ def observe(branch, base, repo, model, output, run):
@click.option(
"--github-issue",
default=None,
help="GitHub issue to check changes against (URL, owner/repo#N, or number)",
help="Issue to check against (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--comment",
is_flag=True,
default=False,
help="Post review as a comment on the PR (requires --pr)",
help="Post review as a comment on the PR/MR (requires --pr)",
)
def gate(branch, base, pr, repo, spec, model, output_dir, lint, fix_lint, beliefs, issue, github_issue, comment):
"""
Expand Down Expand Up @@ -553,9 +553,9 @@ def gate(branch, base, pr, repo, spec, model, output_dir, lint, fix_lint, belief
if github_issue:
try:
issue_content = get_github_issue(github_issue)
click.echo(f"Fetched GitHub issue {github_issue}", err=True)
click.echo(f"Fetched issue {github_issue}", err=True)
except (RuntimeError, ValueError) as e:
click.echo(f"Warning: Could not fetch GitHub issue: {e}", err=True)
click.echo(f"Warning: Could not fetch issue: {e}", err=True)
elif issue:
issue_content = read_file_content(issue)
if issue_content:
Expand Down Expand Up @@ -623,7 +623,7 @@ def gate(branch, base, pr, repo, spec, model, output_dir, lint, fix_lint, belief
@click.option(
"--pr",
default=None,
help="GitHub PR to review (URL, owner/repo#N, or number)",
help="PR/MR to review (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--repo",
Expand Down Expand Up @@ -859,7 +859,7 @@ def models():
@click.option(
"--pr",
default=None,
help="GitHub PR to review (URL, owner/repo#N, or number)",
help="PR/MR to review (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--repo",
Expand Down Expand Up @@ -915,13 +915,13 @@ def models():
@click.option(
"--github-issue",
default=None,
help="GitHub issue to check changes against (URL, owner/repo#N, or number)",
help="Issue to check against (GitHub/GitLab URL, owner/repo#N, or number)",
)
@click.option(
"--comment",
is_flag=True,
default=False,
help="Post review as a comment on the PR (requires --pr)",
help="Post review as a comment on the PR/MR (requires --pr)",
)
@click.option(
"--run-tests/--no-run-tests",
Expand Down Expand Up @@ -1014,9 +1014,9 @@ def review_loop(branch, base, pr, repo, spec, model, output, output_dir, max_ite
if github_issue:
try:
issue_content = get_github_issue(github_issue)
click.echo(f"Fetched GitHub issue {github_issue}", err=True)
click.echo(f"Fetched issue {github_issue}", err=True)
except (RuntimeError, ValueError) as e:
click.echo(f"Warning: Could not fetch GitHub issue: {e}", err=True)
click.echo(f"Warning: Could not fetch issue: {e}", err=True)
elif issue:
issue_content = read_file_content(issue)
if issue_content:
Expand Down
Loading