Skip to content

feat(publish): add approve-all to approve every staged submission at once - #99

Merged
LukasHirt merged 1 commit into
mainfrom
feat/publish-approve-all
Jul 24, 2026
Merged

feat(publish): add approve-all to approve every staged submission at once#99
LukasHirt merged 1 commit into
mainfrom
feat/publish-approve-all

Conversation

@LukasHirt

Copy link
Copy Markdown
Owner

Summary

  • Adds extctl publish approve-all, which discovers every locally-staged publish/<app-id>-v<version> branch and runs the same push+PR-open flow as extctl publish approve <id> on each — no need to approve staged submissions one at a time.
  • One submission failing to push or open a PR doesn't stop the batch; every result is printed and approve-all exits non-zero if any submission failed.
  • New listPendingSubmissions helper in internal/marketplace/pending.go (and ApproveAll) drive it; PendingSubmission/ApproveAllResult are the new exported types.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... — all packages pass, including new TestListPendingSubmissions / TestListPendingSubmissions_None
  • extctl publish approve-all --help prints as expected

…once

Approving a batch of staged marketplace submissions one `extctl publish
approve <id>` call at a time doesn't scale once more than a couple are
pending. `extctl publish approve-all` discovers every local
publish/<app-id>-v<version> branch and runs Approve on each, continuing
past individual failures and exiting non-zero if any submission failed.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt self-assigned this Jul 24, 2026
@LukasHirt
LukasHirt enabled auto-merge (squash) July 24, 2026 11:12
@LukasHirt
LukasHirt merged commit f80ceb9 into main Jul 24, 2026
3 checks passed
@LukasHirt
LukasHirt deleted the feat/publish-approve-all branch July 24, 2026 11:13
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.

1 participant