Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fixes to ignore errors because of GitHub token #662

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Yemaneberhan-Lemma
Copy link
Contributor

@Yemaneberhan-Lemma Yemaneberhan-Lemma commented Nov 11, 2024

Added fixes for the issue

Copy link

sentry-io bot commented Nov 11, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: web/modules/custom/ct_github/src/GithubQuery.php

Function Unhandled Issue
Drupal\ct_github\GithubQuery::__construct ArgumentCountError: Too few arguments to function Drupal\ct_github\GithubQuery::__construct(), 2 passed in /app/web/c... /modules/custom/ct...
Event Count: 36

Did you find this useful? React with a 👍 or 👎

Comment on lines +99 to +101
if (!$issues) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed? IIRC, $issues will always be an array and the foreach won't do anything. I am avoiding this return because there might be more things to run later. Are there cases where not having this throws an error?

@hussainweb hussainweb merged commit c65f02b into main Nov 12, 2024
4 checks passed
@hussainweb hussainweb deleted the github_api_query_fix branch November 12, 2024 00:03
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.

2 participants