translation.scan_repository ​
Scans a GitHub repository to detect hardcoded strings using regex and AI
Scans a GitHub repository to detect hardcoded strings.
Input fields: project_uuid, repository_uuid, branch (optional), commit_sha (optional)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-translation |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
project_uuid | uuid | Yes | — | Translation project UUID |
repository_uuid | uuid | Yes | — | Repository configuration UUID |
branch | string | No | — | Branch to scan (defaults to repo default branch) |
commit_sha | string | No | — | Specific commit SHA to scan |
trace_ref | string | No | — | Trace reference for request correlation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
project_uuid | uuid | No | — | — |
repository_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
branch | string | No | — | — |
commit_sha | string | No | — | — |
trace_ref | string | No | — | — |
scan_history_uuid | uuid | No | — | — |
clone_directory | string | No | — | — |
cloned_at | string | No | — | — |
actual_commit_sha | string | No | — | — |
scan_paths | list | No | — | — |
exclude_paths | list | No | — | — |
files_found | list | No | — | — |
files_scanned | integer | No | — | — |
total_strings_found | integer | No | — | — |
unique_strings_count | integer | No | — | — |
_all_strings | json | No | — | — |
validated_strings | list | No | — | — |
translatable_strings_count | integer | No | — | — |
proposal_uuid | uuid | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | clone_repository | — |
cleaning_up | No | No | — | complete | — |
cloning | No | No | — | scan_files | — |
creating_proposal | No | No | — | cleanup | — |
scanning | No | No | — | validate_strings | — |
validating | No | No | — | create_proposal | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | clone_repository | cloning | — |
cloning | scan_files | scanning | — |
scanning | validate_strings | validating | — |
validating | create_proposal | creating_proposal | — |
creating_proposal | cleanup | cleaning_up | — |
cleaning_up | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "translation.scan_repository",
"initial_data": {
"project_uuid": "value",
"repository_uuid": "value"
}
}