Skip to content

Allow Adding Repo With Permissions #388

New issue

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

Merged
merged 2 commits into from
Jun 24, 2016
Merged

Allow Adding Repo With Permissions #388

merged 2 commits into from
Jun 24, 2016

Conversation

chaseconey
Copy link
Contributor

The api allows sending through a permission when adding the team/repo relationship that is not exposed in your wrapper. Just added in the way that other endpoints are allowing.

@@ -83,8 +83,12 @@ public function repository($team, $username, $repository)
return $this->get('teams/'.rawurlencode($team).'/repos/'.rawurlencode($username).'/'.rawurlencode($repository));
}

public function addRepository($team, $username, $repository)
public function addRepository($team, $username, $repository, array $params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you must make this param optional

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry yeah, I realized right after I committed.

@chaseconey
Copy link
Contributor Author

Any update on this?

@cursedcoder cursedcoder merged commit 5ade19f into KnpLabs:master Jun 24, 2016
@cursedcoder
Copy link
Contributor

@chaseconey yes!

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.

3 participants