Skip to content

INTER-2472: Update schema URL in sync script - #55

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, the base URL moves into defaultBaseUrl with schemaUrl / examplesBaseUrl positional overrides. Use env bash shebang, so the script picks up bash from the correct environment. Resolve paths relative to the repository root. Harden curl with retry transient failures, refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hand CI or local. Rename examplesList to examples, log the full URL being fetched rather than just the example path, so it is clear which base URL a run actually used.

Update the OpenAPI repository link in the contributing.md file.

Update OpenAPI schema URL in the sync script. Extract the base URL
into `defaultBaseUrl` with positional overrides.

Use `env bash` shebang, so the script picks up bash from the correct
environment. Resolve paths relative to the repository root. Harden `curl`
with retry transient failures, refuse redirects that leave https and
bound connect and transfer time so a stalled download cannot hand CI or
local. Rename `examplesList` to `examples`, log the full URL being
fetched rather than just the example path, so it is clear which base URL
a run actually used.

Update the OpenAPI repository link in the `contributing.md` file.

Related-Task: INTER-2472

Copilot AI left a comment

Copy link
Copy Markdown

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 required upstream rename PR remains open and merging now would break schema downloads.

Review effort: Balanced
Findings: None

What changed in this PR

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

Changes:

  • Uses the renamed repository’s schema and examples URLs.
  • Adds configurable URLs, retries, timeouts, and repository-relative paths.
  • Updates the contributing guide repository link.
File Description
scripts/​sync.sh Updates download URLs and hardens synchronization.
contributing.md Points contributors to the renamed repository.

💡 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:04
@erayaydin erayaydin changed the title [DO NOT MERGE] INTER-2472: Update schema URL in sync script INTER-2472: Update schema URL in sync script Sep 29, 2026
@erayaydin
erayaydin merged commit ad16c32 into main Sep 29, 2026
19 checks passed
@erayaydin
erayaydin deleted the chore/openapi-repo-rename-inter-2472 branch September 29, 2026 10:48
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