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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bitbucket-hook-diffstat-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e302a25622d0c538afea9d60c96625328f6295f8ad8746a7f39887e6ec93082e |
|
MD5 | 779de696074e3a10de8d1d99772ae85b |
|
BLAKE2b-256 | 2b5851fa0fe0708e3d4f1e32a4bd0b016b7bf0ca075d19214980994c14131012 |
Hashes for bitbucket_hook_diffstat-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f243ef286784e69a25d2eb3858db1b2bc440f9ae913a23382eaf5a21b30aabd |
|
MD5 | ed4fcaa9962a84264a57214db1a90243 |
|
BLAKE2b-256 | 266186ea0b99425270584e6cfcf496154323a301daee074882259475c6a29f0f |