Repository navigation
Record the upstream commit as the Mayhem run's build id - #260
Merged
Merged
Conversation
For a fork, mcode-action now passes --build-id: the newest commit the recorded revision shares with the upstream default branch, from the GitHub compare API. A build-id input overrides it; nothing is sent for a repository that is not a fork.
sauliusbc
approved these changes
Oct 20, 2026
ethan42
added a commit
that referenced
this pull request
Oct 20, 2026
* Record the parent commit on the Mayhem run The run's parent_revision was never set. mcode-action now passes --parent-revision: an explicit parent-revision input, else the first parent of the recorded revision, read from its commit object so it works in a depth-1 checkout where `git rev-parse <rev>^` fails. Nothing is sent when that commit is not checked out (a pull request head) or is a root commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Record the upstream commit as the Mayhem run's build id (#260) * Record the upstream commit as the Mayhem run's build id For a fork, mcode-action now passes --build-id: the newest commit the recorded revision shares with the upstream default branch, from the GitHub compare API. A build-id input overrides it; nothing is sent for a repository that is not a fork. * Ensure note for behavior change is visible. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Thanassis Avgerinos <thanassis.avgerinos@bugcrowd.com>
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.
Pass
--build-idset to the fork's merge base with upstream (overridable via abuild-idinput). Stacked on#259.