Skip to content

INTER-2472: Update schema URL and harden sync script - #234

Merged
erayaydin merged 2 commits into
mainfrom
chore/openapi-repo-rename-inter-2472
Sep 29, 2026
Merged

erayaydin merged 2 commits into
mainfrom
chore/openapi-repo-rename-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 with a 404. 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. Resolve paths relative to the repository root, so the script no longer writes into whatever directory it is invoked from. Collect the curl flags into CURL_OPTS, gated on TRACE and ACTIONS_STEP_DEBUG so runs can be made verbose, and harden them to refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hang CI or local. Log the schema download, which was previously silent.

Update the OpenAPI schema URL.

Use an `env bash` shebang so the script picks up bash from PATH.
Resolve paths relative to the repository root.

Collect the curl flags into `CURL_OPTS`, gated on `TRACE` and
`ACTIONS_STEP_DEBUG` so runs can be made verbose, and harden them: refuse
redirects that leave https, and bound connect and transfer time so a stalled
download cannot hang CI or a local run. Log the schema download, which was
previously silent.

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

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

☂️ Code Coverage

current status: ✅

Overall Coverage

Statements Covered Coverage Threshold Status
3267 2342 72% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 4cacae7 by action🐍

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 new URL depends on upstream PR #480 and its repository rename, which remain pending.

Review effort: Balanced
Findings: None

What changed in this PR

Updates OpenAPI synchronization for the pending upstream repository rename and improves script reliability.

Changes:

  • Uses the renamed GitHub Pages URL and repository-relative paths.
  • Adds configurable, secure curl options with timeouts and logging.
  • Preserves generated resource and mock destinations regardless of invocation directory.
File Description
sync.sh Updates download URLs and hardens schema/example synchronization.

💡 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

⚠️ 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.

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