Summary
Daily npm run lint:setup-js surfaced a concentrated regex, duplication, and API-safety cleanup slice across actions/setup/js. This group clusters repeated interpolation hygiene, HTTP callback safety, redundant core.error() usage, and a few contained mechanical fixes.
Affected files
actions/setup/js/add_mask_redaction.cjs
actions/setup/js/add_reaction.cjs
actions/setup/js/add_reaction_and_edit_comment.cjs
actions/setup/js/daily_aic_workflow_helpers.cjs
actions/setup/js/frontmatter_hash_pure.cjs
actions/setup/js/fuzz_template_substitution_harness.cjs
actions/setup/js/generate_safe_outputs_tools.cjs
actions/setup/js/git_auth_helpers.cjs
actions/setup/js/interpolate_prompt.cjs
actions/setup/js/mcp_cli_bridge.cjs
actions/setup/js/merge_pull_request.cjs
actions/setup/js/model_aliases.cjs
actions/setup/js/mount_mcp_as_cli.cjs
actions/setup/js/patch_path_helpers.cjs
actions/setup/js/resolve_model_alias.cjs
actions/setup/js/safe_output_type_validator.cjs
actions/setup/js/safe_outputs_tools_loader.cjs
actions/setup/js/sanitize_content_core.cjs
actions/setup/js/start_mcp_gateway.cjs
Representative diagnostics
add_mask_redaction.cjs:89 — gh-aw-custom/require-escaped-regexp-interpolation
add_reaction.cjs:184 — gh-aw-custom/no-core-error-then-setfailed
mcp_cli_bridge.cjs:240 — gh-aw-custom/require-http-response-error-listener
git_auth_helpers.cjs:207 — gh-aw-custom/require-error-cause-in-rethrow
generate_safe_outputs_tools.cjs:320 — gh-aw-custom/prefer-structured-clone
patch_path_helpers.cjs:28 — gh-aw-custom/no-math-minmax-array-spread
Expected outcome
Make the repeated mechanical fixes needed for regex interpolation safety, response-stream error listeners, error rethrow causes, and small API cleanup patterns so this lint slice is resolved without broad refactoring.
Remediation checklist
Copilot instructions
- Group edits by repeated lint rule to keep changes reviewable.
- Favor import-free/local helpers unless a shared helper already exists nearby.
- Avoid mixing in unrelated parsing or error-handling fixes from other groups.
- Keep the final validation command exactly
npm run lint:setup-js.
Generated by 🧹 ESLint Monster · gpt54 · 17 AIC · ⌖ 6.58 AIC · ⊞ 5.5K · ◷
Summary
Daily
npm run lint:setup-jssurfaced a concentrated regex, duplication, and API-safety cleanup slice acrossactions/setup/js. This group clusters repeated interpolation hygiene, HTTP callback safety, redundantcore.error()usage, and a few contained mechanical fixes.Affected files
actions/setup/js/add_mask_redaction.cjsactions/setup/js/add_reaction.cjsactions/setup/js/add_reaction_and_edit_comment.cjsactions/setup/js/daily_aic_workflow_helpers.cjsactions/setup/js/frontmatter_hash_pure.cjsactions/setup/js/fuzz_template_substitution_harness.cjsactions/setup/js/generate_safe_outputs_tools.cjsactions/setup/js/git_auth_helpers.cjsactions/setup/js/interpolate_prompt.cjsactions/setup/js/mcp_cli_bridge.cjsactions/setup/js/merge_pull_request.cjsactions/setup/js/model_aliases.cjsactions/setup/js/mount_mcp_as_cli.cjsactions/setup/js/patch_path_helpers.cjsactions/setup/js/resolve_model_alias.cjsactions/setup/js/safe_output_type_validator.cjsactions/setup/js/safe_outputs_tools_loader.cjsactions/setup/js/sanitize_content_core.cjsactions/setup/js/start_mcp_gateway.cjsRepresentative diagnostics
add_mask_redaction.cjs:89—gh-aw-custom/require-escaped-regexp-interpolationadd_reaction.cjs:184—gh-aw-custom/no-core-error-then-setfailedmcp_cli_bridge.cjs:240—gh-aw-custom/require-http-response-error-listenergit_auth_helpers.cjs:207—gh-aw-custom/require-error-cause-in-rethrowgenerate_safe_outputs_tools.cjs:320—gh-aw-custom/prefer-structured-clonepatch_path_helpers.cjs:28—gh-aw-custom/no-math-minmax-array-spreadExpected outcome
Make the repeated mechanical fixes needed for regex interpolation safety, response-stream error listeners, error rethrow causes, and small API cleanup patterns so this lint slice is resolved without broad refactoring.
Remediation checklist
actions/setup/jsregex/API-safety cleanup only.new RegExp(...)construction to satisfy interpolation-safety rules.core.error()calls immediately before matchingcore.setFailed().errorlisteners and preserve current request behavior.structuredClone, reduce-based min/max,{ cause: err }, error-code prefix where required).npm run lint:setup-jsas the final validation.Copilot instructions
npm run lint:setup-js.