Skip to content

refactor: add metadata render interface and apply it to oras attach command#1578

Merged
qweeah merged 3 commits into
oras-project:mainfrom
wangxiaoxuan273:on-completed
Dec 11, 2024
Merged

refactor: add metadata render interface and apply it to oras attach command#1578
qweeah merged 3 commits into
oras-project:mainfrom
wangxiaoxuan273:on-completed

Conversation

@wangxiaoxuan273

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):
Part of #1573

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?

Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
@wangxiaoxuan273 wangxiaoxuan273 changed the title refactor: make OnCompleted of oras attach to have no parameter refactor: make OnCompleted of oras attach to have no parameter Dec 10, 2024
@codecov

codecov Bot commented Dec 10, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.33%. Comparing base (0844004) to head (36dcba1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1578      +/-   ##
==========================================
+ Coverage   84.29%   84.33%   +0.03%     
==========================================
  Files         120      120              
  Lines        5401     5413      +12     
==========================================
+ Hits         4553     4565      +12     
  Misses        602      602              
  Partials      246      246              

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

Comment thread cmd/oras/internal/display/handler.go Outdated
@wangxiaoxuan273 wangxiaoxuan273 marked this pull request as ready for review December 10, 2024 06:07
Comment thread cmd/oras/internal/display/metadata/interface.go Outdated
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.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

@qweeah qweeah changed the title refactor: make OnCompleted of oras attach to have no parameter refactor: add metadata render interface and apply it to oras attach command Dec 11, 2024
@qweeah qweeah merged commit f7561b2 into oras-project:main Dec 11, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the on-completed branch February 17, 2025 10:26
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.

2 participants