From 55faf59a25df1209b5dfd56dc0076bd275918784 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 7 Feb 2026 17:32:39 +0100 Subject: [PATCH] ci: Fix team review requests from the bot https://github.com/NixOS/nixpkgs/actions/runs/21782693200/job/62849125010 --- ci/github-script/bot.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 76055a3c2d4c..b360d54347f0 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -12,6 +12,12 @@ module.exports = async ({ github, context, core, dry }) => { // Detect if running in a fork (not NixOS/nixpkgs) const isFork = context.repo.owner !== 'NixOS' + const orgId = ( + await github.rest.orgs.get({ + org: context.repo.owner, + }) + ).data.id + async function downloadMaintainerMap(branch) { let run @@ -168,8 +174,7 @@ module.exports = async ({ github, context, core, dry }) => { .request({ method: 'GET', url: '/organizations/{orgId}/team/{id}', - // TODO: Make this work without pull_requests payloads - orgId: context.payload.pull_request.base.user.id, + orgId, id, }) .then((resp) => resp.data)