diff --git a/.github/workflows/website-preview.yml b/.github/workflows/website-preview.yml index 49523e0686..6966005eaf 100644 --- a/.github/workflows/website-preview.yml +++ b/.github/workflows/website-preview.yml @@ -5,7 +5,10 @@ on: branches-ignore: - main paths: - - 'apps/web-roo-code/**' + - "apps/web-roo-code/**" + pull_request: + paths: + - "apps/web-roo-code/**" workflow_dispatch: env: @@ -21,11 +24,11 @@ jobs: - name: Check if VERCEL_TOKEN exists id: check run: | - if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then - echo "has-vercel-token=true" >> $GITHUB_OUTPUT - else - echo "has-vercel-token=false" >> $GITHUB_OUTPUT - fi + if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then + echo "has-vercel-token=true" >> $GITHUB_OUTPUT + else + echo "has-vercel-token=false" >> $GITHUB_OUTPUT + fi preview: runs-on: ubuntu-latest @@ -43,4 +46,39 @@ jobs: - name: Build Project Artifacts run: npx vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + id: deploy + run: | + DEPLOYMENT_URL=$(npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}) + echo "deployment_url=$DEPLOYMENT_URL" >> $GITHUB_OUTPUT + echo "Preview deployed to: $DEPLOYMENT_URL" + + - name: Comment PR with preview link + if: github.event_name == 'pull_request' + uses: actions/github-script@v7 + with: + script: | + const deploymentUrl = '${{ steps.deploy.outputs.deployment_url }}'; + const commentIdentifier = ''; + + const { data: comments } = await github.rest.issues.listComments({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + }); + + const existingComment = comments.find(comment => + comment.body.includes(commentIdentifier) + ); + + if (existingComment) { + return; + } + + const comment = commentIdentifier + '\nšŸš€ **Preview deployed!**\n\nYour changes have been deployed to Vercel:\n\n**Preview URL:** ' + deploymentUrl + '\n\nThis preview will be updated automatically when you push new commits to this PR.'; + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: comment + }); diff --git a/apps/web-evals/package.json b/apps/web-evals/package.json index d5046e6e82..b210fa085e 100644 --- a/apps/web-evals/package.json +++ b/apps/web-evals/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "lint": "next lint", + "lint": "next lint --max-warnings 0", "check-types": "tsc -b", "dev": "scripts/check-services.sh && next dev", "format": "prettier --write src", diff --git a/apps/web-roo-code/package.json b/apps/web-roo-code/package.json index bd491fde17..02812dc471 100644 --- a/apps/web-roo-code/package.json +++ b/apps/web-roo-code/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "lint": "next lint", + "lint": "next lint --max-warnings 0", "check-types": "tsc --noEmit", "dev": "next dev", "build": "next build", diff --git a/apps/web-roo-code/src/app/privacy/page.tsx b/apps/web-roo-code/src/app/privacy/page.tsx index 516bd5dc17..ea12094ebb 100644 --- a/apps/web-roo-code/src/app/privacy/page.tsx +++ b/apps/web-roo-code/src/app/privacy/page.tsx @@ -17,8 +17,8 @@ export default function Privacy() {

Last Updated: June 19, 2025

- This Privacy Policy explains how Roo Code, Inc. ("Roo Code," "we," "our," or "us") collects, - uses, and shares information when you: + This Privacy Policy explains how Roo Code, Inc. ("Roo Code," "we," + "our," or "us") collects, uses, and shares information when you:

-

3. Where Your Data Goes (And Doesn't)

+

3. Where Your Data Goes (And Doesn't)