no gh-dash

This commit is contained in:
Peder Bergebakken Sundt 2023-12-03 20:55:46 +01:00
parent 46f6bb5823
commit f677611ac9
2 changed files with 0 additions and 48 deletions

View File

@ -12,7 +12,6 @@
./profiles/micro.nix
./profiles/ast-grep.nix
./profiles/shell.nix
./profiles/gh-dash.nix
./profiles/ssh.nix
./profiles/tmate.nix
./profiles/update-diff.nix

View File

@ -1,47 +0,0 @@
{ pkgs, ... }:
{
# TODO: switch to programs.gh-dash.enable once in stable
home.packages = [ pkgs.gh-dash ];
programs.gh.extensions = [ pkgs.gh-dash ];
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 PRs"
"is:open author:@me")
(mkFilter "Review Requested"
"is:open review-requested:@me")
(mkFilter "Involved"
"is:open involves:@me -author:@me")
(mkFilter "Community Reviewed PRs"
''is:open is:open label:"12.approvals: 3+","12.approvals: 2","12.approved-by: package-maintainer"'')
(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 "Friends"
"is:open repo:nixos/nixpkgs author:dali99 author:h7x4 author:felixalbrigtsen author:emilytrau")
];
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\" ")
];
defaults.prsLimit = 50;
defaults.issuesLimit = 50;
defaults.view = "prs";
};
}