Skip to content

Respect --cloud in publish pre-flight checks - #281

Merged
Alexander Zaslonov (azaslonov) merged 2 commits into
mainfrom
copilot/fix-publish-cloud-flag
Sep 12, 2026
Merged

Alexander Zaslonov (azaslonov) merged 2 commits into
mainfrom
copilot/fix-publish-cloud-flag

Conversation

Copilot AI commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

apiops publish --cloud usgov checked resource-group existence against Azure’s public endpoint, causing false “resource group not found” errors despite correct cloud configuration.

  • Endpoint selection: Derive the resource-group check’s ARM origin from the configured service URL, preserving path encoding and API versions.
  • Regression coverage: Verify both pre-flight requests use the selected endpoint for public, US Government, China, and Germany clouds.

Copilot AI balanced review requested due to automatic review settings September 12, 2026 00:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: azaslonov <2320302+azaslonov@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 00:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The implementation appears correct, but the PR explicitly leaves tests, lint, build, and security validation pending.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Copilot AI changed the title [WIP] Fix publish command to respect --cloud flag Respect --cloud in publish pre-flight checks Sep 12, 2026
@azaslonov
Alexander Zaslonov (azaslonov) marked this pull request as ready for review September 12, 2026 00:35
@azaslonov
Alexander Zaslonov (azaslonov) merged commit 5e1dd93 into main Sep 12, 2026
7 checks passed
@azaslonov
Alexander Zaslonov (azaslonov) deleted the copilot/fix-publish-cloud-flag branch September 12, 2026 00:37
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.

Publish does not respect --cloud flag

4 participants