From 4f29901a80fddb253ee4d958e8753bd02afae6a5 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 23 Nov 2026 19:58:50 +0000 Subject: [PATCH 1/2] ci(pre-commit): refuse CLAUDE.md in any letter case The refuse-claude-md pattern was case-sensitive, so claude.md or CLAUDE.MD passed it, yet a case-insensitive file system serves either as CLAUDE.md. Match with the inline (?i) flag. The hook config is a ci image input, so the ci image moves from 0.2.37 to 0.2.38. Assisted-by: Claude Code --- .gitea/workflows/image.yml | 2 +- .pre-commit-config.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/image.yml b/.gitea/workflows/image.yml index 33a4109..5c1c731 100644 --- a/.gitea/workflows/image.yml +++ b/.gitea/workflows/image.yml @@ -87,7 +87,7 @@ jobs: dockerfile: Dockerfile job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db - name: ci - version: 0.2.37 + version: 0.2.38 subpath: "" dockerfile: images/ci/Dockerfile job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56a509c..52e10d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -130,10 +130,11 @@ repos: # the failure is silent: the agent gets no guidance and no error. - id: refuse-claude-md name: Refuse CLAUDE.md files - description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth + description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth, in any case entry: a CLAUDE.md file makes Claude Code ignore every AGENTS.md; delete it language: fail - files: (^|/)(\.claude/)?CLAUDE(\.local)?\.md$ + # Any letter case: a case-insensitive file system serves claude.md as CLAUDE.md. + files: (?i)(^|/)(\.claude/)?claude(\.local)?\.md$ stages: ['pre-commit'] - repo: meta -- 2.43.0 From cca31f44a1d284773c59bffeb070f852753b14fa Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 23 Nov 2026 19:58:57 +0000 Subject: [PATCH 2/2] build(galaxy): keep .apm-local out of the Collection build .apm-local/ is apm's local state directory and ignores itself through its own .gitignore, so a local ansible-galaxy collection build copied it into the archive, where check_tarball.py rejects it as a disallowed top-level entry. Assisted-by: Claude Code --- galaxy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/galaxy.yml b/galaxy.yml index 7be7c3c..13d4e95 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -31,6 +31,7 @@ build_ignore: - apm.yml - apm.lock.yaml - apm_modules + - .apm-local - .claude - .gitea - .gitignore -- 2.43.0