Skip to content

Conversation

@hiroshinishio
Copy link
Collaborator

@hiroshinishio hiroshinishio commented Jan 2, 2026

Implemented repository-level permission system to control which files GitAuto can edit:

  • restrict_edit_to_target_test_file_only: Only allow editing the specific test file mentioned in issue title
  • allow_edit_any_file: Allow editing any file (bypasses test-only restriction)

This prevents GitAuto from accidentally modifying unrelated files when working on test coverage issues.

Changes:

  • Added validation in chat_with_agent before executing file edit tools
  • Added get_repository_features call in issue_handler to fetch repo settings
  • Created is_target_test_file helper to match test files to target implementation
  • Added test coverage for the new restrictions
  • Extracted type generation to schemas/supabase/generate_types.py
  • Updated LGTM workflow documentation

Implemented repository-level permission system to control which files GitAuto can edit:
- restrict_edit_to_target_test_file_only: Only allow editing the specific test file mentioned in issue title
- allow_edit_any_file: Allow editing any file (bypasses test-only restriction)

This prevents GitAuto from accidentally modifying unrelated files when working on test coverage issues.

Changes:
- Added validation in chat_with_agent before executing file edit tools
- Added get_repository_features call in issue_handler to fetch repo settings
- Created is_target_test_file helper to match test files to target implementation
- Added test coverage for the new restrictions
- Extracted type generation to schemas/supabase/generate_types.py
- Updated LGTM workflow documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hiroshinishio hiroshinishio merged commit bcb1fa5 into main Jan 2, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch January 2, 2026 07:03
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