feat: add gh-dash

This commit is contained in:
gwg313 2024-02-02 20:55:01 -05:00
parent 980f180b88
commit c181b1c7af
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
2 changed files with 49 additions and 0 deletions

View file

@ -23,6 +23,7 @@
../modules/common-gui.nix
../modules/linux-gui.nix
../modules/devenv.nix
../modules/gh-dash.nix
];
nixpkgs = {

View file

@ -0,0 +1,48 @@
{...}: {
programs.gh-dash = {
enable = true;
settings = {
prSections = [
{
title = "My Pull Requests";
filters = "is:open author:@me";
}
{
title = "Needs My Review";
filters = "is:open review-requested:@me";
limit = 20; # Limits How many are fetched
}
{
title = "Nixvim";
filters = "is:open repo:nix-community/nixvim";
limit = 20; # Limits How many are fetched
}
];
issuesSections = [
{
title = "Created";
filters = "is:open author:@me";
}
{
title = "Assigned";
filters = "is:open assignee:@me";
}
{
title = "Subscribed";
filters = "is:open -author:@me";
}
];
keybindings = {
prs = [
{
key = "C";
command = "tmux";
}
];
};
pager = {
diff = "delta";
};
};
};
}