aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/api-docs-check.yml
diff options
context:
space:
mode:
authorJavier López <graulopezjavier@gmail.com>2022-03-18 10:46:35 -0500
committerJavier López <graulopezjavier@gmail.com>2022-03-18 13:29:55 -0500
commit91914010252a1f5c8a3358d09c3be92f30585ee3 (patch)
tree27621423a50d0b9e0c993744c86a58cab38ad67f /.github/workflows/api-docs-check.yml
parent9e66d27d37d2260358783c043fdb636bf881e85f (diff)
downloadrneovim-91914010252a1f5c8a3358d09c3be92f30585ee3.tar.gz
rneovim-91914010252a1f5c8a3358d09c3be92f30585ee3.tar.bz2
rneovim-91914010252a1f5c8a3358d09c3be92f30585ee3.zip
ci(docs): add a check for PR's to commit their doc changes
Repurpose the api-docs workflow to also run in all PR's but work only as a check, if the changes in the PR introduce doc changes that are not committed fail. [skip ci]
Diffstat (limited to '.github/workflows/api-docs-check.yml')
-rw-r--r--.github/workflows/api-docs-check.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/api-docs-check.yml b/.github/workflows/api-docs-check.yml
new file mode 100644
index 0000000000..8ae6e6ff92
--- /dev/null
+++ b/.github/workflows/api-docs-check.yml
@@ -0,0 +1,17 @@
+name: Missing API docs
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ branches-ignore:
+ - 'marvim/api-doc-update**'
+ paths:
+ - 'src/nvim/api/*.[ch]'
+ - 'src/nvim/**.lua'
+ - 'runtime/lua/**.lua'
+
+jobs:
+ call-regen-api-docs:
+ if: github.event.pull_request.draft == false
+ uses: ./.github/workflows/api-docs.yml
+ with:
+ check_only: true