Skip to content

Add branch protection - #520

Merged
Nyholm merged 2 commits into
KnpLabs:masterfrom
ampersand:branch-protection
Feb 9, 2017
Merged

Nyholm merged 2 commits into
KnpLabs:masterfrom
ampersand:branch-protection

Conversation

@ampersand

Copy link
Copy Markdown
Contributor

@Nyholm Nyholm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Awesome. I just miss some docs.

*/
class Protection extends AbstractApi
{
public function show($username, $repository, $branch)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add method comments with parameters and their types, link to docs and return value

return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/branches/'.rawurlencode($branch).'/protection');
}

public function update($username, $repository, $branch, array $params = array())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same here

@Nyholm

Nyholm commented Feb 9, 2017

Copy link
Copy Markdown
Collaborator

Excellent. Thank you @ampersand!

@Nyholm
Nyholm merged commit bf37870 into KnpLabs:master Feb 9, 2017
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.

2 participants