Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions atlassian/bitbucket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,14 +1577,7 @@
return f"{self._url_repo(project_key, repository_slug)}/pull-requests"

def get_pull_requests(
self,
project_key,
repository_slug,
state="OPEN",
order="newest",
limit=100,
start=0,
at=None,
self, project_key, repository_slug, state="OPEN", order="newest", limit=100, start=0, at=None, filter_text=None
):
"""
Get pull requests
Expand All @@ -1596,6 +1589,8 @@
:param limit:
:param start:
:param at:
:param filter_text: (optional) If specified, only pull requests where the title or description
contains the supplied string will be returned.
:return:
"""
url = self._url_pull_requests(project_key, repository_slug)
Expand All @@ -1610,6 +1605,8 @@
params["order"] = order
if at:
params["at"] = at
if filter_text:
params["filterText"] = filter_text

Check warning on line 1609 in atlassian/bitbucket/__init__.py

View check run for this annotation

Codecov / codecov/patch

atlassian/bitbucket/__init__.py#L1609

Added line #L1609 was not covered by tests
return self._get_paged(url, params=params)

def get_required_reviewers_for_pull_request(
Expand Down