Check that a workflow file supports Docwize run tracking.
POST/api/v1/github-repositories/{github_repository_id}/check-workflow-fileconnectors:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Reads the workflow file from the repository with its GitHub App installation and reports whether it declares workflow_dispatch, a docwize_run_id input, and echoes that input in run-name: the three things a GitHub step that waits for its run needs. Advisory: the step still dispatches without them. A workflow named by number cannot be read (file_found false). Changes nothing. Needs View Github Repositories.
| スコープ | connectors:read (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | check_github_repository_workflow_file |
| Portal の権限 | view_github_repositories |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
github_repository_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | GitHubWorkflowFileCheckRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json GitHubWorkflowFileCheck |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
GitHubWorkflowFileCheck
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
declares_docwize_run_id_input | boolean | 必須 | The file declares a docwize_run_id input (GitHub refuses an undeclared input). |
echoes_docwize_run_id_in_run_name | boolean | 必須 | The file's run-name echoes docwize_run_id, which is how a run is matched back to its step. |
file_found | boolean | 必須 | The file exists at the ref. False for a workflow named by number, which has no path to read. |
has_workflow_dispatch | boolean | 必須 | The file declares the workflow_dispatch trigger. |
message | string または null | 必須 | Why the file could not be read or understood; null when it was read. |
supports_run_tracking | boolean | 必須 | All three prerequisites hold, so a step that waits for the run can match it. |
GitHubWorkflowFileCheckRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ref | string または null | 任意 | The branch, tag or commit to read the file at; the repository's default branch when left out. |
workflow_file | string | 必須 | The workflow file: a file name (ci.yml, looked for under .github/workflows) or a path in the repository. |