Polls all heavy-duty/* repos every 15m for assignee/review-requested work, reviews with clear Verdicts until agreement, and includes tmux restore + hourly health self-heal. Fully documented.
17 lines
723 B
Bash
Executable file
17 lines
723 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Org-wide discovery of actionable PRs/issues for the bot.
|
|
set -euo pipefail
|
|
ORG="${ORG:-heavy-duty}"
|
|
LIMIT="${LIMIT:-50}"
|
|
|
|
echo "=== review-requested PRs (org:${ORG}) ==="
|
|
gh search prs --owner "${ORG}" --review-requested=@me --state open \
|
|
--json number,title,url,updatedAt,author,assignees,repository --limit "${LIMIT}"
|
|
|
|
echo "=== assignee PRs (org:${ORG}) ==="
|
|
gh search prs --owner "${ORG}" --assignee=@me --state open \
|
|
--json number,title,url,updatedAt,author,assignees,repository --limit "${LIMIT}"
|
|
|
|
echo "=== assignee issues (org:${ORG}) ==="
|
|
gh search issues --owner "${ORG}" --assignee=@me --state open \
|
|
--json number,title,url,updatedAt,author,assignees,repository --limit "${LIMIT}"
|