From 11119269f151d021deb96cf89ca4044d54f88d0e Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Fri, 20 Mar 2026 18:28:27 -0400 Subject: [PATCH] Add gh-triage workflow to check open PRs and issues via gh CLI Co-Authored-By: Claude Opus 4.6 (1M context) --- fabro/workflows/gh-triage/workflow.fabro | 11 +++++++++++ fabro/workflows/gh-triage/workflow.toml | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 fabro/workflows/gh-triage/workflow.fabro create mode 100644 fabro/workflows/gh-triage/workflow.toml diff --git a/fabro/workflows/gh-triage/workflow.fabro b/fabro/workflows/gh-triage/workflow.fabro new file mode 100644 index 000000000..50e0db778 --- /dev/null +++ b/fabro/workflows/gh-triage/workflow.fabro @@ -0,0 +1,11 @@ +digraph GhTriage { + graph [goal="Check open PRs and issues using the gh CLI and produce a triage summary"] + rankdir=LR + + start [shape=Mdiamond, label="Start"] + exit [shape=Msquare, label="Exit"] + + triage [label="Triage", prompt="Use the gh CLI to check the current repo for open pull requests and issues. Run these commands:\n\n1. gh pr list --state open --limit 20\n2. gh issue list --state open --limit 20\n\nThen produce a triage summary that includes:\n- Total count of open PRs and issues\n- For each PR: number, title, author, age, review status\n- For each issue: number, title, labels, age\n- Any PRs that look stale (older than 7 days with no review activity)\n- Any issues that are unassigned or unlabeled"] + + start -> triage -> exit +} diff --git a/fabro/workflows/gh-triage/workflow.toml b/fabro/workflows/gh-triage/workflow.toml new file mode 100644 index 000000000..3e0093cb8 --- /dev/null +++ b/fabro/workflows/gh-triage/workflow.toml @@ -0,0 +1,4 @@ +version = 1 + +[github] +permissions = { pull_requests = "read", issues = "read" }