Skip to content

refactor: Move descriptor logic to descriptor#1413

Merged
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:get-title-or-media-type
Jun 18, 2024
Merged

refactor: Move descriptor logic to descriptor#1413
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:get-title-or-media-type

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Move the logic of descriptor title vs media type to the descriptor package.

@codecov

codecov Bot commented Jun 17, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.28%. Comparing base (a84af2f) to head (7ab8f93).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1413      +/-   ##
==========================================
+ Coverage   85.27%   85.28%   +0.01%     
==========================================
  Files         107      107              
  Lines        3795     3798       +3     
==========================================
+ Hits         3236     3239       +3     
  Misses        335      335              
  Partials      224      224              

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

Comment thread internal/descriptor/descriptor.go Outdated
@TerryHowe TerryHowe force-pushed the get-title-or-media-type branch from db1017c to 15e10f1 Compare June 18, 2024 12:23
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@TerryHowe TerryHowe force-pushed the get-title-or-media-type branch from 15e10f1 to b3939e4 Compare June 18, 2024 12:25

@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 internal/descriptor/descriptor.go Outdated
TerryHowe and others added 2 commits June 18, 2024 13:03
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@TerryHowe TerryHowe merged commit 294abbc into oras-project:main Jun 18, 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.

2 participants