<commit_before># dokku-webhooks

dokku-webhooks is a plugin for [dokku](https://github.com/progrium/dokku) that
triggers external [webhooks](https://en.wikipedia.org/wiki/Webhook) in response
to build/deployment stages.

## Installation

    git clone https://github.com/nickstenning/dokku-webhooks.git /var/lib/dokku/plugins/webhooks

## Configuration

Add a webhook:

    dokku webhooks:add https://example.com/my/webhook

Remove a webhook:

    dokku webhooks:remove https://example.com/my/webhook

List all installed webhooks:

    dokku webhooks

## Hooks

Each webhook endpoint is sent an HTTP POST request with a standard
`application/x-www-form-urlencoded` POST payload, the contents of which depend
on which stage of deployment has been reached.

### `receive-app`

This hook is triggered at the very start of a deployment, when dokku starts
receiving data pushed to git.

Param            | Example value                                | Description
---------------- | -------------------------------------------- | ---------------------------------------
`action`         | `receive-app`                                | The name of the current action.
`app`            | `mywebapp`                                   | The name of the app being deployed.
`git_rev`        | `ade8218956d4a744ca42f872700384124edf015b`   | The git revision being deployed.
`git_rev_before` | `0000000000000000000000000000000000000000`   | The git revision currently deployed, or
                 |                                              | `0{40}` if this is the first deploy.

### `post-deploy`

This hook is triggered at the very end of a successful deployment.

Param            | Example value                         | Description
---------------- | ------------------------------------- | ----------------------------------------------
`action`         | `receive-app`                         | The name of the current action.
`app`            | `mywebapp`                            | The name of the app that has deployed.
`internal_ip`    | `127.0.0.1`                           | The internal IP on which the app is listening.
`internal_port`  | `49152`                               | The internal port on which the app is listening.
`url`            | `https://mywebapp.dokku.example.com`  | The public URL of the deployed app.

## License

This free software is released under the MIT license, a copy of which can be
found in `LICENSE`.<commit_msg>Tweak table display<commit_after># dokku-webhooks

dokku-webhooks is a plugin for [dokku](https://github.com/progrium/dokku) that
triggers external [webhooks](https://en.wikipedia.org/wiki/Webhook) in response
to build/deployment stages.

## Installation

    git clone https://github.com/nickstenning/dokku-webhooks.git /var/lib/dokku/plugins/webhooks

## Configuration

Add a webhook:

    dokku webhooks:add https://example.com/my/webhook

Remove a webhook:

    dokku webhooks:remove https://example.com/my/webhook

List all installed webhooks:

    dokku webhooks

## Hooks

Each webhook endpoint is sent an HTTP POST request with a standard
`application/x-www-form-urlencoded` POST payload, the contents of which depend
on which stage of deployment has been reached.

### `receive-app`

This hook is triggered at the very start of a deployment, when dokku starts
receiving data pushed to git.

Param            | Example value                                | Description
---------------- | -------------------------------------------- | ---------------------------------------
`action`         | `receive-app`                                | The name of the current action.
`app`            | `mywebapp`                                   | The name of the app being deployed.
`git_rev`        | `ade8218956d4a744ca42f872700384124edf015b`   | The git revision being deployed.
`git_rev_before` | `0000000000000000000000000000000000000000`   | The git revision currently deployed, or `0{40}` if this is the first deploy.

### `post-deploy`

This hook is triggered at the very end of a successful deployment.

Param            | Example value                         | Description
---------------- | ------------------------------------- | ----------------------------------------------
`action`         | `receive-app`                         | The name of the current action.
`app`            | `mywebapp`                            | The name of the app that has deployed.
`internal_ip`    | `127.0.0.1`                           | The internal IP on which the app is listening.
`internal_port`  | `49152`                               | The internal port on which the app is listening.
`url`            | `https://mywebapp.dokku.example.com`  | The public URL of the deployed app.

## License

This free software is released under the MIT license, a copy of which can be
found in `LICENSE`.
{'fraction_non_alphanumeric': 0.15650741350906094, 'fraction_numerical': 0.03377265238879736, 'mean_word_length': 1.6908587257617729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2573598', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1231, 'n_words': 437}