The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(ci): keep review-gated files out of the js-autofix patch
ethernet12299ca54c11
diff --git a/.github/workflows/js-autofix.yml b/.github/workflows/js-autofix.ymlindex d0fa3513e86..bd4ee6d1c92 100644--- a/.github/workflows/js-autofix.yml+++ b/.github/workflows/js-autofix.yml@@ -89,20 +89,33 @@ jobs:- name: Produce patchid: produce-patchrun: |- if git diff --quiet; then+ # Exclude every file that the dep-version-gate ruleset guards+ # (package manifests, eslint configs, workflow files). A patch+ # that contains one of these files makes the bot PR wait for a+ # team review, and auto-merge then stops. The check step in+ # typecheck.yml still reports their lint errors.+ # The (glob) magic makes "**/" also match files at the repo+ # root, which plain pathspec wildcards do not.+ EXCLUDES=(+ ':(exclude,glob)**/package.json'+ ':(exclude,glob)**/package-lock.json'+ ':(exclude,glob)**/eslint.config.*'+ ':(exclude,glob).github/**'+ )+ if git diff --quiet -- . "${EXCLUDES[@]}"; thenecho "No fixes needed."echo "has-fixes=false" >> "$GITHUB_OUTPUT"# Empty patch signals "nothing to do" to apply-patch.: > js-fix.patchelse- git diff > js-fix.patch+ git diff -- . "${EXCLUDES[@]}" > js-fix.patchecho "has-fixes=true" >> "$GITHUB_OUTPUT"echo "Patch size: $(wc -c < js-fix.patch) bytes"# Reject patches that touch anything outside JS/TS/JSON sources.# `npm run fix` should only ever modify those; anything else means# eslint/prettier or a plugin went rogue and we refuse to ship it.- BAD=$(git diff --name-only | grep -vE '\.(js|cjs|mjs|ts|tsx|json)$' || true)+ BAD=$(git diff --name-only -- . "${EXCLUDES[@]}" | grep -vE '\.(js|cjs|mjs|ts|tsx|json)$' || true)if [ -n "$BAD" ]; thenecho "::error::Refusing to upload patch — touches disallowed files:"echo "$BAD"