Skip to content

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.

Notifications You must be signed in to change notification settings

niceunderground/GitBotAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitbucket Repository Update Monitor

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.

Features

  • Continuous monitoring of Bitbucket repository
  • Sound notification when an update is detected
  • Display of update timestamps

Prerequisites

  • Node.js (version 14 or higher)
  • npm (Node Package Manager)
  • Bitbucket account and access token

Installation

  1. Clone the repository:
git clone https://github.com/niceunderground/GitBotAlert
  1. Install dependencies:
npm install
  1. 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 

Configuration

The script requires the following packages:

  • node-fetch
  • dotenv
  • sound-play

Usage

To start monitoring:

node start.js

Customization

  • 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)

License

MIT

Author

niceunderground

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published