Follow-up to #330 (#244). No issue: two one-line fixes found in its review, bundled into one pull request at the maintainer's request, one commit each.
.pre-commit-config.yaml: the refuse-claude-md hook matches (?i)(^|/)(\.claude/)?claude(\.local)?\.md$. The old pattern was case-sensitive, so claude.md or CLAUDE.MD passed it, while a case-insensitive file system serves such a file as CLAUDE.md.
.gitea/workflows/image.yml: ci image 0.2.37 → 0.2.38, because .pre-commit-config.yaml is an image input. The digest-pin pull request follows after the image builds.
galaxy.yml: .apm-local in build_ignore. It 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 and check_tarball.py refused it (test_real_build_passes failed in a local clone; CI checkouts never have it).
No changelog fragment: no consumer-visible change.
Verified
pre-commit run refuse-claude-md --files …: fails on claude.md, CLAUDE.MD, .claude/Claude.md, roles/x/claude.local.md, CLAUDE.md; skips docs/CLAUDE-notes.md and docs/claude-notes.md.
python3 -m unittest discover -s tests/scripts in a local clone that has .apm-local/: 244 tests OK, including test_real_build_passes.
pre-commit run --all-files passes; check_image_versions.py bump origin/main and pins print ok against the current main; pre-push ansible-test sanity passed.
Not verified
CI on this pull request, the 0.2.38 ci image build after merge and the follow-up digest-pin pull request.
Whether Claude Code reads a lowercase claude.md on a case-insensitive file system was not tested in a session; the hook refuses it either way.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Follow-up to #330 (#244). No issue: two one-line fixes found in its review, bundled into one pull request at the maintainer's request, one commit each.
- **`.pre-commit-config.yaml`**: the `refuse-claude-md` hook matches `(?i)(^|/)(\.claude/)?claude(\.local)?\.md$`. The old pattern was case-sensitive, so `claude.md` or `CLAUDE.MD` passed it, while a case-insensitive file system serves such a file as `CLAUDE.md`.
- **`.gitea/workflows/image.yml`**: `ci` image 0.2.37 → 0.2.38, because `.pre-commit-config.yaml` is an image input. The digest-pin pull request follows after the image builds.
- **`galaxy.yml`**: `.apm-local` in `build_ignore`. It 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 and `check_tarball.py` refused it (`test_real_build_passes` failed in a local clone; CI checkouts never have it).
- No changelog fragment: no consumer-visible change.
## Verified
- `pre-commit run refuse-claude-md --files …`: fails on `claude.md`, `CLAUDE.MD`, `.claude/Claude.md`, `roles/x/claude.local.md`, `CLAUDE.md`; skips `docs/CLAUDE-notes.md` and `docs/claude-notes.md`.
- `python3 -m unittest discover -s tests/scripts` in a local clone that has `.apm-local/`: 244 tests OK, including `test_real_build_passes`.
- `pre-commit run --all-files` passes; `check_image_versions.py bump origin/main` and `pins` print ok against the current `main`; pre-push `ansible-test sanity` passed.
## Not verified
- CI on this pull request, the 0.2.38 `ci` image build after merge and the follow-up digest-pin pull request.
- Whether Claude Code reads a lowercase `claude.md` on a case-insensitive file system was not tested in a session; the hook refuses it either way.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the Open to contributors milestone 2026-11-23 20:05:02 +00:00
Defame1297
was assigned by Claude2026-11-23 20:05:02 +00:00
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
.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
CODEOWNERS rules
requested review from Defame1297 2026-11-23 20:05:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Follow-up to #330 (#244). No issue: two one-line fixes found in its review, bundled into one pull request at the maintainer's request, one commit each.
.pre-commit-config.yaml: therefuse-claude-mdhook matches(?i)(^|/)(\.claude/)?claude(\.local)?\.md$. The old pattern was case-sensitive, soclaude.mdorCLAUDE.MDpassed it, while a case-insensitive file system serves such a file asCLAUDE.md..gitea/workflows/image.yml:ciimage 0.2.37 → 0.2.38, because.pre-commit-config.yamlis an image input. The digest-pin pull request follows after the image builds.galaxy.yml:.apm-localinbuild_ignore. It is apm's local state directory and ignores itself through its own.gitignore, so a localansible-galaxy collection buildcopied it into the archive andcheck_tarball.pyrefused it (test_real_build_passesfailed in a local clone; CI checkouts never have it).Verified
pre-commit run refuse-claude-md --files …: fails onclaude.md,CLAUDE.MD,.claude/Claude.md,roles/x/claude.local.md,CLAUDE.md; skipsdocs/CLAUDE-notes.mdanddocs/claude-notes.md.python3 -m unittest discover -s tests/scriptsin a local clone that has.apm-local/: 244 tests OK, includingtest_real_build_passes.pre-commit run --all-filespasses;check_image_versions.py bump origin/mainandpinsprint ok against the currentmain; pre-pushansible-test sanitypassed.Not verified
ciimage build after merge and the follow-up digest-pin pull request.claude.mdon a case-insensitive file system was not tested in a session; the hook refuses it either way.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code