Skip to content

fix: validate minimum arguments for tag command - #2265

Merged
TerryHowe merged 3 commits into
oras-project:mainfrom
TanvirTian:fix/tag-minimum-arguments
Oct 20, 2026
Merged

TerryHowe merged 3 commits into
oras-project:mainfrom
TanvirTian:fix/tag-minimum-arguments

Conversation

@TanvirTian

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR fixes oras tag argument validation to require a source artifact reference and at least one destination tag.

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 #2264

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.08%. Comparing base (d6e7b58) to head (99601a1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2265      +/-   ##
==========================================
+ Coverage   59.71%   60.08%   +0.37%     
==========================================
  Files         140      140              
  Lines        6091     6091              
==========================================
+ Hits         3637     3660      +23     
+ Misses       2233     2209      -24     
- Partials      221      222       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@TerryHowe
TerryHowe merged commit 38812fe into oras-project:main Oct 20, 2026
10 checks passed
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.

oras tag accepts a single argument instead of requiring at least two

2 participants