Skip to content

Commit

Permalink
Generate owner
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Feb 22, 2024
1 parent f73b486 commit 9689214
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions data.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
};
teams = {
"infra team" = {
name = "Infra team";
description = ''
This is the infra team
Expand Down
7 changes: 6 additions & 1 deletion schema.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ in

options.teams = lib.mkOption {
type = types.attrsOf (types.submodule {
options.name = lib.mkOption {
type = types.str;
};
options.description = lib.mkOption {
type = types.str;
};
Expand Down Expand Up @@ -66,6 +69,8 @@ in
lib.concatStrings (lib.mapAttrsToList (name: resource: ''
### ${name}
Owner: [${resource.owner}](#${toMarkdownAnchor config.teams.${resource.owner}.name})
Parts:
${lib.concatMapStrings (part: ''
- ${lib.concatStringsSep "\n " (lib.mapAttrsToList (name: value:
Expand All @@ -80,7 +85,7 @@ in
${
lib.concatStrings (lib.mapAttrsToList (name: team: ''
### ${name}
### ${team.name}
${team.description}
Homepage: ${team.homepage}
Expand Down

0 comments on commit 9689214

Please sign in to comment.