Fix JQ query failures in GitHub workflow caused by double command execution bug#20
Merged
byron-infomagnus merged 3 commits intomainfrom Jul 11, 2025
Merged
Fix JQ query failures in GitHub workflow caused by double command execution bug#20byron-infomagnus merged 3 commits intomainfrom
byron-infomagnus merged 3 commits intomainfrom
Conversation
…and execution Co-authored-by: byron-infomagnus <126528428+byron-infomagnus@users.noreply.github.com>
Co-authored-by: byron-infomagnus <126528428+byron-infomagnus@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Bug: function is failing because the JQ query is searching for incorrect fields
Fix JQ query failures in GitHub workflow caused by double command execution bug
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
pull-project-tasks.ymlworkflow was failing with "Invalid JSON response from GitHub API" errors despite receiving valid JSON responses from the GitHub GraphQL API. The error manifested as:Root Cause
Analysis revealed two critical bugs in the
retry_with_backofffunction used by all API calls:Before:
This resulted in captured responses like:
Solution
Fixed retry_with_backoff function (4 instances):
Key improvements:
Verification
All JQ queries tested and verified against actual GitHub API v4 responses:
.rate.remaining/.rate.reset.data.rateLimit.remaining/.data.rateLimit.resetAt.data.organization.projectsV2.nodes[].data.repository.issue.id.errorsfield detectionExpected Behavior
The workflow now handles all scenarios correctly, including cases where requested project names don't exist.
Fixes #19.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.