Skip to content

fix(diff-filter): ignore Anchor .anchor/ generated directory#122

Open
zhuoma0325-ops wants to merge 1 commit into
Ghbounty:mainfrom
zhuoma0325-ops:fix/add-anchor-to-generated-dirs
Open

fix(diff-filter): ignore Anchor .anchor/ generated directory#122
zhuoma0325-ops wants to merge 1 commit into
Ghbounty:mainfrom
zhuoma0325-ops:fix/add-anchor-to-generated-dirs

Conversation

@zhuoma0325-ops

Copy link
Copy Markdown

Closes #67

What

Add .anchor/ to GENERATED_DIR_PREFIXES so Anchor framework build artifacts are excluded from diffs.

Why

This repository uses contracts/solana/ with Anchor. Every PR modifying instructions/structs causes .anchor/ ledger artifacts and IDL cache files to appear in the diff, increasing token usage and reducing signal-to-noise quality for automated review.

Changes

  • packages/diff-filter/src/patterns.ts: add .anchor/ to GENERATED_DIR_PREFIXES
  • packages/diff-filter/tests/classify.test.ts: add test case for contracts/solana/.anchor/test-ledger/genesis.bin

Verification

All 69 tests pass (pnpm --filter @ghbounty/diff-filter test)

Add .anchor/ to GENERATED_DIR_PREFIXES so Anchor framework build artifacts are excluded from diffs.

Include a test case for contracts/solana/.anchor/test-ledger/genesis.bin.

Closes Ghbounty#67
@zhuoma0325-ops zhuoma0325-ops requested a review from tomazzi14 as a code owner June 7, 2026 03:22
@vercel

vercel Bot commented Jun 7, 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