Skip to content

HGP-64: Add docs drift check workflow - #63

Merged
JtheGunner merged 1 commit into
mainfrom
chore/HGP-64-add-docs-drift-check-workflow
Nov 16, 2026
Merged

JtheGunner merged 1 commit into
mainfrom
chore/HGP-64-add-docs-drift-check-workflow

Conversation

@JtheGunner

Copy link
Copy Markdown
Owner

YouTrack: https://youtrack.xn--wrm-hoa.li/issue/HGP-64

Adds a warn-only doc-drift-checker check for pull requests. It reports README sections whose linked code changed while the section did not, as annotations. It never fails the job.

  • ci: add warn-only docs drift check for pull requests
    • .docdrift.yaml: documents README.md and docs/*.md; keeps the built-in ignore globs and adds CHANGELOG.md, LICENSE and CONTRIBUTING.md.
    • .github/workflows/docs-drift.yml: runs on pull_request only, permissions: contents: read, actions pinned to commit SHAs, tool installed with go install ...@v0.2.3, base branch passed through env:.

Test plan

  • Ran check --base main locally on the branch: no drift, exit 0. Parsed both YAML files.
  • Reviewer: confirm the docs-drift job runs on this PR, stays green and shows no annotations on this diff. Then change a file named in a README section without touching the section and confirm a warning annotation appears.

Report README sections whose linked code changed while the section did not.
The job only annotates the pull request and never fails it, so the output can
settle before it becomes a gate. The config lists the built-in ignore globs
again because a present ignore key replaces them, and adds the changelog,
license and contributing files, which are documentation rather than code.
@JtheGunner
JtheGunner merged commit cf56b81 into main Nov 16, 2026
4 checks passed
@JtheGunner
JtheGunner deleted the chore/HGP-64-add-docs-drift-check-workflow branch November 16, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant