Repository navigation
fix: match impacted project by name when marking jobs applied - #2749
Closed
ovi-fabric wants to merge 1 commit into
Closed
ovi-fabric wants to merge 1 commit into
ovi-fabric wants to merge 1 commit into
Conversation
GetImpactedProjectSingle accepted projectName but never filtered on it, so every job in a multi-project batch updated whichever impacted_projects row the database returned first for the commit. When that row stayed first, the remaining rows were never marked applied, AllImpactedProjectApplied returned false, and auto-merge was skipped silently. Filter on project_name, use First so a missing row returns ErrRecordNotFound instead of a zero-value struct, and log the unapplied projects when auto-merge is skipped for that reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Approve tool call: github__addPullRequestComment
Answer by mentioning me in a reply, e.g. |
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.
GetImpactedProjectSingle accepted projectName but never filtered on it, so every job in a multi-project batch updated whichever impacted_projects row the database returned first for the commit. When that row stayed first, the remaining rows were never marked applied, AllImpactedProjectApplied returned false, and auto-merge was skipped silently.
Filter on project_name, use First so a missing row returns ErrRecordNotFound instead of a zero-value struct, and log the unapplied projects when auto-merge is skipped for that reason.
🧠 Ai UsageDetails (if applicable):
IMPORTANT: Please disclose any usage of ai tooling while making this change. If you did not use any AI write "NA" below