mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-11 03:21:08 +01:00
gh-dash: add module
This commit is contained in:
parent
ab70a02363
commit
a30f5b5b35
6 changed files with 78 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ import nmt {
|
|||
./modules/programs/fish
|
||||
./modules/programs/gallery-dl
|
||||
./modules/programs/gh
|
||||
./modules/programs/gh-dash
|
||||
./modules/programs/git-cliff
|
||||
./modules/programs/git
|
||||
./modules/programs/gpg
|
||||
|
|
|
|||
26
tests/modules/programs/gh-dash/config.nix
Normal file
26
tests/modules/programs/gh-dash/config.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.gh-dash = {
|
||||
enable = true;
|
||||
settings = {
|
||||
prSections = [{
|
||||
title = "My Pull Requests";
|
||||
filters = "is:open author:@me";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.gh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/gh-dash/config.yml
|
||||
assertFileContent home-files/.config/gh-dash/config.yml ${
|
||||
builtins.toFile "config-file.yml" ''
|
||||
prSections:
|
||||
- filters: is:open author:@me
|
||||
title: My Pull Requests
|
||||
''
|
||||
}
|
||||
'';
|
||||
}
|
||||
1
tests/modules/programs/gh-dash/default.nix
Normal file
1
tests/modules/programs/gh-dash/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ gh-dash-config = ./config.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue