From adabcdead39fdb06f8c93b830d16ddda34fdb779 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sun, 17 May 2026 14:47:42 +1000 Subject: [PATCH] ci/github-script/check-target-branch: disable review for xanmod kernels updates should go to master or release branches --- ci/github-script/check-target-branch.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/github-script/check-target-branch.js b/ci/github-script/check-target-branch.js index a31520c02fc6..cdb2670aeac0 100644 --- a/ci/github-script/check-target-branch.js +++ b/ci/github-script/check-target-branch.js @@ -105,7 +105,7 @@ async function checkTargetBranch({ github, context, core, dry }) { // These should go to staging-nixos instead of master, // but release-xx.xx (not staging-xx.xx) when backported let isExemptKernelUpdate = false - if (prInfo.changed_files === 1 && base.startsWith('release-')) { + if (prInfo.changed_files === 1) { const changedFiles = ( await github.rest.pulls.listFiles({ ...context.repo, @@ -114,8 +114,11 @@ async function checkTargetBranch({ github, context, core, dry }) { ).data isExemptKernelUpdate = changedFiles.length === 1 && - changedFiles[0].filename === - 'pkgs/os-specific/linux/kernel/kernels-org.json' + (changedFiles[0].filename === + 'pkgs/os-specific/linux/kernel/xanmod-kernels.nix' || + (base.startsWith('release-') && + changedFiles[0].filename === + 'pkgs/os-specific/linux/kernel/kernels-org.json')) } // https://github.com/NixOS/nixpkgs/pull/483194#issuecomment-3793393218