Skip to content

Feat: Add scope options in labels#560

Merged
Vad1mo merged 15 commits into
goharbor:mainfrom
NucleoFusion:feat/scope_labels
Nov 12, 2025
Merged

Feat: Add scope options in labels#560
Vad1mo merged 15 commits into
goharbor:mainfrom
NucleoFusion:feat/scope_labels

Conversation

@NucleoFusion

@NucleoFusion NucleoFusion commented Oct 18, 2025

Copy link
Copy Markdown
Contributor

Adding support for scope in labels

  • Added --project flag for querying with projectName. (Auto changes scope to project)
  • Added --project-id flag for querying with project-id. (Auto changes scope to project)
  • Added --global flag for forcing global query. (Default scope is global, and this is not needed otherwise)
2025-11-01.18-21-22.mp4

Same is done for deletion/creation/updation

afeefuddin and others added 9 commits October 18, 2025 16:42
Signed-off-by: afeefuddin <afeefud2004din@gmail.com>
Signed-off-by: afeefuddin <afeefud2004din@gmail.com>
Signed-off-by: afeefuddin <afeefud2004din@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
…switch

Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
@codecov

codecov Bot commented Oct 26, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 230 lines in your changes missing coverage. Please review.
✅ Project coverage is 6.47%. Comparing base (60ad0bd) to head (2396cc0).
⚠️ Report is 58 commits behind head on main.

Files with missing lines Patch % Lines
pkg/prompt/prompt.go 0.00% 39 Missing ⚠️
pkg/utils/query.go 0.00% 35 Missing ⚠️
cmd/harbor/root/labels/list.go 0.00% 33 Missing ⚠️
cmd/harbor/root/labels/delete.go 0.00% 26 Missing ⚠️
cmd/harbor/root/labels/update.go 0.00% 26 Missing ⚠️
pkg/views/project/select/view.go 0.00% 17 Missing ⚠️
cmd/harbor/root/labels/create.go 0.00% 10 Missing ⚠️
pkg/api/project_handler.go 0.00% 6 Missing ⚠️
pkg/api/label_handler.go 0.00% 5 Missing ⚠️
cmd/harbor/root/artifact/label/delete.go 0.00% 4 Missing ⚠️
... and 9 more
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #560      +/-   ##
=========================================
- Coverage   10.99%   6.47%   -4.53%     
=========================================
  Files         173     260      +87     
  Lines        8671   12797    +4126     
=========================================
- Hits          953     828     -125     
- Misses       7612   11863    +4251     
  Partials      106     106              

☔ View full report in Codecov by Sentry.
📢 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.

@NucleoFusion NucleoFusion marked this pull request as ready for review October 26, 2025 04:48
@NucleoFusion NucleoFusion changed the title [WIP] Feat: Add scope options in labels Feat: Add scope options in labels Oct 26, 2025
NucleoFusion and others added 6 commits November 1, 2025 18:20
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>

@bupd bupd 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

@Vad1mo Vad1mo merged commit da44eac into goharbor:main Nov 12, 2025
7 of 9 checks passed
@bupd bupd mentioned this pull request Nov 13, 2025
vg006 pushed a commit to vg006/harbor-cli that referenced this pull request Jan 22, 2026
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.

4 participants