Details
-
Suggestion
-
Resolution: Fixed
Description
Hello,
Is there any way in the new API 2.0 or Web-hooks components to get a list of the files which were actually added/modified/deleted in a commit (or in all commits which were pushed)?
The reason I'm asking is because I need to know how I can modify my BitBucket Sync project to work with the new API. BitBucket Sync is a lightweight PHP script, designed to run on a web-server, which can deploy repository files to the web-server as they are pushed to specific branches. Think of it as a super-lightweight CI server, which uses nothing but hooks and API calls to keep an web-site updated with what's in the BitBucket repository.
Now, a few words about how this script works: in order to reduce deployment time and bandwidth, the script copies over (from BitBucket to the web-server)* only those files which were ADDED and UPDATED* (instead of getting a zip with the entire repository content at each push).
In order for this to work, the script needs to know the list of files changed in each commit; and this information, unfortunately, is not available anymore in the new API.
Is there any chance to include this piece of info in the new Web-hooks? If not, is there (or will there be) any API call to give me this info? Without it, the BitBucket Sync script would be pointless...
Let me know if you need more information.
Thanks in advance!
Alex
The BitBucket Sync script can be accessed here: https://bitbucket.org/alixandru/bitbucket-sync\\
Discussion about this has also been started here: https://confluence.atlassian.com/display/BITBUCKET/Event+Payloads?focusedCommentId=774045711&#comment-774045711