Skip to content
Closed
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ These options are only used when performing reviews through the command `lgtm re
- **additional_context**: TOML array of extra context to send to the LLM. It supports setting the context directly in the `context` field, passing a relative file path so that lgtm downloads it from the repository, or passing any URL from which to download the context. Each element of the array must contain `prompt`, and either `context` (directly injecting context) or `file_url` (for directing lgtm to download it from there).
- **compare**: When reviewing local changes (the positional argument to `lgtm` is a valid `git` path), you can choose what to compare against to generate a git diff. You can pass branch names, commits, etc. Default is `HEAD`. Only available as a CLI option.


foo

#### Issues Integration options

See [Using Issue/User Story Information section](#using-issueuser-story-information).
Expand Down
1 change: 1 addition & 0 deletions src/lgtm_ai/git_client/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def get_file_contents(self, pr_url: PRUrl, file_path: str, branch_name: ContextB
except (binascii.Error, UnicodeDecodeError):
logger.warning("Failed to decode file %s from GitLab sha: %s, ignoring...", file_path, pr.sha)
return None
foo = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦉 ✨ Quality

Severity: MEDIUM 🟡

foo = 1

This variable foo is assigned but never used. This appears to be dead code, perhaps left over from debugging. It should be removed.

Suggested change
foo = 1
More information about this comment
  • File: src/lgtm_ai/git_client/gitlab.py
  • Line: 115
  • Relative line: 4
  • With suggestion: Yes
  • Suggestion ready for replacement: Yes

return content

def _parse_gitlab_git_diff(self, diffs: list[dict[str, object]]) -> list[DiffResult]:
Expand Down
Loading