Skip to content

Ignore agent files as changesets - #2066

Merged
bluwy merged 2 commits into
nextfrom
ignore-md
Jun 8, 2026
Merged

bluwy merged 2 commits into
nextfrom
ignore-md

Conversation

@bluwy

@bluwy bluwy commented Jun 7, 2026

Copy link
Copy Markdown
Member

closes #1906
supersedes and closes #1912

As mentioned in #1906, we hardcode the common list of files to ignore for now. We can likely expand on this non-breakingly later.

@changeset-bot

changeset-bot Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f3d5fbc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@changesets/read Minor
@changesets/cli Patch
@changesets/get-release-plan Patch
@changesets/release-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.13%. Comparing base (11bded4) to head (f3d5fbc).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2066      +/-   ##
==========================================
+ Coverage   81.12%   81.13%   +0.01%     
==========================================
  Files          61       61              
  Lines        2315     2317       +2     
  Branches      634      637       +3     
==========================================
+ Hits         1878     1880       +2     
  Misses        392      392              
  Partials       45       45              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/read/src/index.ts Outdated
!file.startsWith(".") &&
file.endsWith(".md") &&
!/^README\.md$/i.test(file),
!ignoredMdFiles.includes(file),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need to make a similar change here and here (or maybe only in one of those places, I'm surprised I have found 2 similar ones in the bot's code)

Comment thread packages/read/src/index.ts Resolved

// Files in `.changeset` that should not be considered as changesets. We may
// revisit this if it becomes difficult to maintain the common list of files.
const ignoredMdFiles = [/^README\.md$/i, "AGENTS.md", "CLAUDE.md", "GEMINI.md"];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd probably go with this:

Suggested change
const ignoredMdFiles = [/^README\.md$/i, "AGENTS.md", "CLAUDE.md", "GEMINI.md"];
const ignoredMdFiles = [/^README\.md$/i, /^(AGENTS|CLAUDE|GEMINI).md$];

This would allow us to avoid the string/regexp distinction at the consumer side

@bluwy bluwy Jun 7, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I prefer distinct items for each entries than combining, so it's a list of special files that we're maintaining. Otherwise we make each file a regex, but feels a bit off 🤔 The regex/string check isn't too bad for me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this in but happy to discuss this still if you'd like

@bluwy
bluwy added this pull request to the merge queue Jun 8, 2026
Merged via the queue into next with commit c2348fc Jun 8, 2026
12 checks passed
@bluwy
bluwy deleted the ignore-md branch June 8, 2026 01:05
This was referenced Jun 8, 2026
marcalexiei pushed a commit to marcalexiei/changesets-bot that referenced this pull request Aug 11, 2026
* Ignore agent files as changesets

ref: changesets/changesets#2066

* Fix lint and test

* Format
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.

2 participants