Skip to content

chore: clean metadata handler for attach command#1584

Merged
qweeah merged 9 commits into
oras-project:mainfrom
qweeah:jinzha1/code-clean
Dec 13, 2024
Merged

chore: clean metadata handler for attach command#1584
qweeah merged 9 commits into
oras-project:mainfrom
qweeah:jinzha1/code-clean

Conversation

@qweeah

@qweeah qweeah commented Dec 11, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR is a follow-up of #1578 with minor code change in attach metadata handler.

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: Billy Zha <jinzha1@microsoft.com>
@codecov

codecov Bot commented Dec 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.29%. Comparing base (53247dd) to head (90c796c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1584      +/-   ##
==========================================
- Coverage   84.33%   84.29%   -0.04%     
==========================================
  Files         120      120              
  Lines        5413     5413              
==========================================
- Hits         4565     4563       -2     
- Misses        602      604       +2     
  Partials      246      246              

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

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Comment thread cmd/oras/internal/display/metadata/text/attach.go
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah changed the title chore: code clean chore: clean metadata handler for attach command Dec 11, 2024
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@shizhMSFT shizhMSFT 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 suggestions

Comment thread cmd/oras/internal/display/metadata/text/attach.go Outdated
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah merged commit 6fe0395 into oras-project:main Dec 13, 2024
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.

3 participants