Skip to content

feat: show artifact type when pushing files#1320

Merged
qweeah merged 12 commits into
oras-project:mainfrom
wangxiaoxuan273:printartifacttype
Apr 8, 2024
Merged

feat: show artifact type when pushing files#1320
qweeah merged 12 commits into
oras-project:mainfrom
wangxiaoxuan273:printartifacttype

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1061

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Apr 2, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.00%. Comparing base (de4cb15) to head (930b46d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1320      +/-   ##
==========================================
+ Coverage   83.99%   84.00%   +0.01%     
==========================================
  Files          90       90              
  Lines        3455     3458       +3     
==========================================
+ Hits         2902     2905       +3     
  Misses        331      331              
  Partials      222      222              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wangxiaoxuan273 wangxiaoxuan273 changed the title feat: show artifact type when pusing files feat: show artifact type when pushing files Apr 2, 2024
@wangxiaoxuan273 wangxiaoxuan273 force-pushed the printartifacttype branch 2 times, most recently from 5f9f780 to b3cffc4 Compare April 7, 2024 06:25
@wangxiaoxuan273 wangxiaoxuan273 marked this pull request as ready for review April 7, 2024 06:33

@qweeah qweeah 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.

Need enhance test when pushing to OCI spec v1.0 registries, should show artifact type when --config is used,

@wangxiaoxuan273

Copy link
Copy Markdown
Contributor Author

Need enhance test when pushing to OCI spec v1.0 registries, should show artifact type when --config is used,

Added the test

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>

@qweeah qweeah 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.

LGTM with minor suggestion.

Comment thread cmd/oras/internal/display/metadata/text/push_test.go
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
@qweeah qweeah merged commit 122f01b into oras-project:main Apr 8, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the printartifacttype branch April 9, 2024 08:30
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show artifact type when pushing files

2 participants