mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user