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: 1 addition & 1 deletion src/lib/diff-classifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LOCK_FILES = new Set([
*/
const CODE_BEARING_EXTS = new Set([
'.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs',
'.py', '.go', '.rs', '.rb', '.java', '.kt', '.swift',
'.py', '.go', '.rs', '.rb', '.java', '.kt', '.swift', '.php'
]);

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/diff-classifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('diff-classifier', () => {
});

it('returns false for a single code-bearing file', () => {
const exts = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs', '.py', '.go', '.rs', '.rb', '.java', '.kt', '.swift'];
const exts = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs', '.py', '.go', '.rs', '.rb', '.java', '.kt', '.swift', '.php'];
for (const ext of exts) {
expect(isNoOpDiff([`src/file${ext}`])).toBe(false);
}
Expand Down
Loading