Skip to content

copy: add slug_perm to output - #36

Merged
BartoszBlizniak merged 2 commits into
cloudsmith-io:masterfrom
ThomasAdam:ta/add-slug-perm-to-cp
Aug 26, 2026
Merged

copy: add slug_perm to output#36
BartoszBlizniak merged 2 commits into
cloudsmith-io:masterfrom
ThomasAdam:ta/add-slug-perm-to-cp

Conversation

@ThomasAdam

Copy link
Copy Markdown
Contributor

When using the copy command to copy packages between repositories, the unique ID
(slug_perm) of the package wasn't being printed to stdout. As with other commands
(such as 'push') which did, the output of this could then be parsed to further operate
on the specific package.

Therefore, make the output from 'copy' behave in the same way.

@qlty-cloud-legacy

Copy link
Copy Markdown

Code Climate has analyzed commit bda37d7 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 0.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 1.2% (0.0% change).

View more on Code Climate.

@lskillen

Copy link
Copy Markdown
Member

Codacy Here is an overview of what got changed by this pull request:

Clones removed
==============
+ cloudsmith_cli/cli/commands/copy.py  -1
         

See the complete overview on Codacy

ThomasAdam and others added 2 commits August 25, 2026 21:51
When using the copy command to copy packages between repositories, the unique ID
(slug_perm) of the package wasn't being printed to stdout.  As with other commands
(such as 'push') which did, the output of this could then be parsed to further operate
on the specific package.

Therefore, make the output from 'copy' behave in the same way.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 26, 2026 08:51
@BartoszBlizniak
BartoszBlizniak requested a review from a team as a code owner August 26, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the package unique ID (slug_perm) to cloudsmith copy success output so downstream tooling can reliably identify the copied package, aligning behavior with push and other package-creation flows.

Changes:

  • Capture and surface slug_perm returned by the API when copying a package.
  • Print a human-readable Copied: owner/repo/slug (slug_perm) success line (stderr in JSON modes, stdout otherwise).
  • Include slug_perm in -F json / -F pretty_json status output and document the change in the changelog.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cloudsmith_cli/cli/commands/copy.py Prints slug_perm after successful copy and includes it in JSON status output.
CHANGELOG.md Documents the updated cloudsmith copy output behavior under Unreleased.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@BartoszBlizniak
BartoszBlizniak merged commit e5ab303 into cloudsmith-io:master Aug 26, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants