Skip to content

Add Open Issues column to the daily PR tracking report - #16

Merged
fdevans merged 1 commit into
mainfrom
add-open-issues-count
Aug 19, 2026
Merged

Add Open Issues column to the daily PR tracking report#16
fdevans merged 1 commit into
mainfrom
add-open-issues-count

Conversation

@fdevans

@fdevans fdevans commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What

Adds an Open Issues column to the daily PR tracking report, sorted
descending by issue count so the noisiest backlogs are at the top.

Why

You just closed a batch of issues on sshj-plugin and wanted visibility
into whether other repos have a similar backlog building up, without
adding a separate report to check.

Details

  • Uses gh issue list (issue-only by construction, unlike the raw
    /issues API which mixes PRs and issues in).
  • Excludes Renovate's permanent "Dependency Dashboard" issue - it's open
    in every Renovate-enabled repo always and isn't a real signal. Verified
    live: every affected repo's count dropped by exactly 1 after adding the
    filter, and the org-wide total dropped by 27 (matching the number of
    Renovate-enabled repos with that issue open).
  • A repo now appears in the table if it has open PRs or open issues -
    previously, repos with zero open PRs were skipped entirely, which would
    have hidden issue-only backlogs.
  • Adds a **Total Open Issues:** summary line and a separate
    issues-history.csv (kept apart from the existing history.csv so its
    schema/header isn't disturbed mid-stream).

Validation

Ran the whole step for real (read-only - gh pr list / gh issue list,
no writes) against all ~36 repos, twice (before and after the Dependency
Dashboard filter), to confirm the numbers and the sort behave as expected.

Adds an Open Issues count per repo (via gh issue list, which is
issue-only and never counts PRs), sorted descending so the noisiest
backlogs sit at the top of the table - the daily report already gets
read regularly, so this rides along instead of being a separate thing
to check. Also adds Total Open Issues to the summary line and a
separate issues-history.csv (kept apart from history.csv so its
existing schema/header isn't disturbed).

A repo now shows up in the table if it has open PRs OR open issues
(previously repos with zero open PRs were skipped entirely, which
would have hidden issue-only backlogs).

Excludes Renovate's permanent "Dependency Dashboard" issue from the
count - it sits open in every Renovate-enabled repo always, and isn't
a real backlog signal. Confirmed by running the full script for real
(read-only) before/after adding the filter: every affected repo's count
dropped by exactly 1, and the org-wide total dropped by 27, matching
the number of Renovate-enabled repos with that issue open.
@fdevans
fdevans requested review from a team and a lite review from Copilot August 19, 2026 16:51
@fdevans
fdevans merged commit 13c6973 into main Aug 19, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds open-issue visibility to the org’s daily PR tracking report so repositories with growing issue backlogs are surfaced alongside PR attention needs.

Changes:

  • Adds per-repo Open Issues counts (excluding Renovate’s “Dependency Dashboard”) and sorts the report table by issue count (descending).
  • Includes repositories that have open issues even if they have zero open PRs.
  • Adds a separate issues-history.csv to track daily aggregate open-issue totals without changing the existing PR history schema.
Suppressed comments (1)

.github/workflows/pr-tracking-workflow.yml:73

  • gh issue list also defaults to a small page size when --limit is not provided, so issue_count can under-report open issues. Add an explicit limit (or pagination) so the new Open Issues column and totals remain accurate for larger backlogs.
            issue_count=$(gh issue list --repo rundeck-plugins/$repo --state open --json title -q '[.[] | select(.title != "Dependency Dashboard")] | length')

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


# Count total PRs. `gh pr list` (not the raw /issues API, which
# mixes PRs and issues together) so this stays PR-only.
count=$(gh pr list --repo rundeck-plugins/$repo --state open --json number -q 'length')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants