Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-07-17 12:37:37 +0300
committerSean McGivern <sean@gitlab.com>2018-07-17 12:37:37 +0300
commit35d2a058e574546fadb2ccf85132a777b20360c1 (patch)
tree78324e54a2a8f4efbc969980ab168b3b74e9b077 /doc
parent25664f89acc1f25228e97a5169f0e7255124df2a (diff)
Clarify web hook image rewriting doc example
Diffstat (limited to 'doc')
-rw-r--r--doc/user/project/integrations/webhooks.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/user/project/integrations/webhooks.md b/doc/user/project/integrations/webhooks.md
index 9bd4dbd7631..8e486318980 100644
--- a/doc/user/project/integrations/webhooks.md
+++ b/doc/user/project/integrations/webhooks.md
@@ -1139,14 +1139,14 @@ in webhooks. So if an image, merge request, comment, or wiki page has this in
its description:
```markdown
-![image](/uploads/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/image.png)
+![image](/uploads/$sha/image.png)
```
It will appear in the webhook body as the below (assuming that GitLab is
installed at gitlab.example.com):
```markdown
-![image](https://gitlab.example.com/uploads/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/image.png)
+![image](https://gitlab.example.com/uploads/$sha/image.png)
```
This will not rewrite URLs that already are pointing to HTTP, HTTPS, or