Skip to content

[Bitbucket] Repository Get Commits parameter addition for path #1457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024
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
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 @@
limit=None,
until=None,
since=None,
path=None,
):
"""
Get commit list from repo
Expand All @@ -2347,6 +2348,7 @@
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 @@
params["since"] = since
if until:
params["until"] = until
if path:
params["path"] = path

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

View check run for this annotation

Codecov / codecov/patch

atlassian/bitbucket/__init__.py#L2379

Added line #L2379 was not covered by tests
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