This repository has two complementary preview workflows for a gradual review process:
File: fork-preview.yml
Runs automatically in contributor forks when pushing to branches.
- Contributors can preview their changes before creating a PR
- Translation teams can review content without waiting for maintainer approval
- No setup required beyond enabling GitHub Pages
- On push to any branch in a fork (except
mainandgh-pages) - Automatically, no approval needed
https://{fork-owner}.github.io/training-kit/preview/{branch-name}/
File: pr-preview.yml
Runs when a PR is created from a fork to the main project.
- Maintainers can review the exact PR changes before merging
- Provides a canonical preview URL for discussion in the PR
- Allows fine-grained review with maintainer oversight
- On pull request events (opened, synchronize, reopened)
- Requires maintainer approval for first-time contributors
- Only for PRs from forks (not internal PRs)
https://{fork-owner}.github.io/training-kit/pr-{number}/
- Contributor: Fork the repository
- Contributor: Create a branch and push changes
- Contributor: Review at
https://{fork-owner}.github.io/training-kit/preview/{branch}/ - Contributor: Iterate on changes, preview updates automatically
- Contributor: Share fork preview URL with translation team/reviewers
- Team: Discuss and suggest changes using the fork preview
- Contributor: Make adjustments based on feedback
- Team: Approve when ready for formal PR
- Contributor: Create PR to main project
- Maintainer: Approve workflow run (first-time contributors only)
- Workflow: Deploys to
https://{fork-owner}.github.io/training-kit/pr-{number}/ - Maintainer & Team: Final review using PR preview URL
- Maintainer: Approve and merge when ready
| Feature | Fork Preview | PR Preview |
|---|---|---|
| Trigger | Push to fork branch | PR from fork |
| Approval needed | No | Yes (first-time) |
| URL pattern | /preview/{branch}/ |
/pr-{number}/ |
| Best for | Self-review, team discussion | Maintainer review |
| Setup | Enable Pages only | Enable Pages + PAT |
| When to use | During development | After PR created |
- ✅ Instant feedback without waiting for approval
- ✅ Iterate quickly on changes
- ✅ Share previews with translation teams
- ✅ Submit PR only when ready
- ✅ Review already-vetted content
- ✅ Control workflow execution for security
- ✅ Canonical PR preview URL for discussion
- ✅ Less time spent on back-and-forth
- ✅ Review translations in context before PR
- ✅ No technical knowledge needed
- ✅ Faster approval process
- ✅ Better quality submissions
→ Fork Preview only
- One-time: Enable GitHub Pages in your fork
- See FORK_PREVIEW_SETUP.md
→ Fork Preview + PR Preview
- Additionally: Create fine-grained PAT and add to secrets
- See PR_PREVIEW_SETUP.md
→ No setup needed
- Approve workflow runs as needed
- Review using PR preview URLs
- Both workflows can coexist - use what fits your workflow
- Fork previews work immediately with just GitHub Pages enabled
- PR previews require additional PAT setup but provide PR-specific URLs
- Contributors can use one or both depending on their needs