Compare commits

...
19 Commits
Author SHA1 Message Date
Noel 34c9995939 Merge pull request 'feat: ci cd pipelien' (#1) from feat/ci_cd_pipelien into main
release-please / release-please (push) Failing after 15s
Reviewed-on: #1
2026-10-18 14:31:27 +00:00
Noel Sabia 16b9291a51 fix(ci): hand review diff to agent as file, not argv
PR Check / ESLint (pull_request) Successful in 35s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Typecheck (pull_request) Successful in 38s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / AI code review (opencode) (pull_request) Failing after 11s
Passing the PR diff as a command-line argument exceeded
MAX_ARG_STRLEN (128KiB per single argument; the diff was 190KB,
mostly pnpm-lock.yaml). The shell failed with E2BIG ('Argument list
too long') and the tee pipeline masked the failure, so the raw error
log got posted as a 'review' comment.

- exclude pnpm-lock.yaml from the review diff (pnpm audit covers deps)
- write the diff to .pr-review-diff.patch in the workspace; the agent
  reads it with file tools
- redirect output instead of piping through tee and fail the job when
  opencode fails, so errors are never posted as review comments
2026-10-18 16:25:30 +02:00
Noel Sabia 99f6e28ad0 ci: max-effort DeepSeek review with Nuxt/Go-specific prompt
PR Check / AI code review (opencode) (pull_request) Successful in 7s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 8s
- model: opencode/deepseek-v4-pro#max (requires funds on the opencode
  account; flash fallback documented in a comment)
- review prompt rewritten: SSR/hydration/reactivity pitfalls, Nuxt
  server-route security, runtime config leaks, Go error handling,
  concurrency and resource hygiene, frontend/backend contract checks
- strict output format with [BLOCKER]/[WARN]/[NIT] severities mapped
  to the approve/request-changes verdict
2026-10-18 16:22:26 +02:00
Noel Sabia 3204fab323 ci: disable Snyk (free plan quota), log comment-post errors
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 38s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
- Snyk job disabled via 'if: false': free plan only has ~100 test
  credits/month and the job runs 2 tests per PR push
- PR comment step no longer fails silently: curl prints the HTTP
  status and response body, making token/URL errors visible
2026-10-18 16:12:05 +02:00
Noel Sabia a061fad9b1 fix(ci): JSON-encode review with node instead of jq
PR Check / Security scan (Snyk) (pull_request) Failing after 32s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / AI code review (opencode) (pull_request) Successful in 8s
The node:22-bookworm image does not ship jq. Also use the renamed
PR_GITEA_TOKEN secret.
2026-10-18 16:08:39 +02:00
Noel Sabia 4f3d16cef9 ci: trigger fresh workflow run
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 35s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 29s
PR Check / AI code review (opencode) (pull_request) Successful in 8s
2026-10-18 16:06:21 +02:00
Noel Sabia 34d9577322 ci: replace Snyk docker scan with Snyk Code SAST scan
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 39s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 43s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
Dockerfile linting is already covered by the droast job; the second
Snyk step now scans our own source for code vulnerabilities (XSS,
injection, unsafe patterns) instead of the base image.
2026-10-18 16:02:18 +02:00
Noel Sabia 7197f757a6 fix(ci): pass --all-projects to snyk test
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 35s
PR Check / Typecheck (pull_request) Successful in 38s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Security scan (Snyk) (pull_request) Failing after 29s
PR Check / AI code review (opencode) (pull_request) Canceled after 8s
The pnpm-workspace.yaml makes Snyk treat the project as a package
workspace; without --all-projects it aborts with SNYK-CLI-0000
(422 Unprocessable Entity).
2026-10-18 16:00:08 +02:00
Noel Sabia 8d2a00062e fix(ci): run Snyk CLI via npm on arm64 runner
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 35s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 35s
PR Check / AI code review (opencode) (pull_request) Successful in 8s
The snyk/snyk:node image is amd64-only and cannot start on an arm64
runner. Install the Snyk CLI through npm (supports linux/arm64) in
the multi-arch node:22-bookworm image instead.
2026-10-18 15:56:27 +02:00
Noel Sabia affd17f068 ci: switch AI review to deepseek-v4-pro
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
Replace anthropic/claude-sonnet-4-5 with opencode/deepseek-v4-pro for
a large cost reduction while keeping thorough, high-effort reviews.
Documented cheaper fallback: deepseek-v4.1-flash(-free).
2026-10-18 15:54:38 +02:00
Noel Sabia 390538f2e8 ci: log runner architecture in gitleaks install step
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 39s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 8s
2026-10-18 15:50:53 +02:00
Noel Sabia 88dadd5846 fix(ci): pick gitleaks binary by CPU architecture
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 38s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
The runner is arm64; the hardcoded x64 binary failed with 'Exec
format error'. Resolve the arch at runtime (x86_64/aarch64).
2026-10-18 15:47:50 +02:00
Noel Sabia 779cf20f45 fix(ci): run gitleaks as binary in node image
PR Check / Typecheck (pull_request) Successful in 40s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Failing after 4s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
The gitleaks container image ships no node binary, so node-based
actions like actions/checkout fail with exit code 127. Install the
gitleaks v8.28.0 binary in the standard node:22-bookworm image
instead.
2026-10-18 15:44:45 +02:00
Noel Sabia ce9c090a15 fix(ci): pull gitleaks from GHCR and pin version
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Typecheck (pull_request) Successful in 38s
PR Check / Secret scan (gitleaks) (pull_request) Failing after 5s
PR Check / Dependency audit (pull_request) Successful in 8s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / ESLint (pull_request) Successful in 35s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
gitleaks is not published on Docker Hub, so the container image pull
failed with 'pull access denied'. Use ghcr.io/gitleaks/gitleaks and
pin v8.28.0 for reproducible scans.
2026-10-18 15:42:40 +02:00
Noel Sabia ecd0192466 fix(ci): use pnpm 11 in runner
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 36s
PR Check / Typecheck (pull_request) Successful in 39s
PR Check / Secret scan (gitleaks) (pull_request) Failing after 1s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 8s
pnpm 9 treats the config-only pnpm-workspace.yaml (allowBuilds, no
packages field) as a workspace definition and fails with 'packages
field missing or empty'. Pin the same major version as local dev.
2026-10-18 15:39:35 +02:00
Noel Sabia bb13f1a187 fix(ci): run app jobs from repo root
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / ESLint (pull_request) Failing after 7s
PR Check / Typecheck (pull_request) Failing after 7s
PR Check / Secret scan (gitleaks) (pull_request) Failing after 1s
PR Check / Dependency audit (pull_request) Successful in 7s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
PR Check / AI code review (opencode) (pull_request) Successful in 7s
The Gitea repo CV_Website/CV_Site_Nuxt checks out to a workspace that
already is the app root, so working-directory CV_Site_Nuxt resolved to
a doubled, non-existent path.
2026-10-18 15:37:21 +02:00
Noel Sabia e4ea5c3e7c feat: extend ESLint config with default rule set
PR Check / Dependency audit (pull_request) Successful in 6s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / AI code review (opencode) (pull_request) Successful in 8s
PR Check / ESLint (pull_request) Failing after 7s
PR Check / Typecheck (pull_request) Failing after 6s
PR Check / Secret scan (gitleaks) (pull_request) Failing after 1s
PR Check / Security scan (Snyk) (pull_request) Failing after 1s
- ignore generated code (.nuxt, .output, dist)
- no-console/no-debugger warnings in production
- enforce eqeqeq, prefer-const, no-var
- Vue conventions: PascalCase templates, script-template-style order,
  true attribute shorthand, warn on v-html (XSS)
- disable no-undef in favour of TypeScript
2026-10-18 15:17:49 +02:00
Noel Sabia 1d9da87986 ci: add PR checker workflow
Runs on every pull request:
- ESLint and vue-tsc typecheck
- gitleaks secret scan over full history
- pnpm dependency audit (advisory)
- droast Dockerfile lint (skips until a Dockerfile exists)
- Snyk dependency and base image scan
- opencode AI code review posted as PR comment
2026-10-18 15:16:12 +02:00
Noel Sabia 4e2a03eab8 feat: set up ESLint and typecheck with @nuxt/eslint
- add @nuxt/eslint module and flat config (eslint.config.mjs)
- add lint, lint:fix and typecheck scripts
- add typescript and vue-tsc dev dependencies
- approve unrs-resolver build script in pnpm-workspace.yaml
2026-10-18 15:16:12 +02:00
7 changed files with 2614 additions and 127 deletions

No files matched your search

+310
View File
@@ -0,0 +1,310 @@
name: PR Check
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: pr-check-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
# The Gitea repo root IS the Nuxt app (CV_Website/CV_Site_Nuxt), so all
# app commands run from the workspace root. If you ever move the app into
# a subdirectory, change this to the subdirectory path.
APP_DIR: .
jobs:
# ---------------------------------------------------------------- lint ----
lint:
name: ESLint
runs-on: ubuntu-latest
container: node:22-bookworm
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
# match the pnpm major version used locally (v11.x) - older pnpm
# rejects our config-only pnpm-workspace.yaml ("packages field
# missing or empty")
version: 11
- name: Install dependencies
working-directory: ${{ env.APP_DIR }}
run: pnpm install --frozen-lockfile
- name: Run ESLint
working-directory: ${{ env.APP_DIR }}
run: pnpm lint
# ------------------------------------------------------------ typecheck ---
typecheck:
name: Typecheck
runs-on: ubuntu-latest
container: node:22-bookworm
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
# match the pnpm major version used locally (v11.x) - older pnpm
# rejects our config-only pnpm-workspace.yaml ("packages field
# missing or empty")
version: 11
- name: Install dependencies
working-directory: ${{ env.APP_DIR }}
run: pnpm install --frozen-lockfile
- name: Typecheck (vue-tsc)
working-directory: ${{ env.APP_DIR }}
run: pnpm typecheck
# -------------------------------------------------------------- secrets ---
secrets:
name: Secret scan (gitleaks)
runs-on: ubuntu-latest
# plain node image: the gitleaks container image has no node, which
# breaks node-based actions like actions/checkout
container: node:22-bookworm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # gitleaks scans the full history
- name: Install gitleaks
run: |
echo "Runner arch: $(uname -m)"
case "$(uname -m)" in
x86_64) GITLEAKS_ARCH=x64 ;;
aarch64) GITLEAKS_ARCH=arm64 ;;
*) echo "unsupported arch: $(uname -m)" && exit 1 ;;
esac
curl -fsSL -o /tmp/gitleaks.tar.gz \
"https://github.com/gitleaks/gitleaks/releases/download/v8.28.0/gitleaks_8.28.0_linux_${GITLEAKS_ARCH}.tar.gz"
tar -xzf /tmp/gitleaks.tar.gz -C /usr/local/bin gitleaks
gitleaks version
- name: Scan for leaked secrets
run: gitleaks detect --source . --redact --verbose
# Already-committed secrets that you've accepted? Add a .gitleaksignore
# file listing their fingerprints instead of disabling the check.
# ----------------------------------------------------------- dependency ---
audit:
name: Dependency audit
runs-on: ubuntu-latest
container: node:22-bookworm
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
# match the pnpm major version used locally (v11.x) - older pnpm
# rejects our config-only pnpm-workspace.yaml ("packages field
# missing or empty")
version: 11
- name: Audit dependencies for known vulnerabilities
working-directory: ${{ env.APP_DIR }}
run: pnpm audit --prod --audit-level moderate
continue-on-error: true # advisory: does not block the PR by default
# ------------------------------------------------------- dockerfile lint --
dockerfile-lint:
name: Dockerfile lint (droast)
runs-on: ubuntu-latest
container:
image: immanuwell/droast:1.7.0
# skips until the repo contains a Dockerfile
if: ${{ hashFiles('**/Dockerfile', '**/Dockerfile.*', '**/Containerfile') != '' }}
steps:
- uses: actions/checkout@v4
- name: Lint Dockerfile(s)
run: |
# --no-roast = technical output for CI; --min-severity warning so
# info-level findings don't block the PR
droast --no-roast --min-severity warning .
# ------------------------------------------------------- snyk security ----
# DISABLED: Snyk free plan only includes ~100 test credits/month, which the
# pipeline would burn through quickly (2 tests per PR push).
# To re-enable, delete the "if: false" line below. Consider also running
# this job only on PRs marked "ready for review" or on a weekly schedule
# instead of on every push.
snyk:
name: Security scan (Snyk)
runs-on: ubuntu-latest
if: false
# snyk/snyk:node is amd64-only ("no matching manifest for linux/arm64"),
# so install the CLI via npm in the multi-arch node image instead
container: node:22-bookworm
steps:
- uses: actions/checkout@v4
- name: Install Snyk CLI
run: npm install -g snyk@1 && snyk --version
- name: Snyk dependency scan
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
working-directory: ${{ env.APP_DIR }}
run: |
# --all-projects: required because pnpm-workspace.yaml exists -
# without it Snyk errors with SNYK-CLI-0000
# --strict-out-of-sync: fails if the lockfile doesn't match package.json
snyk test \
--all-projects \
--severity-threshold=high \
--strict-out-of-sync=true
- name: Snyk Code scan (SAST)
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
working-directory: ${{ env.APP_DIR }}
run: |
# static analysis of our own source code (XSS, injection, ...)
# Dockerfile/base image checks are covered by the droast job
snyk code test \
--severity-threshold=high
# -------------------------------------------------------- ai code review --
review:
name: AI code review (opencode)
runs-on: ubuntu-latest
container: node:22-bookworm
# Draft PRs don't get a (paid) review yet
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install opencode CLI
run: curl -fsSL https://opencode.ai/install | bash
env:
# pin the version for reproducible CI, e.g. v1.0.0
OPENCODE_VERSION: latest
- name: Get PR diff
run: |
# lockfile changes bloat the diff (175KB here) and are pointless to
# review - pnpm audit already covers dependencies. Excluding the
# lockfile also keeps the diff small enough to hand to the model.
# The diff goes to a file IN the workspace so the agent can read it
# with its file tools (passing 190KB as a CLI argument fails with
# "Argument list too long", MAX_ARG_STRLEN is 128KiB).
git diff --merge-base "origin/${{ github.base_ref }}" \
-- . ':(exclude)pnpm-lock.yaml' > .pr-review-diff.patch
wc -c .pr-review-diff.patch
- name: Run opencode review
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
run: |
# deepseek-v4-pro#max: flagship reasoning model at maximum thinking
# budget. Requires funds on the opencode account.
# Cheaper fallbacks: opencode/deepseek-v4.1-flash, or remove "#max".
# Output is redirected (not piped through tee): if opencode fails,
# the job must fail here so the error log is never posted as a
# "review" comment.
opencode run \
--model opencode/deepseek-v4-pro#max \
"You are a principal engineer performing a rigorous code review on a
pull request. You have tool access: read repo files for context when
the diff alone is ambiguous, but review ONLY code changed in this PR.
The full PR diff is in the file .pr-review-diff.patch in the repo
root. Read it first with your file tools.
## Project context
- Stack: Nuxt 4 (Vue 3, TypeScript) SSR web app in the repo root.
Backend/API services are being added in Golang.
- Deployment target: a personal production CV website.
- Already covered by other CI jobs, do NOT repeat their findings:
ESLint (style), vue-tsc (types), gitleaks (secrets in git history),
pnpm audit (dependency CVEs), droast (Dockerfile lint).
- Your job is everything those tools CANNOT see: logic, security,
architecture, correctness.
## Nuxt / Vue / TypeScript focus
- SSR pitfalls: window/document/localStorage access without
<ClientOnly> or process.client guards; hydration mismatch risks
(Date.now(), Math.random(), locale formatting in render path).
- useAsyncData/useFetch: missing or colliding keys, duplicate
requests between server and client, wrong caching/refresh setup.
- Reactivity bugs: destructuring reactive objects losing reactivity,
missing await on async setup, watch on getters vs refs.
- Security: v-html with unsanitized data, user input flowing into
meta/URLs, open redirects, missing validation in /server/api and
Nitro route handlers, auth checks on both page and API level.
- Config hygiene: server-only runtime config (no NUXT_PUBLIC_
prefix) leaking secrets into the client bundle.
## Golang focus (when Go code is in the diff)
- Errors: unchecked errors, errors discarded, wrapping with %w,
sentinel vs typed errors, panic in library code.
- Concurrency: goroutine leaks (missing context cancellation),
data races (shared state without mutex/channel), WaitGroup
misuse, defer in loops.
- Resources: unclosed response bodies/files/rows, missing
timeouts on http.Client, unbounded buffering.
- Correctness: slice aliasing surprises, copy vs reference
semantics, nil map writes, integer truncation.
## Cross-cutting
- API contract mismatches between Nuxt frontend and Go backends
(field names, nullability, status codes, date formats).
- Missing authorization checks on new endpoints or pages.
- Secrets/credentials ending up in logs or client-visible output.
- Performance on the critical render path (heavy components,
unoptimized images, blocking Nitro middleware).
## Output format (strict)
Review the diff in .pr-review-diff.patch. For every finding:
[BLOCKER] file:line - what and why + concrete fix suggestion
[WARN] file:line - what and why + concrete fix suggestion
[NIT] file:line - optional improvement
BLOCKER = must fix before merge (security, data loss, broken
behavior). WARN = should fix soon. NIT = optional.
If a finding cannot be localized to a file, prefix [BLOCKER-GENERAL].
No compliments, no summaries of what the diff does, no style nits.
Keep it under 400 words unless there are more than 10 findings.
If the diff contains no reviewable code (docs/config only), say so
in one line.
End your response with a final verdict line, exactly one of:
VERDICT: APPROVE (no BLOCKER findings)
VERDICT: REQUEST_CHANGES (at least one BLOCKER)" \
> /tmp/review.md 2>&1
EXIT_CODE=$?
cat /tmp/review.md
if [ $EXIT_CODE -ne 0 ]; then
echo "::error::opencode review failed (exit ${EXIT_CODE}) - NOT posting this output as a review comment"
exit $EXIT_CODE
fi
- name: Post review as PR comment
continue-on-error: true # token missing/expired must not fail the build
env:
GITEA_TOKEN: ${{ secrets.PR_GITEA_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
# Gitea sets GITHUB_API_URL, e.g. https://gitea.example.com/api/v1
run: |
# jq is not in the node image - use node for JSON encoding
BODY=$(node -e 'process.stdout.write(JSON.stringify(require("fs").readFileSync("/tmp/review.md","utf8")))')
HTTP_CODE=$(curl -s -o /tmp/comment-response.json -w "%{http_code}" \
-X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"body\": ${BODY}}" \
"${GITHUB_API_URL}/repos/${REPO}/issues/${PR_NUMBER}/comments")
echo "POST status: ${HTTP_CODE}"
cat /tmp/comment-response.json
case "$HTTP_CODE" in
200|201) echo "Review comment posted." ;;
*) echo "::error::Failed to post review comment (HTTP ${HTTP_CODE}) - check PR_GITEA_TOKEN scope and expiry" ;;
esac
+19
View File
@@ -0,0 +1,19 @@
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: joaquinjsb/gitea-release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN_CV_SITE_NUXT }}
release-type: simple
+34
View File
@@ -0,0 +1,34 @@
import { withNuxt } from './.nuxt/eslint.config.mjs'
export default withNuxt({
// Files ESLint should never look at (generated code & build output)
ignores: [
'.nuxt/**',
'.output/**',
'node_modules/**',
'dist/**',
'.data/**',
],
rules: {
// ---------- general ----------
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
eqeqeq: ['error', 'always'],
'prefer-const': 'error',
'no-var': 'error',
'object-shorthand': ['warn', 'always'],
// ---------- vue ----------
// Keep components consistent and catch template bugs early
'vue/multi-word-component-names': 'off', // pages/index.vue etc. are fine
'vue/component-name-in-template-casing': ['warn', 'PascalCase'],
'vue/no-unused-refs': 'error',
'vue/prefer-true-attribute-shorthand': 'warn',
'vue/block-order': ['error', { order: ['script', 'template', 'style'] }],
'vue/no-v-html': 'warn', // XSS risk unless content is sanitized
// ---------- typescript-ish (via vue-tsc + nuxt defaults) ----------
'no-undef': 'off', // TS handles this; avoids false positives on Nuxt auto-imports
},
})
+2 -1
View File
@@ -1,5 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true }
devtools: { enabled: true },
modules: ['@nuxt/eslint']
})
+10 -1
View File
@@ -7,11 +7,20 @@
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
"postinstall": "nuxt prepare",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "nuxt typecheck"
},
"dependencies": {
"nuxt": "^4.6.2",
"vue": "^3.5.43",
"vue-router": "^5.4.0"
},
"devDependencies": {
"@nuxt/eslint": "^1.9.0",
"eslint": "^9.30.0",
"typescript": "^5.9.0",
"vue-tsc": "^3.0.0"
}
}
+2238 -125
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -1,5 +1,6 @@
allowBuilds:
esbuild: true
unrs-resolver: true
minimumReleaseAgeExclude:
- '@rollup/rollup-darwin-x64@4.64.8'
- '@rollup/rollup-freebsd-arm64@4.64.8'