Skip to content

feat(agent): add has_tests to GitHub repository metadata - #891

Open
Muhammad8640 wants to merge 8 commits into
ascherj:mainfrom
Muhammad8640:feat/50-add-has-tests
Open

feat(agent): add has_tests to GitHub repository metadata#891
Muhammad8640 wants to merge 8 commits into
ascherj:mainfrom
Muhammad8640:feat/50-add-has-tests

Conversation

@Muhammad8640

Copy link
Copy Markdown

Summary

This PR adds a has_tests boolean to the metadata returned by GitHubTool.

The implementation retrieves the repository's recursive Git tree using the GitHub API and checks for common testing indicators, including:

  • tests/
  • test/
  • pytest.ini
  • Python files matching test_*.py

The detected value is returned as part of the repository metadata.

Closes #50

Testing

Added unit tests covering:

  • repositories containing tests/
  • repositories containing test/
  • repositories containing pytest.ini
  • repositories containing test_*.py
  • repositories without tests
  • failed GitHub tree requests

The new GitHubTool unit tests pass successfully.

Validation

The repository currently contains pre-existing make check lint failures and make test-unit failures unrelated to this issue. I recorded these before implementation and confirmed that my changes do not introduce additional failures.

@Muhammad8640
Muhammad8640 marked this pull request as ready for review August 5, 2026 01:47
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.

Add a has_tests boolean to the repo analysis output

1 participant