Commit 83ad8dbf4308

Vincent Demeester <vincent@sbr.pm>
2026-03-31 15:05:02
feat: handle issues and PRs differently in review
Branched the Review with Pi action to use /review for PRs and ask for issue analysis/summary for issues.
1 parent 611be1b
Changed files (1)
dots
config
dots/config/gh-news/config.toml
@@ -66,5 +66,5 @@ show_output = true
 
 [[actions]]
 name = "Review with Pi"
-command = "cd $(repo-find {full_name}) && pir '/review {url}'"
+command = "cd $(repo-find {full_name}) && if [ {type} = 'PR' ]; then pir '/review {url}'; else pir 'Analyze and summarize this GitHub issue: {url}'; fi"
 interactive = true