diff --git a/.changeset/fix-findings-pagination-warning.md b/.changeset/fix-findings-pagination-warning.md deleted file mode 100644 index 1fab588..0000000 --- a/.changeset/fix-findings-pagination-warning.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@codacy/codacy-cloud-cli": patch ---- - -Fix `findings`'s pagination warning silently not firing when the API response omits `pagination.total`: the guard now also checks for a remaining `cursor`, so a trailing page of results is no longer hidden from the `--limit` hint. diff --git a/.changeset/format-standards-analysing.md b/.changeset/format-standards-analysing.md deleted file mode 100644 index 0b958f6..0000000 --- a/.changeset/format-standards-analysing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@codacy/codacy-cloud-cli": patch ---- - -`formatStandards()` (used by `repository`'s Open Pull Requests table, `pull-request`'s Up to Standards row, and `pull-requests`' ✓ column) now shows a dim `⋯` while a pull request is still being analysed, instead of falling through to a hard ✗ on gate data that isn't final yet. diff --git a/.changeset/pull-requests-list-command.md b/.changeset/pull-requests-list-command.md deleted file mode 100644 index e6fc0c9..0000000 --- a/.changeset/pull-requests-list-command.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@codacy/codacy-cloud-cli": minor ---- - -New `pull-requests` (`prs`) command: lists pull requests for a repository, with the same analysis-gated columns as `repository`'s "Open Pull Requests" table. `-q, --search` and `-B, --base` filter by free text (title/author handle) and target branch, mapping to the API's `textQuery`/`targetBranch` params; `-S, --state` filters by open (default) or closed. diff --git a/.changeset/pull-requests-table-polish.md b/.changeset/pull-requests-table-polish.md deleted file mode 100644 index 374712e..0000000 --- a/.changeset/pull-requests-table-polish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@codacy/codacy-cloud-cli": patch ---- - -Fix PR complexity showing as no data, and polish the `pull-requests` table. Complexity is now read from the API's nested `quality` object, which is where the pull-request endpoints actually return it — `pull-requests`, `pull-request` and `repository` all previously rendered it as empty. The `pull-requests` table now leads with the up-to-standards column, orders metrics the same way `repositories` does (issues, complexity, duplication, coverage), hides the Coverage column when no listed PR has coverage data, shows `-` instead of `N/A` for metrics with no value, and no longer signs a zero issue count (`0` instead of `-0`). `--output json` now includes the quality and coverage `resultReasons`, so consumers can see which gates passed or failed. diff --git a/CHANGELOG.md b/CHANGELOG.md index 4abe6c4..ed84967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # @codacy/codacy-cloud-cli +## 1.8.0 + +### Minor Changes + +- [#35](https://github.com/codacy/codacy-cloud-cli/pull/35) [`72a4d3b`](https://github.com/codacy/codacy-cloud-cli/commit/72a4d3b2f3a7572108f8b297b49ef8ba76c48718) Thanks [@pedrobpereira](https://github.com/pedrobpereira)! - New `pull-requests` (`prs`) command: lists pull requests for a repository, with the same analysis-gated columns as `repository`'s "Open Pull Requests" table. `-q, --search` and `-B, --base` filter by free text (title/author handle) and target branch, mapping to the API's `textQuery`/`targetBranch` params; `-S, --state` filters by open (default) or closed. + +### Patch Changes + +- [#35](https://github.com/codacy/codacy-cloud-cli/pull/35) [`72a4d3b`](https://github.com/codacy/codacy-cloud-cli/commit/72a4d3b2f3a7572108f8b297b49ef8ba76c48718) Thanks [@pedrobpereira](https://github.com/pedrobpereira)! - Fix `findings`'s pagination warning silently not firing when the API response omits `pagination.total`: the guard now also checks for a remaining `cursor`, so a trailing page of results is no longer hidden from the `--limit` hint. + +- [#35](https://github.com/codacy/codacy-cloud-cli/pull/35) [`72a4d3b`](https://github.com/codacy/codacy-cloud-cli/commit/72a4d3b2f3a7572108f8b297b49ef8ba76c48718) Thanks [@pedrobpereira](https://github.com/pedrobpereira)! - `formatStandards()` (used by `repository`'s Open Pull Requests table, `pull-request`'s Up to Standards row, and `pull-requests`' ✓ column) now shows a dim `⋯` while a pull request is still being analysed, instead of falling through to a hard ✗ on gate data that isn't final yet. + +- [#35](https://github.com/codacy/codacy-cloud-cli/pull/35) [`72a4d3b`](https://github.com/codacy/codacy-cloud-cli/commit/72a4d3b2f3a7572108f8b297b49ef8ba76c48718) Thanks [@pedrobpereira](https://github.com/pedrobpereira)! - Fix PR complexity showing as no data, and polish the `pull-requests` table. Complexity is now read from the API's nested `quality` object, which is where the pull-request endpoints actually return it — `pull-requests`, `pull-request` and `repository` all previously rendered it as empty. The `pull-requests` table now leads with the up-to-standards column, orders metrics the same way `repositories` does (issues, complexity, duplication, coverage), hides the Coverage column when no listed PR has coverage data, shows `-` instead of `N/A` for metrics with no value, and no longer signs a zero issue count (`0` instead of `-0`). `--output json` now includes the quality and coverage `resultReasons`, so consumers can see which gates passed or failed. + ## 1.7.0 ### Minor Changes diff --git a/package.json b/package.json index 9e6d56e..d438f16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codacy/codacy-cloud-cli", - "version": "1.7.0", + "version": "1.8.0", "description": "A command-line tool to interact with Codacy Cloud from your terminal", "homepage": "https://www.codacy.com", "repository": {