Request icon
Query icon
Loop icon
If icon
Set icon
Log icon
Schedule icon

GitHub Issue Backlog Risk Analyzer

Monitor a public GitHub repository's open issue backlog with Kestra, DuckDB SQL, issue-age tracking, KV-based deduplication, and configurable escalation.

Categories
Data

Monitor the open issue backlog of a public GitHub repository. This workflow fetches the total issue count, classifies backlog risk with DuckDB SQL, identifies aging issues, and remembers previously flagged issues using Kestra KV. It logs escalation status after the configured waiting period.

How it works

  1. A daily schedule starts the workflow.
  2. HTTP requests retrieve the total open issue count and issue details.
  3. DuckDB SQL classifies the backlog as HIGH or NORMAL.
  4. The workflow identifies issues that meet the configured age threshold.
  5. Kestra KV records when an issue is first flagged.
  6. Previously flagged issues are checked for escalation eligibility.
  7. A readable report summarizes the backlog and configured thresholds.

What you get

  • Repository name and total open issue count.
  • SQL-generated backlog risk classification.
  • Identification of aging open issues.
  • KV-based tracking of previously flagged issues.
  • Configurable escalation period, set to 7 days by default.
  • Task-level logs and execution history in Kestra.

Who it's for

  • Open-source maintainers.
  • Engineering teams monitoring issue backlogs.
  • Developers learning API-driven workflow automation and SQL analysis.

Why use Kestra

Kestra coordinates API requests, SQL analysis, conditional routing, issue tracking, and scheduled execution in one observable workflow. Each execution records task status and logs for troubleshooting.

Prerequisites

  • A running Kestra instance.
  • Outbound internet access.
  • A public GitHub repository accessible through the GitHub API.
  • Awareness of GitHub's unauthenticated API rate limits.

Secrets

No secrets are required for this public repository example.

Quick start

  1. Import the workflow into a Kestra namespace.
  2. Execute it manually and inspect the task outputs.
  3. Configure the owner, repository, risk threshold, and issue-age threshold.
  4. Review the backlog report and at-risk issue logs.
  5. Adjust the escalation period as needed.
  6. Enable the daily schedule.

How to extend

  • Add email or chat notifications for high-risk backlogs.
  • Add GitHub issue comments using an appropriately scoped token.
  • Add pagination to retrieve more than 100 issue records.
  • Track labels, milestones, or assignees for richer risk analysis.
  • Store daily backlog counts for historical trend analysis.
  • Add separate deduplication for escalation notifications.

Links

Orchestrate with Kestra
Orchestrate DuckDB with Kestra
Share this Blueprint
See How

New to Kestra?

Use blueprints to kickstart your first workflows.