You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop counting draft PRs as open Dependicus items for review (#63)
* Stop counting draft PRs as open Dependicus items for review
The previous pass over-corrected and made searchDependicusIssues drop
every pull request returned by GitHub's issues endpoint. That left
notification bots with no way to distinguish a fresh, ready-for-review PR
from a half-finished draft, and they kept honking '54 open Dependicus
PRs' because they were still reaching for the count via other channels.
Now the helper:
- Skips draft PRs only — a draft is explicitly not open for review.
- Returns ready-for-review PRs alongside regular issues, with a new
isPullRequest flag so callers can tell them apart.
- Still skips anything flagged as a draft defensively.
The reconciler uses the new flag to keep treating PR titles as
'something already exists, don't create a duplicate', while never
mutating the PR via octokit.issues.update (which would clobber the PR's
title and body since GitHub gives PRs and issues a shared numbering
scheme).
So the goose finally stops honking at perfectly good ducks paddling in
the review pond — only the ducklings still tucked under the wing get
left alone.
Co-authored-by: Angela Gong <anjoola@users.noreply.github.com>
* Regenerate yarn.lock for upstream semver and undici releases
CI's lockfile-consistency check started failing because semver@7.8.1 and
undici@6.26.0 were published upstream and the ^7.3.5 / ^6.25.0 ranges
now resolve to the newer versions. Running 'mise update-all-lockfiles'
produces only this lockfile refresh — no source changes.
Co-authored-by: Angela Gong <anjoola@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
### Changed
10
10
11
-
-`searchDependicusIssues` (in `@dependicus/github-issues`) now skips every pull request returned by GitHub's issues endpoint — drafts and ready-to-review alike — and also skips anything flagged as a draft. Only real, non-draft issues are returned, so notification bots and reports built on this helper stop counting pull requestsas open Dependicus items.
11
+
-`searchDependicusIssues` (in `@dependicus/github-issues`) now treats draft pull requests as not yet open for review and excludes them from results, while ready-for-review pull requests are returned alongside regular issues. Each returned entry carries an `isPullRequest` boolean so notification bots can count open Dependicus items accurately — drafts no longer pad the total — and the reconciler can avoid mutating pull requests. Anything explicitly flagged as a draft (PR or otherwise) is still skipped defensively.
0 commit comments