Skip to content

Feature/add file history query#5

Merged
Banyango merged 5 commits into
mainfrom
feature/add-file-history-query
Jul 28, 2025
Merged

Feature/add file history query#5
Banyango merged 5 commits into
mainfrom
feature/add-file-history-query

Conversation

@Banyango
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 28, 2025 04:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new feature to query file history in Git repositories through a CLI command. The implementation introduces a file history query system that allows users to retrieve the commit history for specific files within repositories.

  • Adds a new files CLI command group with a history subcommand
  • Implements Git client interface and provider for file history operations
  • Creates query models and services to retrieve and format file history data

Reviewed Changes

Copilot reviewed 12 out of 15 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/main.py Adds the new files command group to the CLI
src/libs/git/service.py Removes unused GitService class
src/libs/git/providers.py Implements PythonGitClient with file history functionality
src/libs/container.py Registers the new Git client provider
src/core/interfaces/git_client.py Defines GitClient interface for file history operations
src/core/files/queries/queries.py Implements FilesQueries class for retrieving file history
src/core/files/queries/models.py Defines FileQueryModel data structure
src/core/container.py Updates dependency injection configuration
src/app/files/group.py Creates files command group
src/app/files/files.py Implements history command functionality
src/app/container.py Updates wiring configuration
tests/core/repos/operations/test_update_repo_operation.py Minor formatting fixes

Comment thread src/libs/git/providers.py Outdated
Comment thread src/libs/git/providers.py Outdated
Comment thread src/libs/git/providers.py
repo_path (str): The path to the file within the repository.

Returns:
Dict: A dictionary containing the file history.
Copy link

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The return type description is incorrect. The function returns Iterator[Commit], not a dictionary.

Suggested change
Dict: A dictionary containing the file history.
Iterator[Commit]: An iterator over `Commit` objects representing the file's history.

Copilot uses AI. Check for mistakes.
Comment thread src/core/interfaces/git_client.py Outdated
Comment thread src/core/interfaces/git_client.py Outdated
Comment thread src/core/files/queries/queries.py
Comment thread src/core/files/queries/queries.py Outdated
Banyango and others added 3 commits July 27, 2025 22:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Banyango Banyango merged commit 0d35ace into main Jul 28, 2025
1 check passed
@Banyango Banyango deleted the feature/add-file-history-query branch July 28, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants