<commit_before>## Pull requests

----
Manage the comments on pull requests. Other users can reply to them. This allows for the construction of a thread of comments. 

### Prepare:
```php
$pull = new Bitbucket\API\Repositories\PullRequests();
$pull->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
```

### Get a list of a pull request comments:
```php
$pull->comments()->all($account_name, $repo_slug, 1)
```

### Get an individual pull request comment:
```php
$pull->comments()->get($account_name, $repo_slug, 1, 2)
```

### Add a new comment:
```php
$pull->comments()->create($account_name, $repo_slug, 41, "dummy content");
```

### Update an existing comment:
```php
$pull->comments()->update($account_name, $repo_slug, 41, 4, "dummy content [edited]");
```

### Delete a pull request comment
```php
$pull->comments()->delete($account_name, $repo_slug, 41, 4);
```

### Get all pull requests
```php
$pull->all($account_name, $repo_slug);
```

----

#### Related:
  * [Authentication](../authentication.md)
  * [BB Wiki](https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-Overview)<commit_msg>updated docs for PullRequests<commit_after>## Pull requests

----
Manage the comments on pull requests. Other users can reply to them. This allows for the construction of a thread of comments. 

### Prepare:
```php
$pull = new Bitbucket\API\Repositories\PullRequests();
$pull->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
```

### Get all pull requests
```php
$pull->all($account_name, $repo_slug);
```

### Get all merged pull requests
```php
$pull->all($account_name, $repo_slug, array('state' => 'merged'));
```

### Get a list of a pull request comments:
```php
$pull->comments()->all($account_name, $repo_slug, 1)
```

### Get an individual pull request comment:
```php
$pull->comments()->get($account_name, $repo_slug, 1, 2)
```

### Add a new comment:
```php
$pull->comments()->create($account_name, $repo_slug, 41, "dummy content");
```

### Update an existing comment:
```php
$pull->comments()->update($account_name, $repo_slug, 41, 4, "dummy content [edited]");
```

### Delete a pull request comment
```php
$pull->comments()->delete($account_name, $repo_slug, 41, 4);
```

----

#### Related:
  * [Authentication](../authentication.md)
  * [BB Wiki](https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-Overview)
{'fraction_non_alphanumeric': 0.19261962692619627, 'fraction_numerical': 0.008921330089213302, 'mean_word_length': 5.649595687331536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3607950', 'n_tokens_mistral': 829, 'n_tokens_neox': 781, 'n_words': 212}