-
Notifications
You must be signed in to change notification settings - Fork 2
get_commits() support #770
Copy link
Copy link
Open
Labels
Description
Part of #754.
Implement get_commits() for BitBucket Cloud:
- Retrieve commits via
GET /2.0/repositories/{workspace}/{repo_slug}/commits. - BitBucket does not support date-range filtering on the commits endpoint — implement client-side filtering by paginating and stopping when commits fall outside the
sincewindow. - Map commit data to the standard
gitstats_commitstable:id,committed_date,author,author_login,author_name,additions,deletions,repo_name,organization,repo_url,api_url. - Note: BitBucket commit responses don't include
additions/deletionsinline (requires a separate diffstat call). Initially set toNA; a follow-up can add diffstat support. - Unit tests with mocked API responses.
Reactions are currently unavailable