chore(CODEOWNERS): make staff own .github/ (#1000)
This commit is contained in:
1 parent
ce199b0180
commit
66b98eb2b9
2 files changed
+3
-4
No files matched your search
+1
-1
@@ -83,6 +83,6 @@
|
|||||||
/styles/youtube @isabelroses @uncenter
|
/styles/youtube @isabelroses @uncenter
|
||||||
/styles/nextjs @Dandraghas
|
/styles/nextjs @Dandraghas
|
||||||
|
|
||||||
.github/CODEOWNERS @catppuccin/userstyles-staff
|
/.github/ @catppuccin/userstyles-staff
|
||||||
/scripts/ @catppuccin/userstyles-staff
|
/scripts/ @catppuccin/userstyles-staff
|
||||||
/template/ @catppuccin/userstyles-staff
|
/template/ @catppuccin/userstyles-staff
|
||||||
@@ -52,7 +52,6 @@ await syncIssueLabels(userstylesData.userstyles);
|
|||||||
/**
|
/**
|
||||||
* Keep `.github/CODEOWNERS` in sync with the userstyle metadata.
|
* Keep `.github/CODEOWNERS` in sync with the userstyle metadata.
|
||||||
*/
|
*/
|
||||||
const CODEOWNERS_FILE = ".github/CODEOWNERS";
|
|
||||||
const maintainersCodeOwners = () => {
|
const maintainersCodeOwners = () => {
|
||||||
return Object.entries(userstylesData.userstyles)
|
return Object.entries(userstylesData.userstyles)
|
||||||
.filter(([_, { "current-maintainers": currentMaintainers }]) =>
|
.filter(([_, { "current-maintainers": currentMaintainers }]) =>
|
||||||
@@ -67,10 +66,10 @@ const maintainersCodeOwners = () => {
|
|||||||
.join("\n");
|
.join("\n");
|
||||||
};
|
};
|
||||||
const userstylesStaffCodeOwners = () => {
|
const userstylesStaffCodeOwners = () => {
|
||||||
const paths = [CODEOWNERS_FILE, "/scripts/", "/template/"];
|
const paths = ["/.github/", "/scripts/", "/template/"];
|
||||||
return paths.map((path) => `${path} @catppuccin/userstyles-staff`).join("\n");
|
return paths.map((path) => `${path} @catppuccin/userstyles-staff`).join("\n");
|
||||||
};
|
};
|
||||||
await updateFile(
|
await updateFile(
|
||||||
join(REPO_ROOT, CODEOWNERS_FILE),
|
join(REPO_ROOT, ".github/CODEOWNERS"),
|
||||||
`${maintainersCodeOwners()}\n\n${userstylesStaffCodeOwners()}`,
|
`${maintainersCodeOwners()}\n\n${userstylesStaffCodeOwners()}`,
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user