Commit Graph

17 Commits

Author SHA1 Message Date
Chenhe Gu
7c11027d80 Fix/allow stale branch auto sync (#556)
* fix redirect language code prefixes

* fix: Allow stale branches to trigger auto-sync without false mixed-content errors

Changes the PR analysis to use merge-base instead of PR base commit for
comparison. This allows stale branches to trigger translation automation
without being falsely flagged as "mixed content" PRs.

**Problem:**
- When a PR branch becomes stale (main moves forward after branch creation)
- Old approach compared PR_BASE (main's current HEAD) vs PR_HEAD
- This included unrelated changes from main as "part of the PR"
- Caused false "mixed content" errors (e.g., PR #555)

**Solution:**
- Use merge-base to find where branch diverged from main
- Compare MERGE_BASE vs PR_HEAD (only actual PR changes)
- Ignore unrelated changes that landed on main after branch creation

**Benefits:**
-  Better contributor experience (no manual branch updates needed)
-  Accurate PR categorization (no false positives)
-  Faster automation (no waiting for updates)
-  Works with concurrent PRs

**Example (PR #555):**
- OLD: Detected 4 files (en + cn + jp) → "mixed content" 
- NEW: Detected 1 file (en only) → "english" 

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-27 04:36:24 -08:00
Chenhe Gu
08e9e11c90 Replace main with revamp (#547) 2025-11-26 04:46:31 -08:00
crazywoola
0a84fee868 update: checks (#408) 2025-08-15 11:17:38 +08:00
crazywoola
d93ed7e7f9 chore: update template 2025-07-16 16:29:38 +08:00
crazywoola
ac34561dc2 chore: update tmpl 2025-07-16 16:27:53 +08:00
crazywoola
051938b0d3 feat: add template 2025-07-16 16:25:56 +08:00
Alter-xyz
98b84e3b7f !feat: action on pull request
main branch is now protected
2025-05-19 21:54:16 +08:00
Alter-xyz
2a089a31ff Update docs_bundle.yml 2025-05-19 17:31:11 +08:00
Alter-xyz
c75078ddd5 chore: action 2025-05-19 17:28:43 +08:00
Alter-xyz
8fb0738a8f chore: format matching 2025-05-19 10:37:03 +08:00
Alter-xyz
2ca78ac8e9 fix: git message 2025-05-18 00:20:13 +08:00
Alter-xyz
f8da9ed2f8 fix: git message 2025-05-18 00:11:57 +08:00
Alter-xyz
fb3ade9d72 feat: just one 2025-05-17 23:51:16 +08:00
Alter-xyz
f9092f6d7b fix and test 2025-05-17 23:24:32 +08:00
Alter-xyz
af71d8af24 feat: action 2025-05-17 23:14:41 +08:00
Alter-xyz
d070538908 Update process-mdx.yml 2025-05-17 20:03:50 +08:00
Alter-xyz
8cbe9b311d Create process-mdx.yml 2025-05-17 19:43:33 +08:00