in modules/core/src/main/scala/org/scalasteward/core/forge/data/NewPullRequestData.scala [139:152]
private def filterUpdateWithEditAttempts(update: Update, edits: List[EditAttempt]): Update =
update match {
case single: Update.Single => single
case grouped: Update.Grouped =>
grouped.copy(updates = grouped.updates.filter { update =>
edits
.collect { case EditAttempt.UpdateEdit(update, _) =>
update.groupAndMainArtifactId
}
.exists { case (groupId, artifactId) =>
update.groupId == groupId && update.mainArtifactId == artifactId
}
})
}