Skip to content

feat(diff-filter): ignore Anchor's .anchor/ generated directory (#67)#132

Open
ouwibo wants to merge 1 commit into
Ghbounty:mainfrom
ouwibo:ouwibo/diff-filter-anchor
Open

feat(diff-filter): ignore Anchor's .anchor/ generated directory (#67)#132
ouwibo wants to merge 1 commit into
Ghbounty:mainfrom
ouwibo:ouwibo/diff-filter-anchor

Conversation

@ouwibo

@ouwibo ouwibo commented Jun 22, 2026

Copy link
Copy Markdown

Summary

Closes #67. Adds .anchor/ to GENERATED_DIR_PREFIXES in packages/diff-filter so the Anchor framework's ledger artifacts and IDL cache files are filtered out of the diff sent to the reviewer.

Changes

  • packages/diff-filter/src/patterns.ts — add ".anchor/" to GENERATED_DIR_PREFIXES (placed in the dot-prefixed cluster, conceptually adjacent to target/ which is Cargo's analog).
  • packages/diff-filter/tests/classify.test.ts — extend the generated dirs describe block with three .anchor/ cases: top-level, nested (the exact example from the issue), and an IDL JSON file.

Acceptance criteria

  • classifyPath returns { ignore: true, reason: "generated_dir" } for .anchor/ paths (top-level and nested).
  • At least one new test case covering an .anchor/ path (added three).
  • All existing tests still pass — verified pnpm typecheck (7/7 packages) and pnpm test workspace-wide (apps/mcp 54, relayer 243, frontend 217, diff-filter 71 — all green).

Test plan

  • pnpm --filter @ghbounty/diff-filter test — 71 passed
  • pnpm typecheck — all packages pass
  • pnpm test — full workspace green

…unty#67)

Adds .anchor/ to GENERATED_DIR_PREFIXES so anchor build / anchor test
ledger artifacts and IDL cache files are filtered out of the diff sent
to the reviewer, improving signal-to-noise on Solana PR reviews.

Tests cover top-level, nested, and IDL-cache paths.
@ouwibo ouwibo requested a review from tomazzi14 as a code owner June 22, 2026 19:04
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the weareghbounty-6269's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff-filter: ignore Anchor's .anchor/ generated directory

1 participant