Commit aa7a59d
authored
fix(maintainer): use affiliation=all for repo collaborators (#198)
Org-owned repos whose members are private (the GitHub default) resolved
to an empty maintainer set and were skipped by MaintainerPopulateService,
because affiliation=direct only returns users explicitly added to the
repo — it excludes insiders who get access via a team or org base
permission, and /orgs/{org}/members only exposes public members to the
app token.
Switch the collaborators fetch to affiliation=all so any insider with
repo access is captured. The live maintainers table is meant to reproduce
GitHub's author_association (OWNER/MEMBER/COLLABORATOR), which marks org
insiders as maintainers regardless of how access was granted, so this is
the faithful set — not a permission-level reinterpretation.
Fixes gittensor-ai-lab/sparkinfer showing zero maintainers.1 parent eb214a6 commit aa7a59d
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
266 | | - | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| |||
0 commit comments