<commit_before>Enabling Build Notifications
============================

Using email
-----------

Read the Docs allows you to configure emails that can be sent on failing builds.
This makes sure you know when your builds have failed.

Take these steps to enable build notifications using email:

* Going to **Admin > Notifications** in your project.
* Fill in the **Email** field under the **New Email Notifications** heading
* Submit the form

You should now get notified on your email when your builds fail!

Using webhook
-------------

Read the Docs also allows webhooks configuration to receive notification regarding builds fails.

Take these steps to enable build notifications using webhook:

* Going to **Admin > Notifications** in your project.
* Fill in the **Url** field under the **New Webhook Notifications** heading
* Submit the form

The project name, slug and its bulid instance that failed will be sent as POST request to your webhook url:

.. code-block:: json
       
       {       
            "name": "Read the Docs",
            "slug": "rtd",
            "build": {
                "id": 6321373,
                "success": false,
                "date": "2017-02-15 20:35:54",
            }
       }

You should now get notified on your webhook when your builds fail!<commit_msg>corrected typo<commit_after>Enabling Build Notifications
============================

Using email
-----------

Read the Docs allows you to configure emails that can be sent on failing builds.
This makes sure you know when your builds have failed.

Take these steps to enable build notifications using email:

* Going to **Admin > Notifications** in your project.
* Fill in the **Email** field under the **New Email Notifications** heading
* Submit the form

You should now get notified on your email when your builds fail!

Using webhook
-------------

Read the Docs also allows webhooks configuration to receive notification regarding builds fails.

Take these steps to enable build notifications using webhook:

* Going to **Admin > Notifications** in your project.
* Fill in the **Url** field under the **New Webhook Notifications** heading
* Submit the form

The project name, slug and its build instance that failed will be sent as POST request to your webhook url:

.. code-block:: json
       
       {       
            "name": "Read the Docs",
            "slug": "rtd",
            "build": {
                "id": 6321373,
                "success": false,
                "date": "2017-02-15 20:35:54",
            }
       }

You should now get notified on your webhook when your builds fail!
{'fraction_non_alphanumeric': 0.10715652506697283, 'fraction_numerical': 0.016073478760045924, 'mean_word_length': 2.7130681818181817, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4105188', 'n_tokens_mistral': 686, 'n_tokens_neox': 643, 'n_words': 330}