codecov
Read Codecov coverage reports, commits, pulls, flags and components.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWcodecov_get_flag_coverage_trend에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"codecov": {
"url": "https://codecov.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://codecov.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (24)
🟢codecov_list_service_owners(service, page, pageSize)
List owners (organizations/users) the token can see on a git service. Codecov REST: GET /{service}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_owner(service, owner)
Get a single owner (org/user) detail. Codecov REST: GET /{service}/{owner_username}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
}
},
"required": [
"owner"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_users(service, owner, activated, isAdmin, search, ...)
List users belonging to an owner (org), optionally filtered by activation/admin/search. Codecov REST: GET /{service}/{owner_username}/users/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"activated": {
"description": "Filter by whether the user's seat is activated.",
"type": "boolean"
},
"isAdmin": {
"description": "Filter by admin status (maps to `is_admin`).",
"type": "boolean"
},
"search": {
"description": "Free-text search over user name / username.",
"type": "string"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_repos(service, owner, active, names, search, ...)
List repositories for an owner, optionally filtered by active state, names or search. Codecov REST: GET /{service}/{owner_username}/repos/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"active": {
"description": "Filter to repos that are active (receiving coverage) or not.",
"type": "boolean"
},
"names": {
"description": "Filter to specific repository names (each is sent as a repeated `names` query param).",
"type": "array",
"items": {
"type": "string"
}
},
"search": {
"description": "Free-text search over repository name.",
"type": "string"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_repo(service, owner, repo)
Get a single repository's detail. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_repo_config(service, owner, repo)
Get a repository's Codecov configuration. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/config/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_branches(service, owner, repo, author, ordering, ...)
List a repository's branches, optionally filtered by author and ordering. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/branches/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"author": {
"description": "Filter branches by author username.",
"type": "string"
},
"ordering": {
"description": "Ordering field, e.g. 'updatestamp' or '-updatestamp'.",
"type": "string"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_branch(service, owner, repo, branch)
Get a single branch's detail, including its head commit's coverage totals. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/branches/{name}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"branch": {
"type": "string",
"minLength": 1,
"description": "Branch name, e.g. 'main' (required)."
}
},
"required": [
"owner",
"repo",
"branch"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_commits(service, owner, repo, branch, page, ...)
List a repository's commits, optionally filtered by branch. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"branch": {
"description": "Filter commits to a branch, e.g. 'main'.",
"type": "string"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_commit(service, owner, repo, commitid)
Get a single commit's detail, including its coverage totals and report. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/{commitid}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"commitid": {
"type": "string",
"minLength": 1,
"description": "Commit SHA (required)."
}
},
"required": [
"owner",
"repo",
"commitid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_commit_uploads(service, owner, repo, commitid, page, ...)
List the coverage report uploads recorded for a commit. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/commits/{commitid}/uploads/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"commitid": {
"type": "string",
"minLength": 1,
"description": "Commit SHA (required)."
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo",
"commitid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_pulls(service, owner, repo, ordering, state, ...)
List a repository's pull requests, optionally filtered by state and start date. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/pulls/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"ordering": {
"description": "Ordering field, e.g. 'pullid' or '-pullid'.",
"type": "string"
},
"state": {
"description": "Filter by pull state, e.g. 'open', 'closed' or 'merged'.",
"type": "string"
},
"startDate": {
"description": "Only include pulls updated on/after this date, yyyy-mm-dd (maps to `start_date`).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_pull(service, owner, repo, pullid)
Get a single pull request's detail, including its base/head coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/pulls/{pullid}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"pullid": {
"type": "string",
"minLength": 1,
"description": "Pull request number/id (required)."
}
},
"required": [
"owner",
"repo",
"pullid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_coverage_totals(service, owner, repo, sha, branch, ...)
Coverage totals for a commit (defaults to default branch head), plus per-file totals. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/totals/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"sha": {
"description": "Commit SHA to report on (defaults to the default branch head).",
"type": "string"
},
"branch": {
"description": "Branch whose head to report on.",
"type": "string"
},
"path": {
"description": "Restrict totals to a file or directory path prefix.",
"type": "string"
},
"flag": {
"description": "Restrict totals to a coverage flag.",
"type": "string"
},
"componentId": {
"description": "Restrict totals to a component (maps to `component_id`).",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_coverage_report(service, owner, repo, sha, branch, ...)
Full coverage report for a commit (defaults to default branch head) — totals plus per-file line coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/report/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"sha": {
"description": "Commit SHA to report on (defaults to the default branch head).",
"type": "string"
},
"branch": {
"description": "Branch whose head to report on.",
"type": "string"
},
"path": {
"description": "Restrict the report to a file or directory path prefix.",
"type": "string"
},
"flag": {
"description": "Restrict the report to a coverage flag.",
"type": "string"
},
"componentId": {
"description": "Restrict the report to a component (maps to `component_id`).",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_report_tree(service, owner, repo, sha, branch, ...)
Coverage report as a file/directory tree for a commit (defaults to default branch head). Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/report/tree.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"sha": {
"description": "Commit SHA to report on (defaults to the default branch head).",
"type": "string"
},
"branch": {
"description": "Branch whose head to report on.",
"type": "string"
},
"path": {
"description": "Restrict the tree to a directory path prefix.",
"type": "string"
},
"flag": {
"description": "Restrict the tree to a coverage flag.",
"type": "string"
},
"componentId": {
"description": "Restrict the tree to a component (maps to `component_id`).",
"type": "string"
},
"depth": {
"description": "Maximum tree depth to return.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_file_coverage(service, owner, repo, path, branch, ...)
Line-by-line coverage for a single file. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/file_report/{path}/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"path": {
"type": "string",
"minLength": 1,
"description": "File path within the repo, e.g. 'src/app.ts' (required; slashes are URL-encoded)."
},
"branch": {
"description": "Branch whose head to report on.",
"type": "string"
},
"sha": {
"description": "Commit SHA to report on (defaults to the default branch head).",
"type": "string"
}
},
"required": [
"owner",
"repo",
"path"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_coverage_trend(service, owner, repo, branch, startDate, ...)
Coverage measurements over time for a repository, bucketed by interval. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/coverage/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"branch": {
"description": "Branch to measure (defaults to the default branch).",
"type": "string"
},
"startDate": {
"description": "Start of the range, yyyy-mm-dd (maps to `start_date`).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"endDate": {
"description": "End of the range, yyyy-mm-dd (maps to `end_date`).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"interval": {
"type": "string",
"enum": [
"1d",
"7d",
"30d"
],
"description": "Aggregation interval for the trend — '1d', '7d' or '30d'."
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_flags(service, owner, repo, page, pageSize)
List a repository's coverage flags. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/flags/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_get_flag_coverage_trend(service, owner, repo, flag_name, branch, ...)
Coverage measurements over time for a single flag, bucketed by interval. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/flags/{flag_name}/coverage/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"flag_name": {
"type": "string",
"minLength": 1,
"description": "Coverage flag name (required)."
},
"branch": {
"description": "Branch to measure (defaults to the default branch).",
"type": "string"
},
"startDate": {
"description": "Start of the range, yyyy-mm-dd (maps to `start_date`).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"endDate": {
"description": "End of the range, yyyy-mm-dd (maps to `end_date`).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"interval": {
"type": "string",
"enum": [
"1d",
"7d",
"30d"
],
"description": "Aggregation interval for the trend — '1d', '7d' or '30d'."
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo",
"flag_name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_components(service, owner, repo, branch, sha)
List a repository's components with their coverage. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/components/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"branch": {
"description": "Branch to report components on (defaults to the default branch).",
"type": "string"
},
"sha": {
"description": "Commit SHA to report components on.",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_compare(service, owner, repo, base, head, ...)
Compare coverage between two commits (base vs. head) or for a pull request. Provide EITHER both `base` and `head`, OR `pullid`. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/compare/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"base": {
"description": "Base commit SHA (use together with `head`).",
"type": "string"
},
"head": {
"description": "Head commit SHA (use together with `base`).",
"type": "string"
},
"pullid": {
"description": "Pull request id to compare (use instead of base/head).",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_compare_impacted_files(service, owner, repo, base, head, ...)
List the files whose coverage changed between two commits (base vs. head) or for a pull request. Provide EITHER both `base` and `head`, OR `pullid`. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/compare/impacted_files.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"base": {
"description": "Base commit SHA (use together with `head`).",
"type": "string"
},
"head": {
"description": "Head commit SHA (use together with `base`).",
"type": "string"
},
"pullid": {
"description": "Pull request id to compare (use instead of base/head).",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢codecov_list_test_results(service, owner, repo, branch, commitId, ...)
List a repository's test-analytics results, optionally filtered by branch, commit, outcome and duration. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/test-results/.
입력 스키마
{
"type": "object",
"properties": {
"service": {
"default": "github",
"description": "Git service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.",
"type": "string",
"enum": [
"github",
"gitlab",
"bitbucket",
"github_enterprise",
"gitlab_enterprise",
"bitbucket_server"
]
},
"owner": {
"type": "string",
"minLength": 1,
"description": "Owner username — the organization or user login on the git service, e.g. 'codecov' (required)."
},
"repo": {
"type": "string",
"minLength": 1,
"description": "Repository name, e.g. 'codecov-api' (required)."
},
"branch": {
"description": "Filter to a branch, e.g. 'main'.",
"type": "string"
},
"commitId": {
"description": "Filter to a commit SHA (maps to `commit_id`).",
"type": "string"
},
"outcome": {
"description": "Filter by test outcome — 'pass', 'failure', 'error' or 'skip'.",
"type": "string",
"enum": [
"pass",
"failure",
"error",
"skip"
]
},
"durationMin": {
"description": "Minimum test duration in seconds (maps to `duration_min`).",
"type": "number"
},
"durationMax": {
"description": "Maximum test duration in seconds (maps to `duration_max`).",
"type": "number"
},
"page": {
"description": "Page number for paginated results (1-based).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"description": "Number of results per page (maps to `page_size`).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"owner",
"repo"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거