Django module
Project description
Small Django APP for managing Bitbucket or Github webhooks
Tested on Python 2.7 and 3.4, with Django 1.7, 1.8 and 1.9. The minimum version of Django that covers this APP is 1.7, there began the maintenance of JsonResponse
How to Install
pip install django-bitbucket-hook
Add django_bitbucket_hook to INSTALLED_APPS in your settings.py
Run ./manage.py migrate
Add url(r'^hook/', include('django_bitbucket_hook.urls'))
In the admin panel you will find fields for Hook
Fields
Name - The name of the hook
User - User created repository ( Example: https://github.com/Kras4ooo/django-bitbucket-hook/ -> Kras4ooo )
Repo - The name of the repo ( Example: https://github.com/Kras4ooo/django-bitbucket-hook/ -> django-bitbucket-hook )
Path - Full path to the script to be executed ( Example: /home/test/test-repo/execute-script.sh )
Branch - Which branch to be monitored ( Example: dev, master, test, stage …etc )
Go to set up your Webhook
If everything is okay you will get the following response in Webhook ({'success': True})
Examples URLS
http[s]://domain/hook -> Gets the Hook that corresponds to the user name, and repo name
http[s]://domain/hook/name -> Gets the hook that fits the following name
http[s]://domain/hook/name/branch -> Gets the Hook which has the same name and branch of the 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
Built Distributions
File details
Details for the file django-bitbucket-hook-1.2.6.tar.gz
.
File metadata
- Download URL: django-bitbucket-hook-1.2.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8cc61eb397b362de67b31c76c8c084f1dd38b022ca2f897afb9ff03f0c8c8b7 |
|
MD5 | eb341bfe053a673c64fbec85a909794f |
|
BLAKE2b-256 | ab511a4920b7dc306f6409c734a07daac50f2d6ecde72032f067a029214e731b |
File details
Details for the file django_bitbucket_hook-1.2.6-py3-none-any.whl
.
File metadata
- Download URL: django_bitbucket_hook-1.2.6-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f91d25a8fc99b38a3b1c8052024ed8461190ded3c918aae49e124458cb98d8a |
|
MD5 | dee922b61d929ec9acfaad2999a0a623 |
|
BLAKE2b-256 | 784e08e69a7c57d58b2e20b060cd16dda34879b954a32231fabd1482f85af1f8 |
File details
Details for the file django_bitbucket_hook-1.2.6-py2-none-any.whl
.
File metadata
- Download URL: django_bitbucket_hook-1.2.6-py2-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 597b6d8a85bec1cacb454845b6c71d123e3033866ae6a7a4acb8da7842c92c02 |
|
MD5 | caeaf8a7e08dd4c6a1d59da7f13795f0 |
|
BLAKE2b-256 | 853f7b20f04090ecc22b4a6aba3124f92f0cb3dd614d8b0be50b1d608fc28625 |