2023-09-13 23:06:57 +02:00
|
|
|
{ pkgs, ... }:
|
2023-09-07 00:14:12 +02:00
|
|
|
|
2023-09-13 23:06:57 +02:00
|
|
|
{
|
2023-09-07 00:14:12 +02:00
|
|
|
# TODO: switch to programs.gh-dash.enable once in stable
|
|
|
|
|
|
|
|
home.packages = [ pkgs.gh-dash ];
|
|
|
|
|
|
|
|
programs.gh.extensions = [ pkgs.gh-dash ];
|
|
|
|
|
2023-09-13 23:06:57 +02:00
|
|
|
xdg.configFile."gh-dash/config.yml".source = let
|
|
|
|
ymlFmt = pkgs.formats.yaml { };
|
|
|
|
mkFilter = title: filters: { inherit title filters; };
|
|
|
|
in ymlFmt.generate "gh-dash-config.yml" {
|
|
|
|
prSections = [
|
|
|
|
(mkFilter "My Pulls"
|
|
|
|
"is:open author:@me")
|
|
|
|
(mkFilter "Needs Review"
|
|
|
|
"is:open review-requested:@me")
|
|
|
|
(mkFilter "Involved"
|
|
|
|
"is:open involves:@me -author:@me")
|
|
|
|
(mkFilter "First-time Py PRs"
|
|
|
|
"is:open repo:nixos/nixpkgs label:\"6.topic: python\" comments:<8 draft:false label:\"12. first-time contribution\"")
|
|
|
|
(mkFilter "Silent Py PRs"
|
|
|
|
"is:open repo:nixos/nixpkgs label:\"6.topic: python\" -author:r-ryantm -author:fabaff draft:false review:none comments:<2")
|
|
|
|
(mkFilter "Silent first-time PRs"
|
|
|
|
"is:open repo:nixos/nixpkgs draft:false label:\"12. first-time contribution\" comments:<2")
|
|
|
|
(mkFilter "Nix Friends"
|
|
|
|
"is:open repo:nixos/nixpkgs author:dali99 author:h7x4 author:felixalbrigtsen")
|
|
|
|
];
|
|
|
|
issuesSections = [
|
|
|
|
(mkFilter "My Issues"
|
|
|
|
"is:open author:@me")
|
|
|
|
(mkFilter "Assigned"
|
|
|
|
"is:open assignee:@me")
|
|
|
|
(mkFilter "Involved"
|
|
|
|
"is:open involves:@me -author:@me")
|
|
|
|
(mkFilter "Nix Vulnerability"
|
|
|
|
"is:open is:open repo:nixos/nixpkgs \"Vulnerability roundup\" ")
|
|
|
|
];
|
2023-09-28 01:58:08 +02:00
|
|
|
defaults.prsLimit = 50;
|
|
|
|
defaults.issuesLimit = 50;
|
2023-09-13 23:06:57 +02:00
|
|
|
defaults.view = "prs";
|
2023-09-07 00:14:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|