-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for build notifications using webhooks. #3671
Conversation
…ons-using-webhooks Documentation for build notifications using webhooks
docs/guides/build-notifications.rst
Outdated
@@ -1,13 +1,46 @@ | |||
Enabling Build Notifications | |||
============================ | |||
|
|||
Using Email | |||
****************** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ------
for subheadings with the same same size of the text, and should be sentence case.
You can read more about this here https://docs.readthedocs.io/en/latest/docs.html.
docs/guides/build-notifications.rst
Outdated
.. code-block:: json | ||
|
||
{ | ||
'name': project.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Json use " (double quotes).
What about putting real values here? Something like
{
"name": "Read the Docs",
"slug": "rtd",
...
}
Thanks, @stsewd for the quick review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
Left 3 small comments. After them, we could merge.
docs/guides/build-notifications.rst
Outdated
* Fill in the **Url** field under the **New Webhook Notifications** heading | ||
* Submit the form | ||
|
||
The project name, id and its bulid instance that failed will be sent to your webhook url: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mention here that this is a POST request, maybe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it doesn't send the project id, but the project slug.
"date": "2017-02-15 20:35:54", | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these extra spaces, please (just leave one).
docs/guides/build-notifications.rst
Outdated
@@ -1,13 +1,46 @@ | |||
Enabling Build Notifications | |||
============================ | |||
|
|||
Using Email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentence case here: Using email
also Using webhook
docs/guides/build-notifications.rst
Outdated
* 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little typo here its bulid
-> its build
@stsewd, I have made the suggested changes. Hoping that this can be merged now : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These updates look great! I added some copyedit changes to grammar etc.
docs/guides/build-notifications.rst
Outdated
|
||
* 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 when your builds fail! | ||
You should now get notified on your email when your builds fail! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'on your' -> 'by'
docs/guides/build-notifications.rst
Outdated
Using webhook | ||
------------- | ||
|
||
Read the Docs also allows webhooks configuration to receive notification regarding builds fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be simplified to 'Read the Docs can also send webhooks when builds fail.'
docs/guides/build-notifications.rst
Outdated
|
||
Read the Docs also allows webhooks configuration to receive notification regarding builds fails. | ||
|
||
Take these steps to enable build notifications using webhook: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'using webhook' -> 'using a webhook'
docs/guides/build-notifications.rst
Outdated
|
||
Take these steps to enable build notifications using webhook: | ||
|
||
* Going to **Admin > Notifications** in your project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Going to' -> 'Go to'
docs/guides/build-notifications.rst
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Url' -> 'URL'
docs/guides/build-notifications.rst
Outdated
* 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'its build instance' could be slightly clearer as 'details for the build'
also: 'url' -> 'URL'
Thanks, @agjohnson for the review. I have made changes as you suggested. |
@agjohnson, @humitos, @stsewd, Any new changes or suggestion regarding this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
All the requested changed from @agjohnson were already done. So, I'm merging this PR. Thanks for your contribution @aasis21! |
Regarding #3670