Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
Diffstat API is not working for commits on pull requests with status Open and with "project maintainer" username/repository in the URL - it will respond with a 404 (NOT FOUND)
Take this public repository for example:
https://api.bitbucket.org/1.0/repositories/atlassian/jiraconnect-ios/changesets/623dd28c5dc2810adbec42c2e960ea95f83ed18b/diffstat (does not work)
https://api.bitbucket.org/1.0/repositories/jdevenny/jiraconnect-ios-doco/changesets/623dd28c5dc2810adbec42c2e960ea95f83ed18b/diffstat (works perfectly)
For Merged and Declined pull requests though, either "project maintainer" or "developer" username/repository in the URL works fine. Take this declined pull request commit for example:
https://api.bitbucket.org/1.0/repositories/atlassian/jiraconnect-ios/changesets/97e351c369976d4dd6f84dcddc021871420fe0c4/diffstat (works perfectly)
https://api.bitbucket.org/1.0/repositories/booiiing/jiraconnect-ios/changesets/97e351c369976d4dd6f84dcddc021871420fe0c4/diffstat (works perfectly)