Status: ✅ Done (2026-02-18); actions (--add, --remove, --follow, --unfollow) added 2026-02-25; analysis status + --reanalyze added 2026-03-05
Show details, status, and metrics for a specific repository — a full dashboard view.
codacy repository <provider> <organization> <repository>
codacy repo gh my-org my-repo --output json
codacy repo gh my-org my-repo --reanalyze
getRepositoryWithAnalysis—AnalysisService.getRepositoryWithAnalysis(provider, org, repo)listRepositoryPullRequests—AnalysisService.listRepositoryPullRequests(provider, org, repo)issuesOverview—AnalysisService.issuesOverview(provider, org, repo)listRepositoryCommitswithlimit=1— head commit timing for analysis statuslistCoverageReportswithlimit=1—hasCoverageOverviewflag
| Field | Source |
|---|---|
| Repository | provider / org / name |
| Visibility | repo.visibility |
| Default Branch | repo.defaultBranch.name |
| Last Updated | repo.lastUpdated (friendly date) |
| Analysis | formatAnalysisStatus() — see analysis.md |
| Field | Source |
|---|---|
| Languages | repo.languages (comma-separated) |
| Coding Standards | repo.standards (names, comma-separated) |
| Quality Gate | repo.gatePolicyName |
| Problems | repo.problems (yellow if present, green "None" otherwise) |
Colored by goals thresholds from RepositoryQualitySettings:
| Field | Notes |
|---|---|
| Issues | Count + Issues/kLoC ratio |
| Coverage | % (min threshold) |
| Complex Files | % (max threshold) |
| Duplication | % (max threshold) |
Columns: #, Title (truncated 50), Branch (truncated 40), ✓, Issues, Coverage, Complexity, Duplication, Updated.
Metric columns colored by resultReasons gate pass/fail.
Shows pagination warning if more PRs exist.
By category, severity level, and language — sorted descending by count.
In all cases, show a success message on completion or an error message with details on failure.
- API:
addRepository - Shows an additional note that the repository will be available after a few minutes (initial clone + analysis).
- API:
deleteRepository
- API:
unfollowRepository
- Fetches the HEAD commit SHA via
listRepositoryCommits(limit=1) - API:
reanalyzeCommitById - Shows success/failure message
File: src/commands/repository.test.ts — 16 tests.