Skip to content

Commit 3ee75cf

Browse files
chore: version packages (#56)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3e55d0f commit 3ee75cf

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.changeset/quiet-paths-encode.md‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @codacy/codacy-cloud-cli
22

3+
## 1.12.1
4+
5+
### Patch Changes
6+
7+
- [#55](https://github.com/codacy/codacy-cloud-cli/pull/55) [`3e55d0f`](https://github.com/codacy/codacy-cloud-cli/commit/3e55d0fb31eae75a8c3240b000c295f247b5d2c0) Thanks [@claudiacodacy](https://github.com/claudiacodacy)! - Escape path parameters per segment, so a namespaced image name reaches the right endpoint. `codacy image gh my-org my-org/my-service` and every other `image` subcommand failed with `Error: The requested resource could not be found. (HTTP 404)` against any image whose name carries a slash — which is the usual shape, and was every image in our own organization.
8+
9+
The generated client falls back to `encodeURI` when `OpenAPI.ENCODE_PATH` is unset, and `encodeURI` leaves `/` alone because it is meant for whole URLs rather than the pieces they are built from. `codacy/codacy-website` therefore expanded into two path segments and hit a route that does not exist. The entry point now sets `encodePathSegment` (`encodeURIComponent`), which escapes separators as a single segment requires.
10+
11+
This affects every command, not only `image`: the same encoder handles branch names and file paths, which can carry slashes for the same reason. No currently shipped command sent one as a path parameter, so nothing else changes shape.
12+
313
## 1.12.0
414

515
### Minor Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codacy/codacy-cloud-cli",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "A command-line tool to interact with Codacy Cloud from your terminal",
55
"homepage": "https://www.codacy.com",
66
"repository": {

0 commit comments

Comments
 (0)