A simple Node.js script that monitors a Bitbucket repository for updates and plays a notification sound when changes are detected. The script will check for updates every 10 seconds and play a sound when a change is detected in the repository.
- Continuous monitoring of Bitbucket repository
- Sound notification when an update is detected
- Display of update timestamps
- Node.js (version 14 or higher)
- npm (Node Package Manager)
- Bitbucket account and access token
- Clone the repository:
git clone https://github.com/niceunderground/GitBotAlert
- Install dependencies:
npm install
- Create a
.env
file in the project root with:
BITBUCKET_TOKEN= Your Bitbucket access token
WORKSPACE= Your Bitbucket workspace name
REPOSITORY= The repository name to monitor
The script requires the following packages:
- node-fetch
- dotenv
- sound-play
To start monitoring:
node start.js
- The notification sound file can be replaced by modifying the path in
soundFile
- The check interval can be modified by changing the value in
setInterval
(currently set to 10000ms)
MIT
niceunderground