Skip to content

Conversation

@eyalk007
Copy link
Contributor

@eyalk007 eyalk007 commented Nov 3, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Update documentation about new features / new supported technologies

@eyalk007 eyalk007 self-assigned this Nov 3, 2025
@eyalk007 eyalk007 added the breaking change Automatically generated release notes label Nov 3, 2025
@eyalk007 eyalk007 added the safe to test Approve running integration tests on a pull request label Nov 4, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

👍 Frogbot scanned this pull request and did not find any new security issues.


return getScanStatus(converted...)
}

func prepareTargetForScan(gitDetails utils.Git, scanDetails *utils.ScanDetails) (targetBranchWd string, cleanupTarget func() error, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i dont think it should be a function anymore, its called once and its has only two lines now

if e := tryCheckoutToMostCommonAncestor(scanDetails, gitDetails.PullRequestDetails.Source.Name, target.Name, targetBranchWd, repoCloneUrl); e != nil {
log.Warn(fmt.Sprintf("Failed to get best common ancestor commit between source branch: %s and target branch: %s, defaulting to target branch commit. Error: %s", gitDetails.PullRequestDetails.Source.Name, target.Name, e.Error()))
}
// Download latest target branch (no common ancestor logic)
Copy link
Contributor

Choose a reason for hiding this comment

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

lets delete comment, future frogbot developers should not be familiar with common ancestor logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants