We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03a8b8 commit 2ad59baCopy full SHA for 2ad59ba
.github/workflows/vale-linting.yml
@@ -1,26 +1,24 @@
1
name: Vale Documentation Linting
2
3
on:
4
- pull_request_target: # ← This is the key change
5
- types: [opened, synchronize, reopened]
+ pull_request:
6
paths:
7
- '**.md'
8
- '**.adoc'
9
10
permissions:
11
contents: read
12
- pull-requests: write
+ pull-requests: write # Required for posting PR comments
13
14
jobs:
15
vale:
16
runs-on: ubuntu-latest
17
steps:
18
- - name: Checkout PR branch
+ - name: Checkout
19
uses: actions/checkout@v5
20
with:
21
- ref: ${{ github.event.pull_request.head.sha }} # ← Checkout the PR's code
22
fetch-depth: 0
23
-
+
24
- name: Run Elastic Vale Linter
25
uses: elastic/vale-rules@main
26
0 commit comments