diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8ecb65e9da..eceb837ab1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,11 +1,11 @@ # THIS FILE IS AUTOGENERATED. DO NOT EDIT IT BY HAND. - +/styles/advent-of-code @rubyowo /styles/anilist @AnubisNekhet /styles/boringproxy @Gandalf-the-Blue /styles/brave-search @ndsboy /styles/bstats @rockquiet /styles/canvas-lms @TheMemeSniper - +/styles/chatgpt /styles/chatreplay @AnubisNekhet /styles/chess.com @coldenate @isabelroses @skelebro1 /styles/cinny @jn-sena diff --git a/scripts/generate/main.ts b/scripts/generate/main.ts index 5b08a9df7d..328d676382 100755 --- a/scripts/generate/main.ts +++ b/scripts/generate/main.ts @@ -56,7 +56,7 @@ await updateFile( join(REPO_ROOT, ".github/CODEOWNERS"), Object.entries(userstylesData.userstyles) .map(([slug, { readme }]) => { - if (readme["current-maintainers"] === undefined) return ""; + if (!readme["current-maintainers"]) return ""; const currentMaintainers = readme["current-maintainers"] .map((maintainer) => `@${maintainer.url.split("/").pop()}`) .join(" "); diff --git a/scripts/generate/templates/userstyle.md b/scripts/generate/templates/userstyle.md index 0c17291801..c2bfc21242 100644 --- a/scripts/generate/templates/userstyle.md +++ b/scripts/generate/templates/userstyle.md @@ -49,7 +49,7 @@ {{/each}} {{/if}} -{{#if collaborators.currentMaintainers}} +{{#if collaborators.currentMaintainers.length}} ## 💝 Current {{pluralize collaborators.currentMaintainers 'Maintainer'}} {{#each collaborators.currentMaintainers}} - [{{name}}]({{url}}) diff --git a/scripts/userstyles.schema.json b/scripts/userstyles.schema.json index 43317b8abb..1f1e14e38b 100644 --- a/scripts/userstyles.schema.json +++ b/scripts/userstyles.schema.json @@ -79,7 +79,7 @@ "title": "README", "description": "Options to help in the auto-generation of the userstyle README.", "type": "object", - "required": ["app-link"], + "required": ["app-link", "current-maintainers"], "properties": { "app-link": { "$id": "#userstyles/userstyle/readme/app-link", @@ -135,11 +135,15 @@ "$id": "#userstyles/userstyle/readme/current-maintainers", "title": "Current Maintainers", "description": "List of all active maintainers for this userstyle.", + "type": "array", + "minItems": 0, "$ref": "#/$defs/collaborators" }, "past-maintainers": { "$id": "#userstyles/userstyle/readme/past-maintainers", "title": "Past Maintainers", + "type":"array", + "minItems": 1, "description": "List of all maintainers that have maintained on this userstyle in the past.", "$ref": "#/$defs/collaborators" } @@ -160,7 +164,6 @@ "collaborators": { "$id": "#collaborators", "type": "array", - "minItems": 1, "items": { "type": "object", "properties": { diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 6b14bb9b02..f313ba71a3 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -106,7 +106,7 @@ userstyles: category: game readme: app-link: https://adventofcode.com - past-maintainers: [*rubyowo] + current-maintainers: [*rubyowo] anilist: name: ["AniList", "AniChart"] category: leisure @@ -151,6 +151,7 @@ userstyles: category: productivity readme: app-link: "https://chat.openai.com" + current-maintainers: [] past-maintainers: [*rubyowo] chatreplay: name: ChatReplay diff --git a/styles/advent-of-code/README.md b/styles/advent-of-code/README.md index 8d9e6b6d59..804d3bc69b 100644 --- a/styles/advent-of-code/README.md +++ b/styles/advent-of-code/README.md @@ -38,12 +38,10 @@ -## 🚧 Looking for Maintainers 🚧 -- If you are interested in maintaining this userstyle, please raise a **Pull Request** and add yourself into the `current-maintainers` array in the `userstyles.yml` file. - -## 💖 Past Maintainer +## 💝 Current Maintainer - [rubyowo](https://github.com/rubyowo) +