mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Auto-generate preview links for DOC PRs (#139593)
This commit is contained in:
parent
f0cf292b4b
commit
5ea3838109
2 changed files with 29 additions and 3 deletions
26
.github/workflows/docs-preview-links.yml
vendored
Normal file
26
.github/workflows/docs-preview-links.yml
vendored
Normal 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,
|
||||
});
|
|
@ -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.
|
||||
|
||||
|======
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue