Skip to content

Commit c52f93c

Browse files
Lukas Kämmerlingvimishor
authored andcommitted
Merged in lk-simk/bitbucket-api/add-merge-restrict (pull request #34)
Added 'restrict_merges' restriction to `BranchRestrictions::create()`. @see https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/branch-restrictions#post
2 parents 095f427 + 506ccb5 commit c52f93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Bitbucket/API/Repositories/BranchRestrictions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function create($account, $repo, $params = array())
6464

6565
$params = array_merge($defaults, $params);
6666

67-
if (empty($params['kind']) || !in_array($params['kind'], array('push', 'delete', 'force'))) {
67+
if (empty($params['kind']) || !in_array($params['kind'], array('push', 'delete', 'force','restrict_merges'))) {
6868
throw new \InvalidArgumentException('Invalid restriction kind.');
6969
}
7070

0 commit comments

Comments
 (0)