Files

1 line
19 KiB
JSON

{"repo": "bokralabs/mizan", "files": {".github/workflows/preview.yml": {"dffbc86c2a02c2f54e1752730a0a8f399ca23549": {"t": 1785747040.5697045, "n": 2816, "h": "2f34e620a8e8d9d6", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Prepare PR preview app spec\n env:\n PREVIEW_BRANCH: ${{ github.head_ref }}\n run: |\n cp .do/app.yaml .do/preview-app.yaml\n perl -0pi -e 's/\\ndomains:\\n(?: - domain: .+\\n type: .+\\n)+//' .do/preview-app.yaml\n perl -0pi -e 's/branch: main/branch: $ENV{PREVIEW_BRANCH}/' .do/preview-app.yaml\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n env:\n NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}\n DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_spec_location: .do/preview-app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "e4206ac83103df67f62df7c0f9d5a63194a2b517": {"t": 1785769974.1909652, "n": 2816, "h": "2f34e620a8e8d9d6", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Prepare PR preview app spec\n env:\n PREVIEW_BRANCH: ${{ github.head_ref }}\n run: |\n cp .do/app.yaml .do/preview-app.yaml\n perl -0pi -e 's/\\ndomains:\\n(?: - domain: .+\\n type: .+\\n)+//' .do/preview-app.yaml\n perl -0pi -e 's/branch: main/branch: $ENV{PREVIEW_BRANCH}/' .do/preview-app.yaml\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n env:\n NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}\n DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_spec_location: .do/preview-app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "9c155497eadd1cf822018e7bd3382417acaa0f0d": {"t": 1785769979.4601529, "n": 2718, "h": "3867c9356ad86173", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Prepare PR preview app spec\n env:\n PREVIEW_BRANCH: ${{ github.head_ref }}\n run: |\n cp .do/app.yaml .do/preview-app.yaml\n perl -0pi -e 's/branch: main/branch: $ENV{PREVIEW_BRANCH}/' .do/preview-app.yaml\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n env:\n NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}\n DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_spec_location: .do/preview-app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "d418fba7d93caa55742ad640c54ef0aa11869bf8": {"t": 1785769981.7334557, "n": 2658, "h": "61b47dc99cbb325f", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Prepare PR preview app spec\n env:\n PREVIEW_BRANCH: ${{ github.head_ref }}\n run: |\n cp .do/app.yaml .do/preview-app.yaml\n perl -0pi -e 's/branch: main/branch: $ENV{PREVIEW_BRANCH}/' .do/preview-app.yaml\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n env:\n NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_spec_location: .do/preview-app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "8577ead56e0566874180458f243ae6759955da6c": {"t": 1785769984.3551319, "n": 2308, "h": "5098ff416ef2f19a", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_spec_location: .do/app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "5d3cc809905b75d07eed10d31f8542b545addfdc": {"t": 1785769986.3802986, "n": 2334, "h": "fbf67b836e072667", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_name: mizan\n app_spec_location: .do/app.yaml\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}, "47e14fcdce84871afee1e5f53da6665d43614724": {"t": 1785769988.6419582, "n": 2292, "h": "78738a06410818a8", "c": "name: PR Preview Deploy\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\nconcurrency:\n group: preview-${{ github.event.pull_request.number }}\n cancel-in-progress: true\n\njobs:\n lint-and-typecheck:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - uses: actions/setup-node@v5\n with:\n node-version: '22'\n cache: 'npm'\n cache-dependency-path: app/package-lock.json\n - name: Install dependencies\n working-directory: app\n run: npm ci --legacy-peer-deps\n - name: Lint\n working-directory: app\n run: npm run lint\n - name: Type check\n working-directory: app\n run: npm run type-check\n\n preview-deploy:\n needs: lint-and-typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v5\n - name: Deploy PR Preview to DigitalOcean\n id: deploy\n uses: digitalocean/app_action/deploy@v2\n with:\n deploy_pr_preview: \"true\"\n token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}\n app_name: mizan\n - name: Comment preview URL on PR\n if: steps.deploy.outputs.url\n uses: actions/github-script@v7\n with:\n script: |\n const url = '${{ steps.deploy.outputs.url }}';\n const body = `🚀 **Preview deployed!**\\n\\n${url}\\n\\n_This preview will be automatically deleted when the PR is closed._`;\n\n // Check if we already commented\n const comments = await github.rest.issues.listComments({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n });\n const existing = comments.data.find(c => c.body.includes('Preview deployed!'));\n if (existing) {\n await github.rest.issues.updateComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n comment_id: existing.id,\n body,\n });\n } else {\n await github.rest.issues.createComment({\n owner: context.repo.owner,\n repo: context.repo.repo,\n issue_number: context.issue.number,\n body,\n });\n }\n"}}}}