Skip to content

Commit 9628209

Browse files
authored
Adding path param to repository.get_commits()
1 parent 63c4fcc commit 9628209

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atlassian/bitbucket/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,7 @@ def get_commits(
23302330
limit=None,
23312331
until=None,
23322332
since=None,
2333+
path=None,
23332334
):
23342335
"""
23352336
Get commit list from repo
@@ -2347,6 +2348,7 @@ def get_commits(
23472348
fixed system limits. Default by built-in method: None
23482349
:param until: OPTIONAL: The commit ID or ref (inclusively) to retrieve commits before
23492350
:param since: OPTIONAL: The commit ID or ref (exclusively) to retrieve commits after
2351+
:param path: OPTIONAL: An optional path to filter commits by
23502352
:return:
23512353
"""
23522354
url = self._url_commits(project_key, repository_slug)
@@ -2373,6 +2375,8 @@ def get_commits(
23732375
params["since"] = since
23742376
if until:
23752377
params["until"] = until
2378+
if path:
2379+
params["path"] = path
23762380
return self._get_paged(url, params=params)
23772381

23782382
def get_commit_changes(self, project_key, repository_slug, hash_newest=None, merges="include", commit_id=None):

0 commit comments

Comments
 (0)