Repository navigation
HGP-64: Add docs drift check workflow - #63
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: documentsREADME.mdanddocs/*.md; keeps the built-in ignore globs and addsCHANGELOG.md,LICENSEandCONTRIBUTING.md..github/workflows/docs-drift.yml: runs onpull_requestonly,permissions: contents: read, actions pinned to commit SHAs, tool installed withgo install ...@v0.2.3, base branch passed throughenv:.Test plan
check --base mainlocally on the branch: no drift, exit 0. Parsed both YAML files.docs-driftjob 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.