Skip to content

Commit 8b014c4

Browse files
authored
chore: move CODEOWNERS to .github/ (#7681)
.github is the preferred location for CODEOWNERS and keeps the repository root from being cluttered with extra files.
1 parent a0b69fd commit 8b014c4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

File renamed without changes.

scripts/codeowners.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { getOwnership } from '@snyk/github-codeowners/dist/lib/ownership/index.j
66
const dir = resolve(import.meta.dirname, '..')
77
const strategy = FILE_DISCOVERY_STRATEGY.FILE_SYSTEM
88
const filePaths = await getFilePaths(dir, strategy)
9-
const files = await getOwnership('CODEOWNERS', filePaths)
9+
const codeownersPath = resolve(dir, '.github/CODEOWNERS')
10+
const files = await getOwnership(codeownersPath, filePaths)
1011

1112
const unloved = files.filter(f => f.owners.length === 0)
1213
const unlovedSpecs = unloved.filter(f => f.path.endsWith('.spec.js'))

0 commit comments

Comments
 (0)