Clear Pulsar backlogs held by subscriptions nobody consumes
Detect Apache Pulsar subscriptions with no consumers that still pin a large backlog, then clear or remove them behind a dry run, an approval pause and a live re-read that fails the run.
Triage GitHub PR health with Kestra. Label PRs by diff size and flag oversized reviews on Slack.
Big PRs stall reviews and hide bugs. This blueprint polls the GitHub API across a configurable repo list every weekday morning, classifies each open pull request into XS/S/M/L/XL buckets by changed lines, and posts a Slack digest only when a PR exceeds the oversize threshold (default 800 lines). A webhook trigger enables on-demand triage after a release cut.
every_morning (io.kestra.plugin.core.trigger.Schedule, cron 0 8 * * MON-FRI) launches the run; on_demand_webhook allows ad-hoc triage.scan_repos (io.kestra.plugin.core.flow.Loop, concurrency 4) fans out across inputs.repositories.fetch_open_prs (io.kestra.plugin.core.http.Request) lists open PRs with a GITHUB_TOKEN bearer header.classify_prs (io.kestra.plugin.scripts.python.Script) buckets each PR and collects XL offenders.alert_on_oversized (io.kestra.plugin.core.flow.If) posts to Slack (io.kestra.plugin.slack.notifications.SlackIncomingWebhook) only when offenders exist.emit_review_metrics (io.kestra.plugin.core.output.OutputValues) exports scan coverage for audit history.pull_requests:read scope.GITHUB_TOKEN: token used to list pull requests.SLACK_WEBHOOK_URL: Slack Incoming Webhook for digests and failure alerts.WEBHOOK_KEY: auth key for the on-demand webhook trigger.GITHUB_TOKEN, SLACK_WEBHOOK_URL, and WEBHOOK_KEY secrets.repositories and warn_additions inputs.every_morning schedule.size/XS … size/XL labels via the GitHub Issues API.repositories (ARRAY of STRING): repo slugs in owner/name format.warn_additions (INT, default 800): changed-line threshold for XL flag.slack_channel (STRING, default #code-review): digest destination.emit_review_metrics.values.repos_scanned: number of repos scanned.emit_review_metrics.values.scanned_at: run timestamp for audit reports.