From 033eccc028fb63d3537d3383041d7009b3466ec3 Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Thu, 22 Jan 2026 01:32:17 +0200 Subject: [PATCH] ci(bot): add fork compatibility for team lookups Forks don't have NixOS teams, return empty list to avoid 404. --- ci/github-script/bot.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 415593c7aec4..f812df3c565f 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -121,6 +121,11 @@ module.exports = async ({ github, context, core, dry }) => { return [] } + // Forks don't have NixOS teams, return empty list + if (isFork) { + return [] + } + if (!members[team_slug]) { members[team_slug] = github.paginate(github.rest.teams.listMembersInOrg, { org: context.repo.owner,