Skip to content

fix(github): the label taxonomy metrics count every open issue across all pages and no pull requests - #2298

Merged
dan-petty merged 1 commit into
mainfrom
implement_issue_fifteen_forty_one
Oct 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
implement_issue_fifteen_forty_one

Conversation

@dan-petty

@dan-petty dan-petty commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

The label taxonomy metrics function requested only the first page of issues. It also included pull requests because the GitHub issues API returns pull requests. Repositories with more than 100 open issues showed incomplete metrics. Pull request labels corrupted the issue taxonomy counts.

The function now requests all pages with client.api(endpoint, paginate=True). It parses the paginated output with parse_paginated_json. The loop ignores entries that contain a pull_request key. The tests verify 250 open issues across three pages and ignore two pull requests.

Fail-to-pass check run:

  • Base: origin/main
  • Result: 3 failed on base, 61 passed, 0 errored (uv run devops ci fail-to-pass --base origin/main).

Closes #1541

Change:
openspec/changes/archive/2026-10-26-1541-label-taxonomy-metrics-pagination/

… all pages and no pull requests

The label taxonomy metrics function requested only the first page of issues. It also included pull requests because the GitHub issues API returns pull requests. Repositories with more than 100 open issues showed incomplete metrics. Pull request labels corrupted the issue taxonomy counts.

The function now requests all pages with `client.api(endpoint, paginate=True)`. It parses the paginated output with `parse_paginated_json`. The loop ignores entries that contain a `pull_request` key. The tests verify 250 open issues across three pages and ignore two pull requests.

Closes #1541

Change:
openspec/changes/archive/2026-10-26-1541-label-taxonomy-metrics-pagination/
@dan-petty
dan-petty marked this pull request as ready for review October 26, 2026 14:57
@dan-petty
dan-petty merged commit f5cd022 into main Oct 26, 2026
20 checks passed
@dan-petty
dan-petty deleted the implement_issue_fifteen_forty_one branch October 26, 2026 15:11
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.3](v0.6.2...v0.6.3)
(2026-10-26)


### Bug Fixes

* **github:** devops gh rate-limit reads only the free /rate_limit
endpoint ([#2300](#2300))
([706e386](706e386)),
closes [#1441](#1441)
* **github:** the label taxonomy metrics count every open issue across
all pages and no pull requests
([#2298](#2298))
([f5cd022](f5cd022))
* **infra:** cloudflare access sync reads every page of applications and
policies and retries rate-limited requests
([#2296](#2296))
([a86aa4b](a86aa4b))
* **review:** the review dry run shows the request the model client
would send, built by that client
([#2291](#2291))
([9383fd5](9383fd5))
* **security:** devops scan sbom is produced by trivy's cyclonedx and
spdx writers
([#2301](#2301))
([d5e47ff](d5e47ff))
* **terraform:** drift reads state through tofu show -json, so encrypted
state and module resources are no longer misreported
([#2297](#2297))
([169859a](169859a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

fix(github): the label taxonomy metrics count every open issue across all pages and no pull requests

1 participant