Problem
With the growing use of AI tools among contributors, there is a risk of
documentation changes being submitted without ever being run or verified
locally. This can lead to broken or incorrect documentation slipping
through during review, and puts unnecessary burden on maintainers to
catch these issues manually.
Proposed Solution
Make it mandatory for contributors to attach a screenshot or short screen
recording whenever a PR includes documentation changes. This ensures:
- The contributor has actually run the docs locally before submitting
- Reviewers can do a quick visual check before diving into the code
- Low-effort or AI-generated doc PRs are easier to catch and reject early
Implementation Plan
1. CI Check — Blocks Merge if No Media Attached
Create .github/workflows/docs-media-check.yml
A GitHub Actions workflow that:
- Triggers on every PR open, edit, or sync
- Detects if any
docs/ or .md / .mdx files were changed
- Scans the PR description for an image or video attachment
- Fails the CI check if doc files are changed but no media is found
- Passes and allows merge if media is attached
This is the core enforcement mechanism — no screenshot/video means
the PR cannot be merged.
2. Bot Comment — Guides Contributors Automatically
Create .github/workflows/docs-pr-comment.yml
A GitHub Actions bot that:
- Triggers when a doc-related PR is opened
- Posts an automatic comment tagging the contributor
- Explains the screenshot/video requirement clearly
- Links to the contributing guide for running docs locally
This ensures contributors understand the requirement immediately
without needing a maintainer to manually explain it.
Benefits
- Zero manual effort from maintainers to enforce this
- New contributors are guided automatically via bot comment
- Scales well as contributor count grows
- Acts as a soft filter against AI-generated or untested doc PRs
Additional Notes
This is a proactive measure to maintain documentation quality
as AI-assisted contributions become more common in open source.
The goal is not to discourage contributions, but to ensure every
doc change is actually verified before merging.
Problem
With the growing use of AI tools among contributors, there is a risk of
documentation changes being submitted without ever being run or verified
locally. This can lead to broken or incorrect documentation slipping
through during review, and puts unnecessary burden on maintainers to
catch these issues manually.
Proposed Solution
Make it mandatory for contributors to attach a screenshot or short screen
recording whenever a PR includes documentation changes. This ensures:
Implementation Plan
1. CI Check — Blocks Merge if No Media Attached
Create
.github/workflows/docs-media-check.ymlA GitHub Actions workflow that:
docs/or.md/.mdxfiles were changedThis is the core enforcement mechanism — no screenshot/video means
the PR cannot be merged.
2. Bot Comment — Guides Contributors Automatically
Create
.github/workflows/docs-pr-comment.ymlA GitHub Actions bot that:
This ensures contributors understand the requirement immediately
without needing a maintainer to manually explain it.
Benefits
Additional Notes
This is a proactive measure to maintain documentation quality
as AI-assisted contributions become more common in open source.
The goal is not to discourage contributions, but to ensure every
doc change is actually verified before merging.