Skip to content

PORTW-32: Adopt doc-drift-checker for README drift on pull requests - #32

Merged
JtheGunner merged 3 commits into
mainfrom
chore/PORTW-32-adopt-doc-drift-checker
Nov 15, 2026
Merged

JtheGunner merged 3 commits into
mainfrom
chore/PORTW-32-adopt-doc-drift-checker

Conversation

@JtheGunner

Copy link
Copy Markdown
Owner

YouTrack: https://youtrack.xn--wrm-hoa.li/issue/PORTW-32

Adds a warn-only CI job that runs doc-drift-checker (pinned to v0.2.2) on pull requests and reports README sections whose linked code changed while the section did not.

  • .docdrift.yaml: README as the checked doc, the built-in ignore list repeated (a present ignore key replaces it) plus CHANGELOG.md, LICENSE and .github/**, and mappings for the Flags and Stopping safely sections.
  • The Exit codes section is deliberately not mapped: internal/cli/run.go changes with almost every feature and would report drift on changes that leave the exit codes untouched.
  • ci.yaml: new drift job, pull requests only, fetch-depth 0, base branch passed through env, --warn-only.
  • README and CLAUDE.md: short notes.

Commits:

  • ci: adopt doc-drift-checker for README drift on pull requests
  • ci: explain why the drift job uses the stable Go toolchain

Test plan: go vet, go build, go test and golangci-lint are clean. Locally, doc-drift-checker links shows the two mapped sections linked and Exit codes unmapped, and check --base main reports no drift. The new drift job should appear on this pull request and pass with no annotations.

Independent review: PASS on 4c9781c.

Adds a warn-only drift job pinned to doc-drift-checker v0.2.2 and a .docdrift.yaml that maps the Flags and Stopping safely sections. Exit codes stays unmapped on purpose: internal/cli/run.go changes with almost every feature.
@JtheGunner
JtheGunner merged commit 4b420b2 into main Nov 15, 2026
4 checks passed
@JtheGunner
JtheGunner deleted the chore/PORTW-32-adopt-doc-drift-checker branch November 15, 2026 23:15
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