Docs
Auto Sync Repo
Auto Sync Repo
Auto Sync Upstream Repo
English
简体中文This project is configured with a sync workflow for the upstream repository oiov/wr.do, featuring:
- 🔄 Manual Sync Trigger - Auto-sync disabled by default, full control over sync timing
- 💬 Auto Comment After Sync - Add detailed sync information to related commits
- 🚨 Smart Error Handling - Auto-create detailed Issues when sync fails
- 🧹 Auto Cleanup Notifications - Automatically close previous sync failure Issues
How to Manually Trigger Sync
Method 1: Via GitHub Web Interface
- Go to the repository's Actions page
- Select "上游同步 | Upstream Sync" workflow from the left sidebar
- Click "Run workflow" button
- Choose whether to add comments after sync (enabled by default)
- Click "Run workflow" to confirm execution
Method 2: Via GitHub CLI
# Install and login to GitHub CLI
gh auth login
# Trigger sync workflow
gh workflow run "上游同步 | Upstream Sync" --repo your-username/wr.do
# Check workflow run status
gh run list --workflow="上游同步 | Upstream Sync" --repo your-username/wr.do
Checking Sync Status
- Workflow History: View "上游同步 | Upstream Sync" workflow run records in Actions page
- Sync Comments: After successful sync, comments with sync time, source repo info, etc. are added to the latest commit
- Error Reports: When sync fails, detailed Issues with error information and solutions are automatically created
Troubleshooting
Merge Conflicts: If you encounter merge conflicts, manual resolution is required:
git clone https://github.com/your-username/wr.do.git
cd wr.do
git remote add upstream https://github.com/oiov/wr.do.git
git fetch upstream
git merge upstream/main
# Resolve conflicts, then commit and push
Permission Issues: Ensure repository Actions permissions are enabled and "Allow GitHub Actions to create and approve pull requests" is enabled in settings.