Skip to content

[api-v3] INTER-2472: Update schema URL and harden sync script - #282

Merged
erayaydin merged 1 commit into
api-v3from
chore/openapi-repo-rename-api-v3-inter-2472
Sep 29, 2026
Merged

erayaydin merged 1 commit into
api-v3from
chore/openapi-repo-rename-api-v3-inter-2472

Conversation

@erayaydin

@erayaydin erayaydin commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

GitHub redirects repository URLs after a rename but explicitly not project GitHub Pages URLs, so sync.sh will start failing after the rename. This PR changes the default OpenAPI schema URL.

Alongside the URL change, use env bash shebang, so the script picks up bash from the correct environment. Harden curl to refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hang CI or local. Log the download, and inline the base URL into schemaUrl.

Separately, contributing.md documented sh ./scripts/sync.sh and sh ./scripts/generate.sh. Both are executable, so the documented command is now ./scripts/<script>.sh, which honors the shebang. This is pre-existing and unrelated to the rename.

Update the OpenAPI schema URL.

Use an `env bash` shebang and harden `curl` to refuse redirects that leave
https and to bound connect and transfer time, so a stalled download cannot
hang CI or a local run. Log the download. Inline the base URL into
`schemaUrl`.

Document `./scripts/sync.sh` and `./scripts/generate.sh` instead of invoking
them through `sh`.

Related-Task: INTER-2472
@erayaydin
erayaydin requested a balanced review from Copilot September 24, 2026 19:59
@erayaydin erayaydin self-assigned this Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

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 review overview

🔵 Needs a closer look

The URL cutover depends on an upstream merge and repository rename that remain explicit prerequisites.

Review effort: Balanced
Findings: None

What changed in this PR

Updates schema synchronization for the planned OpenAPI repository rename and improves download reliability.

Changes:

  • Uses the renamed GitHub Pages schema URL.
  • Adds HTTPS redirect restrictions and network timeouts.
  • Documents executable scripts using their shebangs.
File Description
scripts/​sync.sh Updates and hardens schema downloading.
contributing.md Corrects script invocation guidance.

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

@github-actions

Copy link
Copy Markdown
Contributor

🟢 Coverage increased by 34.33%

Code Coverage Report

Coverage Report

St. Category Percentage Covered / Total
🔴 Statements 34.33% 1892 / 5512
🔴 Functions 26.74% 675 / 2524
Files Coverage
St. File Methods Statements Total Coverage
🔴 src/Model/BotdBotResult.php 0.00% 0.00% 0.00%
🔴 src/Model/ErrorCode.php 0.00% 0.00% 0.00%
🔴 src/Model/ModelInterface.php 0.00% 0.00% 0.00%
🔴 src/Model/ProxyConfidence.php 0.00% 0.00% 0.00%
🔴 src/Model/VPNConfidence.php 0.00% 0.00% 0.00%

@erayaydin
erayaydin marked this pull request as ready for review September 25, 2026 09:06
@erayaydin erayaydin changed the title [DO NOT MERGE] [api-v3] INTER-2472: Update schema URL and harden sync script [api-v3] INTER-2472: Update schema URL and harden sync script Sep 29, 2026
@erayaydin
erayaydin merged commit 086d7b3 into api-v3 Sep 29, 2026
19 checks passed
@erayaydin
erayaydin deleted the chore/openapi-repo-rename-api-v3-inter-2472 branch September 29, 2026 10:50
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.

3 participants