From 02d5dd6055f38b22692716a4144558172bad86eb Mon Sep 17 00:00:00 2001 From: Pandelis Zembashis
Date: Sat, 24 Oct 2026 17:03:41 -0700 Subject: [PATCH] Use composal.com as the default API origin --- CHANGELOG.md | 4 ++++ README.md | 6 +++--- action.yml | 2 +- verify.mjs | 2 +- verify.test.mjs | 9 ++++++++- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf4e7a..89c6492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.1 + +- Use composal.com by default while preserving explicit legacy and custom API origins. + ## 1.1.0 - Track one grouped saved-Scenario Run with `test-run-id`, replacing retired sweep IDs. diff --git a/README.md b/README.md index 863eb38..f85ebb6 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ By default the action waits up to 15 minutes. Passed or explicitly skipped reque | `sha` | PR head or branch push | Full deployed commit SHA. PR heads and branch pushes are inferred; supply it for other event types. | | `wait` | `'true'` | Wait for results; `'false'` only requests verification. | | `timeout` | `'15'` | Wait limit in minutes, between 1 and 60. Set the job timeout higher. | -| `api-url` | `https://composal.ai` | HTTPS API origin, for installations using another endpoint. | +| `api-url` | `https://composal.com` | HTTPS API origin, for installations using another endpoint. | Outputs: `url` (PR history or registered branch environment), `pull-request-id`, `run-id`, `test-run-id` (when started), `environment-id` (branch registration), and `status`. The workflow summary links to the full results. Critical/high issue recordings remain authenticated links in Verify. @@ -129,13 +129,13 @@ The `1` tag is the supported major release. To publish an update from the Vex mo ## GitLab CI For GitLab.com merge request pipelines, include -`https://composal.ai/ci/verify/v1/gitlab.yml` and extend `.composal-verify` +`https://composal.com/ci/verify/v1/gitlab.yml` and extend `.composal-verify` after your preview deployment. The copyable configuration in your project’s PR Testing includes direct MR pipeline rules and the connected Composal repo slug. The helper reads GitLab's IID and source SHA, hands off the exact preview, waits for its own verification run, and writes safe result IDs/links to `composal-verify.json`. -See [GitLab setup and CI variables](https://composal.ai/docs/verify/source-control/gitlab#gitlab-ci) +See [GitLab setup and CI variables](https://composal.com/docs/verify/source-control/gitlab#gitlab-ci) for dotenv handoff, fork and synthetic-commit restrictions, merge protection, and CLI/API examples. diff --git a/action.yml b/action.yml index 0fff666..77ba095 100644 --- a/action.yml +++ b/action.yml @@ -32,7 +32,7 @@ inputs: default: '15' api-url: description: Composal API origin. - default: https://composal.ai + default: https://composal.com outputs: url: description: Link to this PR's verification history. diff --git a/verify.mjs b/verify.mjs index 2d0dc68..a226c85 100644 --- a/verify.mjs +++ b/verify.mjs @@ -44,7 +44,7 @@ export function configuration(inputs, event, context) { if (!['https:', 'http:'].includes(preview.protocol) || preview.username || preview.password) throw new Error('preview-url must be an HTTP(S) URL without embedded credentials.') } - const base = new URL(inputs['api-url'] || 'https://composal.ai') + const base = new URL(inputs['api-url'] || 'https://composal.com') if ( base.protocol !== 'https:' || base.username || diff --git a/verify.test.mjs b/verify.test.mjs index 4cb8af1..5326dd7 100644 --- a/verify.test.mjs +++ b/verify.test.mjs @@ -213,7 +213,7 @@ test('hands a deployed URL to the exact request, waits, and publishes the groupe assert.equal(api.calls[0].redirect, 'error') assert.equal(result.status, 'passed') assert.equal(result['test-run-id'], 'run_grouped_1') - assert.equal(result.url, 'https://composal.ai/acme/verify/pull-requests/vpr_1') + assert.equal(result.url, 'https://composal.com/acme/verify/pull-requests/vpr_1') assert.deepEqual( updates.map((value) => value.status), ['queued', 'waiting_for_preview', 'preparing', 'prepared', 'queued', 'running', 'passed'] @@ -370,3 +370,10 @@ test('requires a Composal project and never infers it from a GitHub repository', assert.equal(config({ repository: 'ignored-repository' }).project, 'storefront') assert.equal(config({ repository: 'ignored-repository' }).repository, undefined) }) + + +test('explicit legacy and custom API origins remain authoritative', () => { + for (const base of ['https://composal.ai', 'https://private.example']) { + assert.equal(config({ 'api-url': base }).base, base) + } +})