Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions script/tool/lib/src/common/package_state_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ Future<bool> _isDevChange(
return _isTestChange(pathComponents) ||
// Agent directories (.agents/) are for developer-only utility tools (skills, scripts).
pathComponents.first == '.agents' ||
// Eval directories (evals/) are for evaluation utility code.
pathComponents.first == 'evals' ||
// The top-level "tool" directory is for non-client-facing utility
// code, such as test scripts.
pathComponents.first == 'tool' ||
Expand Down
16 changes: 16 additions & 0 deletions script/tool/test/common/package_state_utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@ void main() {
expect(state.needsChangelogChange, false);
});

test('does not require version or changelog change for evals changes', () async {
final RepositoryPackage package = createFakePlugin('a_plugin', packagesDir);

const changedFiles = <String>['packages/a_plugin/evals/foo.dart'];

final PackageChangeState state = await checkPackageChangeState(
package,
changedPaths: changedFiles,
relativePackagePath: 'packages/a_plugin/',
);

expect(state.hasChanges, true);
expect(state.needsVersionChange, false);
expect(state.needsChangelogChange, false);
});

test('only considers a root "tool" folder to be special', () async {
final RepositoryPackage package = createFakePlugin('a_plugin', packagesDir);

Expand Down
Loading