Skip to content

use collaborators/.../permission to infer reviewer permissions - #185

Merged
robstoll merged 1 commit into
mainfrom
bugfix/cleanup-reviewer
Aug 3, 2026
Merged

use collaborators/.../permission to infer reviewer permissions#185
robstoll merged 1 commit into
mainfrom
bugfix/cleanup-reviewer

Conversation

@robstoll

@robstoll robstoll commented Aug 3, 2026

Copy link
Copy Markdown
Member

seems like the term collaborators is overloaded in the github-api. As it seems collaborators/${user} only returns 204 if the user has at least maintainer permissions. I expected it returns 204 whenever the user is somehow still collaborating in the sense of it is still in the list of collaborators in the repo settings somehow (directly or indirectly via teams or implicitly via org etc.)

so for a user with write permissions collaborators/${user} returned 404 where collaborators/${user}/permission returns 200 -- nice design GitHub


I confirm that I have read the Contributor Agreement v1.1, agree to be bound on them and confirm that my contribution is compliant.

seems like the term collaborators is overloaded in the github-api.
As it seems collaborators/${user} only returns 204 if the user has at
least maintainer permissions. I expected it returns 204 whenever the
user is somehow still collaborating in the sense of it is still in the
list of collaborators in the repo settings somehow (directly or
indirectly via teams or implicitly via org etc.)

so for a user with write permissions collaborators/${user} returned 404
where collaborators/${user}/permission returns 200 -- nice design GitHub
@robstoll

robstoll commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

this should trigger an Auto-Cleanup PR

@robstoll
robstoll merged commit d98d13e into main Aug 3, 2026
4 checks passed
@robstoll
robstoll deleted the bugfix/cleanup-reviewer branch August 3, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant