Skip to content

fix(api): propagate errors from GetLabel instead of returning nil#1004

Merged
bupd merged 1 commit into
goharbor:mainfrom
AdeshDeshmukh:fix/getlabel-return-error
Jul 7, 2026
Merged

fix(api): propagate errors from GetLabel instead of returning nil#1004
bupd merged 1 commit into
goharbor:mainfrom
AdeshDeshmukh:fix/getlabel-return-error

fix(api): propagate errors from GetLabel instead of returning nil

4ef7586
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Jul 6, 2026 in 0s

9.16% (-1.83%) compared to 60ad0bd

View this Pull Request on Codecov

9.16% (-1.83%) compared to 60ad0bd

Details

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 9.16%. Comparing base (60ad0bd) to head (4ef7586).
⚠️ Report is 191 commits behind head on main.

Files with missing lines Patch % Lines
pkg/api/label_handler.go 0.00% 7 Missing ⚠️
cmd/harbor/root/artifact/label/add.go 0.00% 3 Missing ⚠️
cmd/harbor/root/labels/update.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             main   #1004      +/-   ##
=========================================
- Coverage   10.99%   9.16%   -1.83%     
=========================================
  Files         173     321     +148     
  Lines        8671   16087    +7416     
=========================================
+ Hits          953    1475     +522     
- Misses       7612   14478    +6866     
- Partials      106     134      +28     

☔ 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.