Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.24 KB

File metadata and controls

58 lines (42 loc) · 1.24 KB

python-webhook

This-repo-has-N-stars python-webhook version.

Environment

name description value
GITHUB_TOKEN GitHub Token Required
WEBHOOK_SECRET Website Secret Required
REPO_URL Repo URL Required
PORT Websocket Port Optional @default: 3000

Settings

  1. create a new webhook in settings -> Webhooks -> add webhook
  2. set Payload URL to <Your Webhook Server URL>
  3. set Content type to application/json
  4. set Secret to any string
  5. set Which events would you like to trigger this webhook? to Let me select individual events. then select Stars
  6. set environments

Start

pipenv:

pipenv install
pipenv shell
python -m python-webhook

venv:

python -m venv env
source env/bin/activate # or windows: env\Scripts\activate
pip install -r requirements.txt
python -m python-webhook

docker:

docker build -d -t This-repo-has-N-stars-python-webhook . --no-cache

Developer

pipenv install --dev