ayagmar opened a new pull request, #14738:
URL: https://github.com/apache/lucene/pull/14738

   Add GitHub Actions workflow for automatic PR backporting with intelligent 
branch detection, conflict handling, and comprehensive error reporting. 
Supports multiple branch naming patterns and provides detailed feedback via 
comments.
   
   ### ๐Ÿ”ง Requirements
   
   Enable "Allow GitHub Actions to create and approve pull requests" in 
repository settings is enabled
   
   
   ### ๐Ÿš€ Usage
   
   1. Add backport labels to your PR (e.g., `backport/v1.0`, `backport/13.1`)
   2. Merge the PR
   3. Workflow automatically creates backport PRs to target branches
   4. Review and merge the generated backport PRs
   
   ### ๐Ÿท๏ธ Supported Label Format
   
   - `backport/1.0` โ†’ looks for `branch_1_0`, `release/1.0`, `v1.0`, etc.
   - `backport/13.1` โ†’ looks for `branch_13_1`, `release/13.1`, `v13.1`, etc.
   - Case-insensitive: `Backport/` also works
   
   
   ### ๐Ÿงช Testing : 
   Tested with multiple scenarios:
   - โœ… Single successful backport
   - โœ… Multiple backports (mixed success/failure)
   - โœ… Missing target branches (graceful failure)
   - โœ… Cherry-pick conflicts (manual resolution guide)
   - โœ… Duplicate PR detection
   
   Created A pull request to main, with two labels. backport/existing_branch 
and backport/branch_does_not_exist
   
![{0AC14E21-C311-468F-836E-91B50DFB7683}](https://github.com/user-attachments/assets/c9197b88-d7b0-4b27-a0dc-6a94bcb0e913)
   PR is created to the existing branch 
   
![{9F4B2AEC-EED0-4C46-A401-615E7EFB4D2D}](https://github.com/user-attachments/assets/3bca0808-36b9-4f32-89cc-5405ebe8560c)
   Comment is added on main PR to specify one branch was not found 
   Logs
   
![{09066F7F-C7D4-4E8D-8198-7BD1C9809B0A}](https://github.com/user-attachments/assets/bd512b8b-ec18-4b1c-bdf6-6e023e903f8e)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to