Commit 5c2b3c3bda9e

Vincent Demeester <vincent@sbr.pm>
2026-01-30 21:22:46
feat(dots): add lazypr custom actions config
Add lazypr config with custom actions: - Copy URL(s) to clipboard - Open lazyworktree in repo - Create worktree from PR - Review with Claude (detached shpool session) - Review with Claude (yolo mode) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 79c5ff8
Changed files (2)
dots
dots/.config/lazypr/config.toml
@@ -0,0 +1,28 @@
+# lazypr custom actions configuration
+# Placeholders: {url}, {urls}, {number}, {numbers}, {title}, {titles},
+#               {author}, {authors}, {owner}, {repo}, {full_name}
+
+[[actions]]
+name = "Copy URL(s)"
+command = "echo -n {urls} | wl-copy"
+interactive = false
+
+[[actions]]
+name = "Open lazyworktree"
+command = "cd $(repo-find {full_name}) && lazyworktree"
+interactive = true
+
+[[actions]]
+name = "Create worktree from PR"
+command = "cd $(repo-find {full_name}) && lazyworktree create --from-pr {number}"
+interactive = true
+
+[[actions]]
+name = "Review with Claude"
+command = "gh-news-review -d {url}"
+interactive = false
+
+[[actions]]
+name = "Review with Claude (yolo)"
+command = "gh-news-review -d -y {url}"
+interactive = false
dots/Makefile
@@ -47,6 +47,9 @@ aichat-config : ~/.config/aichat/config.yaml
 aichat-genconf : ~/.config/aichat/genconf.py
 aichat-roles : ~/.config/aichat/roles
 
+all += lazypr
+lazypr : ~/.config/lazypr/config.toml
+
 # Backward compatibility: symlink ~/.claude to ~/.config/claude
 ~/.claude : force
 	@echo "๐Ÿ”— Creating backward compatibility symlink: ~/.claude -> ~/.config/claude"