Unverified Commit df1c5949 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

ci/github-script/check-target-branch: fix kernel exemption logic (#487799)

parents 260e4422 e3f053a6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -122,7 +122,11 @@ async function checkTargetBranch({ github, context, core, dry }) {
    ].join('\n'),
  )

  if (maxRebuildCount >= 1000 && !isExemptHomeAssistantUpdate) {
  if (
    maxRebuildCount >= 1000 &&
    !isExemptHomeAssistantUpdate &&
    !isExemptKernelUpdate
  ) {
    const desiredBranch =
      base === 'master' ? 'staging' : `staging-${split(base).version}`
    const body = [