appview: pulls: fix merge check on stacked PRs #228

merged
opened by oppi.li targeting master from push-tvtwutsrtoxt

this was incorrectly adding the current pull into the formatpatch twice.

Signed-off-by: oppiliappan me@oppi.li

Changed files
+1 -3
appview
pulls
+1 -3
appview/pulls/pulls.go
···
patch := pull.LatestPatch()
if pull.IsStacked() {
// combine patches of substack
-
subStack := stack.Below(pull)
+
subStack := stack.StrictlyBelow(pull)
// collect the portion of the stack that is mergeable
mergeable := subStack.Mergeable()
// combine each patch
···
latestSourceRev = top.Submissions[top.LastRoundNumber()].SourceRev
}
-
log.Println(latestSourceRev, result.Branch.Hash)
-
if latestSourceRev != result.Branch.Hash {
return pages.ShouldResubmit
}