Skip to content

feat: expose listing available organizations via woodpecker-go / CLI#5481

Merged
qwerty287 merged 7 commits into
woodpecker-ci:mainfrom
hhamalai:main
Sep 6, 2025
Merged

feat: expose listing available organizations via woodpecker-go / CLI#5481
qwerty287 merged 7 commits into
woodpecker-ci:mainfrom
hhamalai:main

Conversation

@hhamalai

@hhamalai hhamalai commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Currently neither the woodpecker cli nor woodpecker-go expose functionality to list organizations (while it's available on the HTTP API).

Mentioned in #3386

@qwerty287 qwerty287 added enhancement improve existing features cli labels Sep 5, 2025
Comment thread cli/org/org_list.go Outdated
@qwerty287

Copy link
Copy Markdown
Contributor

Thanks! Thinking about this again, this should actually go to the admin right? There are also user list etc. and in the web ui the org list is also under the admin settings.

@woodpecker-bot

woodpecker-bot commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-5481.surge.sh

@hhamalai

hhamalai commented Sep 5, 2025

Copy link
Copy Markdown
Contributor Author

Thinking about this again, this should actually go to the admin right? There are also user list etc. and in the web ui the org list is also under the admin settings.

You're right, the org package requires forge admin permissions, while listing organizations requires Woodpecker admin role. Moved this under admin command.

@qwerty287

Copy link
Copy Markdown
Contributor

Thanks. You have to regenerate the mock client though: https://ci.woodpecker-ci.org/repos/3780/pipeline/28156/34#L239

@codecov

codecov Bot commented Sep 6, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.41%. Comparing base (4fd240a) to head (8737d78).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
cli/admin/org/org_list.go 0.00% 25 Missing ⚠️
woodpecker-go/woodpecker/org.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5481      +/-   ##
==========================================
- Coverage   26.46%   26.41%   -0.05%     
==========================================
  Files         403      404       +1     
  Lines       28811    28842      +31     
==========================================
- Hits         7625     7620       -5     
- Misses      20491    20527      +36     
  Partials      695      695              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@qwerty287 qwerty287 merged commit 54c205d into woodpecker-ci:main Sep 6, 2025
7 of 9 checks passed
@woodpecker-bot woodpecker-bot mentioned this pull request Sep 6, 2025
1 task
@anbraten anbraten added feature add new functionality and removed enhancement improve existing features labels Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli feature add new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants