Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 19, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2025

⚠️ No Changeset found

Latest commit: 74d6f6a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor Author

jumski commented Nov 19, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 19, 2025

View your CI Pipeline Execution ↗ for commit 74d6f6a

Command Status Duration Result
nx affected -t deploy:preview --base=origin/mai... ✅ Succeeded 35s View ↗
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 30s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 6m 20s View ↗
nx affected -t test:e2e --parallel --base=origi... ✅ Succeeded 6m 22s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-19 10:33:56 UTC

@graphite-app graphite-app bot changed the base branch from 11-18-chore_update_deno_to_2.1.4 to graphite-base/397 November 19, 2025 08:25
@graphite-app graphite-app bot force-pushed the 11-19-enable_demo_preview_deployment branch from 79bf1d8 to b7bb2a2 Compare November 19, 2025 08:26
@graphite-app graphite-app bot changed the base branch from graphite-base/397 to main November 19, 2025 08:27
@graphite-app graphite-app bot force-pushed the 11-19-enable_demo_preview_deployment branch from b7bb2a2 to 389c556 Compare November 19, 2025 08:27
@jumski jumski force-pushed the 11-19-enable_demo_preview_deployment branch from 389c556 to 74d6f6a Compare November 19, 2025 10:24
@jumski jumski marked this pull request as ready for review November 19, 2025 10:24
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +200 to 208
if: github.event_name == 'pull_request'
needs: [build-and-test, edge-worker-e2e]
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'pull_request' && 'preview' || 'production' }}
environment: preview
# environment: ${{ github.event_name == 'pull_request' && 'preview' || 'production' }}
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

Choose a reason for hiding this comment

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

P1 Badge Guard demo deployment from forked PRs lacking secrets

This job now runs for every pull_request, but it immediately depends on repository secrets (NX_CLOUD_ACCESS_TOKEN, CLOUDFLARE_*, DEMO_PREVIEW_*). For PRs opened from forks those secrets are intentionally unavailable, so the workflow will fail before any tests run and block external contributors. Consider gating the job to only run when github.event.pull_request.head.repo.fork == false or similar, or switch to pull_request_target if safe.

Useful? React with 👍 / 👎.

Comment on lines +221 to +223
- name: Deploy demo preview
id: deploy-demo
env:
PREVIEW_NAME: pr-${{ github.event.pull_request.number }}
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
pnpm nx affected -t deploy:preview --projects=demo --base="$NX_BASE" --head="$NX_HEAD"
else
pnpm nx affected -t deploy --projects=demo --base="$NX_BASE" --head="$NX_HEAD"
fi
run: pnpm nx affected -t deploy:preview --base=origin/main --head=HEAD

Choose a reason for hiding this comment

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

P1 Badge Restrict Nx deploy to the demo project only

The Deploy demo preview step now executes pnpm nx affected -t deploy:preview without the previous --projects=demo filter. When the PR touches any other project that also has a deploy:preview target (e.g. the website), Nx will attempt to deploy that project in this job as well, but the job only sets demo-specific environment variables. This can cause the step to fail due to missing secrets or deploy the wrong project. Keep the --projects=demo restriction to limit the job to the intended target.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-397.pgflow.pages.dev

📝 Details:

  • Branch: 11-19-enable_demo_preview_deployment
  • Commit: 14eb282d6fe59a84b266429876b0987d5d4c4a16
  • View Logs

_Last updated: _

@github-actions
Copy link
Contributor

🔍 Preview Deployment: Demo

Deployment successful!

🔗 Preview URL: https://pr-397-pgflow-demo.jumski.workers.dev

📝 Details:

  • Branch: 11-19-enable_demo_preview_deployment
  • Commit: 14eb282d6fe59a84b266429876b0987d5d4c4a16
  • View Logs

_Last updated: _

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.

2 participants