<commit_before># drone-slack
Drone plugin for sending Slack notifications


## Overview

This plugin is responsible for sending build notifications to your Slack channel:

```sh
./drone-slack <<EOF
{
    "repo" : {
        "host": "github.com",
        "owner": "foo",
        "name": "bar"
    },
    "commit" : {
        "status": "Success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "sha": "9f2849d5",
        "branch": "master",
        "pull_request": "800",
        "author": "<EMAIL>",
        "message": "Update the Readme"
    },
    "links" : {
        "repo_url": "https://drone.io/github.com/drone/drone",
        "commit_url": "https://drone.io/github.com/drone/drone/master/436b7a6e2abaddfd35740527353e78a227ddcb2c"
	},
    "vargs": {
        "webhook_url": "https://hooks.slack.com/services/...",
        "username": "drone", 
        "channel": "#dev"
    }
}
EOF
```

## Docker

Build the Docker container:

```sh
docker build -t drone-plugins/drone-slack .
```

Send a Slack notification:

```sh
docker run -i drone-plugins/drone-slack <<EOF
{
    "repo" : {
        "host": "github.com",
        "owner": "foo",
        "name": "bar"
    },
    "commit" : {
        "status": "Success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "sha": "9f2849d5",
        "branch": "master",
        "pull_request": "800",
        "author": "<EMAIL>",
        "message": "Update the Readme"
    },
    "clone" : {
        "branch": "master",
        "remote": "git://github.com/drone/drone",
        "dir": "/drone/src/github.com/drone/drone",
        "ref": "refs/heads/master",
        "sha": "436b7a6e2abaddfd35740527353e78a227ddcb2c"
    },
    "config": {
        webhook_url: 'https://hooks.slack.com/services/...',
        username: drone, 
        channel: #dev
    }
}
EOF
```<commit_msg>fix json formatting in README<commit_after># drone-slack
Drone plugin for sending Slack notifications


## Overview

This plugin is responsible for sending build notifications to your Slack channel:

```sh
./drone-slack <<EOF
{
    "repo" : {
        "host": "github.com",
        "owner": "foo",
        "name": "bar"
    },
    "commit" : {
        "status": "Success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "sha": "9f2849d5",
        "branch": "master",
        "pull_request": "800",
        "author": "<EMAIL>",
        "message": "Update the Readme"
    },
    "links" : {
        "repo_url": "https://drone.io/github.com/drone/drone",
        "commit_url": "https://drone.io/github.com/drone/drone/master/436b7a6e2abaddfd35740527353e78a227ddcb2c"
    },
    "vargs": {
        "webhook_url": "https://hooks.slack.com/services/...",
        "username": "drone", 
        "channel": "#dev"
    }
}
EOF
```

## Docker

Build the Docker container:

```sh
docker build -t drone-plugins/drone-slack .
```

Send a Slack notification:

```sh
docker run -i drone-plugins/drone-slack <<EOF
{
    "repo" : {
        "host": "github.com",
        "owner": "foo",
        "name": "bar"
    },
    "commit" : {
        "status": "Success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "sha": "9f2849d5",
        "branch": "master",
        "pull_request": "800",
        "author": "<EMAIL>",
        "message": "Update the Readme"
    },
    "links" : {
        "repo_url": "https://drone.io/github.com/drone/drone",
        "commit_url": "https://drone.io/github.com/drone/drone/master/436b7a6e2abaddfd35740527353e78a227ddcb2c"
    },
    "vargs": {
        "webhook_url": "https://hooks.slack.com/services/...",
        "username": "drone", 
        "channel": "#dev"
    }
}
EOF
```
{'fraction_non_alphanumeric': 0.1817692928206507, 'fraction_numerical': 0.05592901317558484, 'mean_word_length': 2.3007985803016857, 'pattern_counts': {'":': 68, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5023533', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1329, 'n_words': 254}