Auto-generate preview links for DOC PRs (#139593)

This commit is contained in:
Lisa Cawley 2022-09-01 08:02:33 -07:00 committed by GitHub
parent f0cf292b4b
commit 5ea3838109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 3 deletions

View file

@ -0,0 +1,26 @@
name: Docs Preview Links
on:
pull_request_target:
types: [opened]
paths:
- '**.asciidoc'
jobs:
doc-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
name: Add doc preview links
with:
script: |
const pr = context.payload.pull_request;
const comment = `Documentation preview:
- ✨ [Changed pages](https://${context.repo.repo}_${pr.number}.docs-preview.app.elstc.co/diff)`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment,
});

View file

@ -2,7 +2,7 @@
[[xpack-security-audit-logging]]
=== Audit logs
Audit logging is a https://www.elastic.co/subscriptions[subscription feature] that you can enable to keep track of security-related events,
Audit logging is a {subscriptions}[subscription feature] that you can enable to keep track of security-related events,
such as authorization success and failures. Logging these events enables you to monitor {kib} for suspicious activity and provides evidence
in the event of an attack.
@ -410,7 +410,7 @@ Example: `[marketing]`
Example: `get`, `post`, `put`, `delete`
| `url.domain`
| Domain of the url.
| Domain of the URL.
Example: `www.elastic.co`
@ -440,7 +440,7 @@ Example: `https`
| *Description*
| [[field-trace-id]] `trace.id`
| Unique identifier allowing events of the same transaction from {kib} and {es} to be be correlated.
| Unique identifier allowing events of the same transaction from {kib} and {es} to be correlated.
|======