Skip to content

Commit

Permalink
[home-manager] util func to generate github bookmarks for ff
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Nov 28, 2023
1 parent 3236caa commit c2e3c09
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions home-manager/.config/home-manager/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,51 @@
Timer.Persistent = true;
Install.WantedBy = [ "timers.target" ];
};

# generate github bookmarks
gh-bookmarks = { repo, basename, basekeyword }:
[
{
name = basename;
tags = [ "github" ];
keyword = basekeyword;
url = "https://github.com/" + repo;
}
{
name = basename + " Issues";
tags = [ "github" ];
keyword = basekeyword + "i";
url = "https://github.com/" + repo + "/issues";
}
{
name = basename + " Issues Assigned to me";
tags = [ "github" ];
keyword = basekeyword + "im";
url = "https://github.com/" + repo + "/issues/assigned/@me";
}
{
name = basename + " Pull Requests";
tags = [ "github" ];
keyword = basekeyword + "p";
url = "https://github.com/" + repo + "/pulls";
}
{
name = basename + " Pull Requests Assigned to me";
tags = [ "github" ];
keyword = basekeyword + "pm";
url = "https://github.com/" + repo + "/pulls/assigned/@me";
}
{
name = basename + " Pull Requests Review Requested to me";
tags = [ "github" ];
keyword = basekeyword + "pr";
url = "https://github.com/" + repo + "/pulls/review-requested/@me";
}
{
name = basename + " Actions";
tags = [ "github" ];
keyword = basekeyword + "a";
url = "https://github.com/" + repo + "/actions";
}
];
}

0 comments on commit c2e3c09

Please sign in to comment.