Repository navigation
51 lines (48 loc) · 1.76 KB
/
Copy pathdocs_drift_check.yml
File metadata and controls
51 lines (48 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Docs Drift Check"
# Advisory docs review through the shared relay and central AI worker.
# Model credentials stay in the central repo. The worker maintains needs-docs
# and one sticky PR comment using .claude/agents/docs-drift-reviewer.md.
#
# The worker reads the rubric from the trusted PR base. A missing base rubric
# is a no-op, so this installation PR cannot validate the new rubric.
# Later pushes can clear a finding once the affected docs are updated.
#
# Automatic fork and Dependabot checks are skipped. Maintainers can dispatch
# a reviewed PR manually, including a fork, with its PR number.
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
# Cover shipped client behavior, consumer build configuration, and docs.
# The rubric decides whether these changes actually require a docs edit.
paths:
- "clickhouse/**"
- "CMakeLists.txt"
- "cmake/**"
- "BUILD.bazel"
- "MODULE.bazel"
- "docs/**"
- "examples/**"
- "**/*.md"
- ".github/workflows/docs_drift_check.yml"
workflow_dispatch:
inputs:
pr_number:
description: "PR number to check"
required: true
type: string
permissions:
pull-requests: read
jobs:
docs-drift:
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]')
uses: ClickHouse/integrations-shared-workflows/.github/workflows/claude-docs-drift.yml@main
with:
pr_number: ${{ github.event.inputs.pr_number }}
secrets:
WORKFLOW_AUTH_PUBLIC_APP_ID: ${{ secrets.WORKFLOW_AUTH_PUBLIC_APP_ID }}
WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY: ${{ secrets.WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY }}