I currently have a bot which automates a few GitHub operations, like merging pull requests, notifying staff on Slack when a PR is opened, that kind of thing (it\'s a custom flav
My company uses Github enterprise.
This API Docs link helped
GET /repos/:owner/:repo/collaborators/:username
If user has access you would get a response similar to
Status: 204 No Content X-RateLimit-Limit: 5000 X-RateLimit-Remaining: 4999
Status: 204 No Content
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999