webhooks/gogs: Update text to conform to doc style guide.

This commit is contained in:
Eeshan Garg
2018-03-07 17:56:10 -03:30
committed by Rishi Gupta
parent 88a198041a
commit 12396dd39b
7 changed files with 12 additions and 33 deletions

View File

@@ -1,40 +1,19 @@
{!create-stream.md!}
Receive Gogs notifications in Zulip!
However, the integration will use the default stream `commits`
if no stream is supplied in the hook; you still need to
[create the stream](../help/create-a-stream) even if you are
using this default.
1. {!create-stream.md!}
{!create-bot-construct-url.md!}
1. {!create-bot-construct-url-indented.md!}
{!git-webhook-url-with-branches.md!}
{!git-webhook-url-with-branches-indented.md!}
Next, go to your repository page and click **Settings**:
1. Go to your repository on Gogs and click on **Settings**. Select
**Webhooks** on the left sidebar, and click **Add Webhook**.
Select **Gogs**.
![](/static/images/integrations/gogs/001.png)
On the **Settings** page, select the **Webhooks** link on the
left sidebar:
![](/static/images/integrations/gogs/002.png)
Click the **Add Webhook** button and then select the **Gogs**
option from the dropdown that appears.
![](/static/images/integrations/gogs/003.png)
Authorize yourself and configure your webhook.
In the **Payload URL** field, enter the URL created above.
Then, set **Content type** to **application/json**.
Next, select the events that you want to trigger Zulip
notifications. After you have selected all the desired events,
click the **Add Webhook** button.
![](/static/images/integrations/gogs/004.png)
1. Set **Payload URL** to the URL constructed above. Set **Content type**
to `application/json`. Select the events you would like to receive
notifications for, and click **Add Webhook**.
{!congrats.md!}
![](/static/images/integrations/gogs/005.png)
![](/static/images/integrations/gogs/001.png)