Posts

Showing posts from February, 2019

Watch files for changes in Bitbucket

Image
I am porting a large enterprise web application written in Knockout.js to Angular 2+ . Some complex pages (with large amount of dependencies and business logic)  might take weeks to complete.  Dozens of developers constantly updating the app by adding new features or modifying the existing functionality. Freezing the pieces of the code I am working with (so no-one would apply any change), until I complete my task is ruled out. So I have to keep an eye for the changes to the files I am working with.  Checking the repository manually is not the option so I’ve created the open source “Bitbucket Repo Watcher” ( https://github.com/Havrl/bitbucket-repo-watcher ). Basically it is a Node.js application that checks periodically (using BitBucket API ) the most recent commits and send email notifications when specific folders / files modified. Below is how it works. The app is making a number of pre-configured paginated requests, which return the collection of the most