이력 가져오기 구성을 사용할 수 없음
GitHubHistoryConfigUnusable 오류(422 처리할 수 없는 콘텐츠)의 의미와 포함된 필드, 이 오류를 반환하는 엔드포인트를 설명합니다.
API는 422 Unprocessable Content의 경우 이 문제를 반환합니다. type는 https://lingo.dev/docs/api/errors/github-history-config-unusable입니다. 모든 오류의 공통 구조는 오류 및 상태 코드를 참고하세요.
<repository>의 기본 브랜치에 .lingo/config.json이 없어 이력에서 번역 파일을 식별할 수 없습니다. 소스 로캘, 대상 로캘, 소스 파일 패턴을 지정한 구성 파일을 추가한 뒤 다시 가져오세요. 구성 파일이 생성되기 전의 커밋도 이 파일을 기준으로 읽습니다.
필드 #
본문에는 표준 멤버인 type, status, title, detail 외에 다음 필드가 포함됩니다. detail 텍스트는 이 필드를 바탕으로 생성되므로 클라이언트에서 자체 문구를 대신 표시할 수 있습니다.
| 필드 | 유형 |
|---|---|
repository | string |
problem | "missing" | "invalid" |
예시 #
json
{
"detail": "<repository> has no .lingo/config.json on its default branch, so its history names no translation files. Add one with the source locale, target locales and source-file patterns, then import again. Commits made before it existed are read with it.",
"repository": "<repository>",
"problem": "missing",
"type": "https://lingo.dev/docs/api/errors/github-history-config-unusable",
"status": 422,
"title": "History import configuration unusable"
}이 오류를 반환하는 엔드포인트 #
POST /v2/organizations/{orgId}/github/connections/{connectionId}/import-history