Commit cd0fa25d0b45
Changed files (1)
dots
config
gh-news
dots/config/gh-news/config.toml
@@ -9,6 +9,11 @@ participating_only = false
default_preview_mode = "vertical"
repos_collapsed = false
auto_mark_read = false
+org_grouping = "auto"
+
+# Exclusion filters
+exclude_types = ["CheckSuite"]
+exclude_repos = ["openshift-pipelines/operator"]
# Desktop notifications via notify-send
on_new_notification_command = "notify-send --app-name=gh-news --icon=github --urgency=normal --expire-time=5000 'GitHub: $GH_NEWS_REPO' '$GH_NEWS_TITLE'"
@@ -35,21 +40,31 @@ command = "cd $(repo-find {full_name}) && lazyworktree create --from-pr $(echo {
interactive = true
[[actions]]
-name = "Review with Claude"
-command = "gh-news-review -d -t claude {url}"
-interactive = false
+name = "Send /lgtm"
+command = "gh pr comment {number} --repo {owner}/{repo} --body '/lgtm'"
[[actions]]
-name = "Review with Claude (yolo)"
-command = "gh-news-review -d -y -t claude {url}"
-interactive = false
+name = "Approve + /lgtm"
+command = "gh pr review {number} --repo {owner}/{repo} --approve --body '/lgtm'"
+
+[[actions]]
+name = "Rerun failed checks"
+command = "run_id=$(gh run list --repo {owner}/{repo} --branch $(gh pr view {number} --repo {owner}/{repo} --json headRefName -q .headRefName) --status failure --limit 1 --json databaseId -q '.[0].databaseId') && [ -n \"$run_id\" ] && gh run rerun $run_id --repo {owner}/{repo} --failed && echo 'Reran failed checks' || echo 'No failed runs to rerun'"
+
+[[actions]]
+name = "Approve workflow run (first-time contributor)"
+command = "run_id=$(gh run list --repo {owner}/{repo} --branch $(gh pr view {number} --repo {owner}/{repo} --json headRefName -q .headRefName) --status action_required --limit 1 --json databaseId -q '.[0].databaseId') && [ -n \"$run_id\" ] && gh api --method POST repos/{owner}/{repo}/actions/runs/$run_id/approve && echo 'Workflow run approved' || echo 'No pending approval found'"
+
+[[actions]]
+name = "Send /ok-to-test"
+command = "gh pr comment {number} --repo {owner}/{repo} --body '/ok-to-test'"
+
+[[actions]]
+name = "Show PR diff"
+command = "gh pr diff {number} -R {full_name}"
+show_output = true
[[actions]]
name = "Review with Pi"
-command = "gh-news-review -d -t pi {url}"
-interactive = false
-
-[[actions]]
-name = "Review with Pi (yolo)"
-command = "gh-news-review -d -y -t pi {url}"
-interactive = false
+command = "cd $(repo-find {full_name}) && pi -m '/review {url}'"
+interactive = true