mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
ci(bot): add fork compatibility for team lookups
Forks don't have NixOS teams, return empty list to avoid 404.
(cherry picked from commit 033eccc028)
This commit is contained in:
committed by
github-actions[bot]
parent
b71f8fd349
commit
6fea010dfe
@@ -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