Add Open Issues column to the daily PR tracking report - #16
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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.csvto 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 listalso defaults to a small page size when--limitis not provided, soissue_countcan 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
gh issue list(issue-only by construction, unlike the raw/issuesAPI which mixes PRs and issues in).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).
previously, repos with zero open PRs were skipped entirely, which would
have hidden issue-only backlogs.
**Total Open Issues:**summary line and a separateissues-history.csv(kept apart from the existinghistory.csvso itsschema/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.