Skip to content
Draft
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
1 change: 1 addition & 0 deletions scripts/services/docker/Dockerfile.git_integration
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ FROM base AS runner
RUN apt-get update && apt-get install -y \
ca-certificates \
git \
ripgrep \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ class MaintainerResult(BaseModel):
maintainer_file: str | None = None
maintainer_info: list[MaintainerInfoItem] | None = None
total_cost: float = 0
candidate_files: list[str] = []
ai_suggested_file: str | None = None
Comment on lines +37 to +38
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

candidate_files uses a mutable default ([]) on a Pydantic model, which can be shared across instances and lead to cross-request/state leakage. Use Field(default_factory=list) (and import Field) instead of a bare list default.

Copilot uses AI. Check for mistakes.
Loading
Loading