-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ts
More file actions
28 lines (27 loc) · 769 Bytes
/
test.ts
File metadata and controls
28 lines (27 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { defineOwner, defineRule, type Owner } from './src/config/schema.js';
import { updateUserConfig } from './src/config/update-config.js';
await updateUserConfig((userConfig) => {
return {
outDir: '.gitlab',
rules: [
defineRule({
patterns: ['docs/*'],
owners: [
defineOwner({
name: '@gitlab-org/gitlab',
}),
(userConfig._meta as { defaultOwner: Owner }).defaultOwner,
],
}),
defineRule({
patterns: ['modules/*'],
owners: [
defineOwner({
name: '@gitlab-org/gitlab-2',
}),
(userConfig._meta as { defaultOwner: Owner }).defaultOwner,
],
}),
],
};
}, './examples/simple/codeowners.config.mjs');