Add maxResults Limit Parameter for Open Pull Requests in GitHub Ocean Integration Submitted by: Banco de Chile Integration: GitHub Ocean (github-ocean) Priority: High
A
Arturo Rojas
Context
We have fully migrated to the GitHub Ocean integration and are actively using it in production across our organization.
:bug: Problem We Are Experiencing
We are experiencing a critical and recurring failure during resync when repositories have a large number of open pull requests (~70–80+).
We understand that the integration currently supports a maxResults parameter to cap the number of closed PRs fetched per repository:
- kind: pull-request
selector:
query: "true"
states: ["closed"]
maxResults: 50 # ✅ Works for closed PRs
since: 60
However, no equivalent parameter exists for open pull requests — the integration fetches all open PRs unconditionally. When a repository accumulates ~70–80+ open PRs, this causes the integration to fail. We have confirmed that GitHub's own API also struggles under these conditions, but the lack of a configurable limit on the Port side amplifies the problem.
:white_check_mark: What We Are Requesting
We would like a maxResults (or equivalent) parameter for open pull requests, similar to what already exists for closed PRs, so we can cap the number of open PRs fetched per repository.
Example of the configuration we need:
- kind: pull-request
selector:
query: "true"
states: ["open"]
maxResults: 50 # ✅ REQUESTED — limit open PRs per repo
:briefcase: Business Impact
We are currently manually closing pull requests in GitHub on affected repositories just to stay below the threshold where the integration stops failing. This is not a sustainable solution.
The issue will recur, as those repositories naturally generate a high volume of open PRs.
This is our highest priority limitation with the Ocean integration at this time.
Thank you for considering this request!
A
Arturo Rojas
04 Feb 2026 09:02:21:506 -0300 Request GET https://api.github.com/repos/bch-devsecops/cluster-common-infra/pulls?state=open&per_page=100 failed with status code: 504, retrying in 0.09 seconds.
A
Arturo Rojas
For your response of Re: [#7574] GitHub Ocean Integration – Resync Fails with Repositories Containing ~70–80+ Open Pull Requests
the org for github is bch-devsecops and the repository with a lots of open PR is cluster-common-infra
Gur Shafriri
Hi Arturo Rojas thanks for reaching out with this!
Before we take a look at implementing this filter, we want to make sure there is no underlying bug here. 70-80 open PRs are not too many, and there shouldn't be failures there.
So we will open a support ticket for this case, and if it is determined as expected behaviour, we will consider your suggestion as a path forward 🙏🏽