pinwheel: Add rv, the review request watcher

rv (alex/rv on gitea) watches GitHub for pull requests that request a
review from me or from soundtrackyourbrand/content, notifies on each,
and lists them in a web UI on 127.0.0.1:7778 that opens a review in its
own worktree with Emacs. programs.rv runs `rv serve` as a systemd user
service with the work GitHub token, on the same condition as the other
GitHub-backed work tools.
This commit is contained in:
Alexander Heldt committed 2026-11-24 18:03:24 +01:00
1 parent 5d51af4189
commit bfa3ef7507
3 files changed
+38

No files matched your search

Generated
+22
View File
@@ -931,12 +931,34 @@
"nixpkgs": "nixpkgs_3",
"pppdotpm-site": "pppdotpm-site",
"puppy-tracker": "puppy-tracker",
"rv": "rv",
"schema": "schema",
"todo": "todo",
"whib-backend": "whib-backend",
"whib-frontend": "whib-frontend"
}
},
"rv": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1795538473,
"narHash": "sha256-vrePrHqmI/sXsJ+akFxMrAo9XKHcpr1M2ekDtrkN2k4=",
"ref": "main",
"rev": "60dd7a75094838d731e0713254cf595a0d2bfc17",
"revCount": 7,
"type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/rv.git"
},
"original": {
"ref": "main",
"type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/rv.git"
}
},
"schema": {
"inputs": {
"nixpkgs": [
+6
View File
@@ -128,6 +128,12 @@
# url = "git+file:///home/alex/code/own/ct?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
rv = {
url = "git+ssh://gitea@git.ppp.pm:1122/alex/rv.git?ref=main";
# url = "git+file:///home/alex/code/own/rv?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
+10
View File
@@ -116,7 +116,17 @@ EOF
}
];
};
programs.rv = lib.mkIf gitEnabled {
enable = true;
settings = {
tokenFile = config.age.secrets.work-github-token.path;
teams = [ "soundtrackyourbrand/content" ];
};
};
};
home-manager.sharedModules = [ inputs.rv.homeManagerModules.default ];
# Ensure ~/code/work is owned by alex; it was previously created as root by
# agenix when secrets had a custom path there.