Skip to main content

No project description provided

Project description

Bitbucket hook diffstat

Overview

This is a simple webhook handler for Bitbucket repository push events.

It processes branch update and branch create events and extracts the file paths which were changed in that event. In case of branch update event get's the changset between current HEAD of the branch and the previous HEAD of that branch. In case if branch is created it get's the changset between current HEAD of the branch and HEAD of main branch of the repository.

Usage

Set following environment variables:

BITBUCKET_PROJECT_SLUG
BITBUCKET_REPO_SLUG
BITBUCKET_USER
BITBUCKET_PASSWORD

Where BITBUCKET_PASSWORD is an "app password" and BITBUCKET_USER is available as "Username" in Bitbucket profile settings.

Replace or enhance class Handler with your custom logic to trigger some custom CI pipelines for example.

Host it somewhere

Create the PUSH webhook trigger in your Bitbucket repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitbucket-hook-diffstat-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

bitbucket_hook_diffstat-0.1.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page