docs: add looking for maintainers section (#382)

Co-authored-by: winston <[email protected]>
This commit is contained in:
Hamothyandwinston authored and GitHub committed 2023-12-17 01:40:43 +00:00
1 parent af364af8cc
commit 2c967fe807
11 files changed
+137 -380

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ await syncIssueLabels(userstylesData.userstyles);
await updateFile(
join(REPO_ROOT, ".github/CODEOWNERS"),
Object.entries(userstylesData.userstyles)
.filter(([_, { readme }]) => readme["current-maintainers"].length > 0)
.map(([slug, { readme }]) => {
const currentMaintainers = readme["current-maintainers"]
.map((maintainer) => `@${maintainer.url.split("/").pop()}`)
+5
View File
@@ -49,10 +49,15 @@
{{/each}}
{{/if}}
{{#if collaborators.currentMaintainers.length}}
## 💝 Current {{pluralize collaborators.currentMaintainers 'Maintainer'}}
{{#each collaborators.currentMaintainers}}
- [{{name}}]({{url}})
{{/each}}
{{else}}
## 🚧 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.
{{/if}}
{{#if collaborators.pastMaintainers}}
## 💖 Past {{pluralize collaborators.pastMaintainers 'Maintainer'}}
+8 -17
View File
@@ -79,23 +79,6 @@ export type Question = string;
* An answer to the question about the userstyle.
*/
export type Answer = string;
/**
* List of all active maintainers for this userstyle.
*
* @minItems 1
*/
export type CurrentMaintainers = [
{
name?: DisplayName;
url: GitHubProfile;
[k: string]: unknown;
},
...{
name?: DisplayName;
url: GitHubProfile;
[k: string]: unknown;
}[]
];
/**
* The display name of the collaborator to show in the userstyle README.
*/
@@ -104,6 +87,14 @@ export type DisplayName = string;
* The GitHub profile link of the collaborator to show in the userstyle README.
*/
export type GitHubProfile = string;
/**
* List of all active maintainers for this userstyle.
*/
export type CurrentMaintainers = {
name?: DisplayName;
url: GitHubProfile;
[k: string]: unknown;
}[];
/**
* List of all maintainers that have maintained on this userstyle in the past.
*
+5 -1
View File
@@ -135,11 +135,14 @@
"$id": "#userstyles/userstyle/readme/current-maintainers",
"title": "Current Maintainers",
"description": "List of all active maintainers for this userstyle.",
"type": "array",
"$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"
}
@@ -153,6 +156,8 @@
"$id": "#all-collaborators",
"title": "All Collaborators",
"description": "Represents all maintainers and contributors to all userstyles.",
"type": "array",
"minItems": 1,
"$ref": "#/$defs/collaborators"
}
},
@@ -160,7 +165,6 @@
"collaborators": {
"$id": "#collaborators",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
+8 -5
View File
@@ -151,7 +151,8 @@ userstyles:
category: productivity
readme:
app-link: "https://chat.openai.com"
current-maintainers: [*rubyowo]
current-maintainers: []
past-maintainers: [*rubyowo]
chatreplay:
name: ChatReplay
category: leisure
@@ -217,8 +218,8 @@ userstyles:
readme:
usage: "Switch to a default GitHub light/dark theme via **Settings** > **Appearance** for the best experience!"
app-link: "https://github.com"
current-maintainers: [*pocco81, *glowingumbreon]
past-maintainers: [*andreasgrafen]
current-maintainers: []
past-maintainers: [*andreasgrafen, *pocco81, *glowingumbreon]
gmail:
name: Gmail
category: productivity
@@ -368,7 +369,8 @@ userstyles:
category: development
readme:
app-link: "https://paste.rs"
current-maintainers: [*stonks3141]
current-maintainers: []
past-maintainers: [*stonks3141]
pinterest:
name: Pinterest
category: social
@@ -405,7 +407,8 @@ userstyles:
icon: reddit
readme:
app-link: "https://reddit.com"
current-maintainers: [*jayylmao]
current-maintainers: []
past-maintainers: [*jayylmao]
searxng:
name: SearXNG
category: search_engine