Skip to content

Commit

Permalink
Adding path param to repository.get_commits() (atlassian-api#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-eugenea authored Sep 25, 2024
1 parent 63c4fcc commit 9b40bb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atlassian/bitbucket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,7 @@ def get_commits(
limit=None,
until=None,
since=None,
path=None,
):
"""
Get commit list from repo
Expand All @@ -2347,6 +2348,7 @@ def get_commits(
fixed system limits. Default by built-in method: None
:param until: OPTIONAL: The commit ID or ref (inclusively) to retrieve commits before
:param since: OPTIONAL: The commit ID or ref (exclusively) to retrieve commits after
:param path: OPTIONAL: An optional path to filter commits by
:return:
"""
url = self._url_commits(project_key, repository_slug)
Expand All @@ -2373,6 +2375,8 @@ def get_commits(
params["since"] = since
if until:
params["until"] = until
if path:
params["path"] = path
return self._get_paged(url, params=params)

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

0 comments on commit 9b40bb1

Please sign in to comment.