You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2102,6 +2106,9 @@ func buildSupersedePlan(runtime *stackruntime.Runtime, state store.RepoState, la
2102
2106
iferr!=nil {
2103
2107
returnsupersedePlan{}, err
2104
2108
}
2109
+
if!sourceBranches[pr.HeadRefName] {
2110
+
returnsupersedePlan{}, fmt.Errorf("pull request #%d head %q is not part of landing batch %q; expected one of: %s", pr.Number, pr.HeadRefName, landingBranch, strings.Join(landing.SourceBranches, ", "))
iferr==nil||!strings.Contains(err.Error(), `pull request #3 head "hack-agent/unrelated-follow-up" is not part of landing batch "stack/discovery-core"`) {
0 commit comments