Skip to content

Bypass collecting pull request data when PRs are disabled#306

Open
MoralCode wants to merge 5 commits intomainfrom
fix/disabled_prs
Open

Bypass collecting pull request data when PRs are disabled#306
MoralCode wants to merge 5 commits intomainfrom
fix/disabled_prs

Conversation

@MoralCode
Copy link
Copy Markdown
Contributor

Description
This PR adds a function to GithubDataAccess to enable the status of pull requests to be detected at the start of the PR collection job and short-curcuit if PRs are not enabled, thus avoiding a task failure.

This may only be a PARTIAL FIX for the general case of "things are failing because prs are disabled". I need to disentangle the various issues that have been filed for this.

This PR fixes #229 in the narrow case of pull request collection.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

MoralCode added 5 commits May 6, 2026 15:19
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
for better handling of future query param encoding needs and
sharing responsibility for url creation (GhDA owns the domain/base url, the caller owns the path and query params they want to use)

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
… this in the future

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…g what it already does

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode
Copy link
Copy Markdown
Contributor Author

Credit to @iGufrankhan for the initial concept/implementation for this fix that ended up in the commits

Copy link
Copy Markdown
Contributor

@cdolfi cdolfi left a comment

Choose a reason for hiding this comment

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

I havent tested but everything lgtm

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.

Pull request endpoints 404ing on repos with PRs disabled

2 participants