mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - Upgrade Next.js from 16.1.6 to 16.2.3 - Add `suppressHydrationWarning` to `<html>` tag to fix `next-themes` hydration mismatch - Remove unnecessary `isClient` guard in `ThemeProvider` that caused script tag warning - Redirect unauthenticated `/roadmap` visitors to `/login` instead of `/` ## Test plan - [ ] Verify `/roadmap` redirects to `/login` when not logged in - [ ] Verify `/roadmap` loads correctly when logged in as team member - [ ] Verify no hydration warnings in browser console - [ ] Verify dark/light theme switching still works
80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
name: Codeflash AiService
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "django/aiservice/**"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
checks: read
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: django/aiservice
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
should-run: ${{ steps.filter.outputs.aiservice }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: dorny/paths-filter@v4
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
aiservice:
|
|
- 'django/aiservice/**'
|
|
|
|
no-aiservice-changes:
|
|
name: No aiservice changes detected
|
|
needs: check-changes
|
|
if: needs.check-changes.outputs.should-run != 'true'
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: .
|
|
steps:
|
|
- name: Skip optimization
|
|
run: echo "Skipping codeflash optimization - no changes in django/aiservice/"
|
|
|
|
optimize:
|
|
needs: [check-changes]
|
|
if: needs.check-changes.outputs.should-run == 'true' && github.actor != 'codeflash-ai[bot]'
|
|
name: Optimize new code in this PR
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }}
|
|
CODEFLASH_PR_NUMBER: ${{ github.event.number }}
|
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
DJANGO_SETTINGS_MODULE: aiservice.settings
|
|
COLUMNS: 110
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
python-version: "3.12"
|
|
enable-cache: true
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
uv sync
|
|
uv pip install git+https://github.com/codeflash-ai/codeflash@main
|
|
|
|
- name: Run Codeflash
|
|
run: uv run codeflash
|