ci(bot): add fork compatibility for team lookups

Forks don't have NixOS teams, return empty list to avoid 404.
This commit is contained in:
Aliaksandr
2026-01-22 01:32:17 +02:00
parent 0557411308
commit 033eccc028

View File

@@ -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,