[tool] Exempt AGENTS.md from version and changelog checks - #12681
[tool] Exempt AGENTS.md from version and changelog checks#12681reidbaker-agent wants to merge 1 commit into
Conversation
Exempts AGENTS.md from triggering missing CHANGELOG and version bump errors in flutter_plugin_tools validate, adds AGENTS.md as a package support file, and adds it to .pubignore in camera_android_camerax.
There was a problem hiding this comment.
Code Review
This pull request exempts AGENTS.md from requiring version and changelog changes by updating file filters and package state utilities to recognize it as a package support and dev-facing file. It also adds corresponding unit tests and updates .pubignore for the camera_android_camerax package. There are no review comments, and I have no feedback to provide.
|
Convert to draft until tests pass. |
There was a problem hiding this comment.
Code Review
This pull request exempts AGENTS.md files from requiring version and changelog changes. It updates the tooling to recognize AGENTS.md as a package support file and a dev-facing change, and adds corresponding unit tests to verify this behavior. There are no review comments to address.
|
Ironically the labels are needed on this pr because pubignore is not an excluded file. I think that is correct because if the ignore changes caused added files for a release then you probably do want a new version. |
This came up as part of #12668 which needed the labels. This pr excludes AGENTS.md from both pub publishing and from needing changelog/version requirements.
Agent authored description
Exempts
AGENTS.mdfrom requiring CHANGELOG updates and version bumps in package validation, addsAGENTS.mdas a package support file in repo tooling, and addsAGENTS.mdto.pubignoreincamera_android_camerax.Summary
script/tool/lib/src/common/package_state_utils.dart: AddedpathComponents.last == 'AGENTS.md'to_isDevChangeso developer/agent guidelines inAGENTS.mddo not trigger missing CHANGELOG or version bump errors.script/tool/lib/src/common/file_filters.dart: Addedpath.endsWith('/AGENTS.md')toisPackageSupportFile.script/tool/CHANGELOG.md: Added changelog entry under## NEXT..pubignore:packages/camera/camera_android_camerax/.pubignore: AddedAGENTS.mdto prevent publishing agent guidelines to pub.dev.script/tool/test/common/package_state_utils_test.dart,script/tool/test/common/file_filters_test.dart, andscript/tool/test/validate_command_version_test.dart.Pre-Review Checklist