We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got a not found exception by using $client->api('organization')->teams()->addRepository(...)
$client->api('organization')->teams()->addRepository(...)
I found this in the documentation: https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions put /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
put /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
current code:
if (isset($params['permission']) && !in_array($params['permission'], ['pull', 'push', 'admin'])) { return $this->put('/teams/'.rawurlencode($team).'/repos/'.rawurlencode($organization).'/'.rawurlencode($repository), $params); }
code suggestion:
if (isset($params['permission']) && !in_array($params['permission'], ['pull', 'push', 'maintain', 'triage', 'admin'])) { return $this->put('/orgs/'.rawurlencode($organization).'/teams/'.rawurlencode($team).'/repos/'.rawurlencode($organization).'/'.rawurlencode($repository), $params); }
The text was updated successfully, but these errors were encountered:
cf962cb
Successfully merging a pull request may close this issue.
I got a not found exception by using
$client->api('organization')->teams()->addRepository(...)
I found this in the documentation:
https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions
put /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
current code:
code suggestion:
The text was updated successfully, but these errors were encountered: