Fix incorrect workflow_id type for workflow_run table#558
Open
WallyGuzman wants to merge 1 commit into
Open
Conversation
- Remove unecessary strconv to match other workflow-related tables - Add optional quals for headSha, actorLogin, and createdAt - Fix minor bug in workflow_job to handle missing CompletedAt fields - Also minor typo fix in docs and new query example with dates
WallyGuzman
force-pushed
the
github_actions_repository_workflow_run
branch
from
July 25, 2026 13:35
a93ac88 to
afc789d
Compare
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.
Note: I'm not really sure why this was coming in as a
string. Both versions of the REST API [1,2] showworkflow_idas an integer and the go-github library sets it toint64[3]. Either way, this PR represents a breaking change for any customers who rely onworkflow_idbeing of typestring.Please let me know if there's a specific way to structure this change or otherwise handle versioning/communication for this.
Edit: Also bundled minor bug fix for
github_actions_repository_workflow_job.[1] https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository
[2] https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2026-03-10#list-workflow-runs-for-a-repository
[3] https://pkg.go.dev/github.com/google/go-github/v55@v55.0.0/github#WorkflowRun
Example query results
Results
Before
After
Other queries
Also some database logs during the query above: