Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(provider): handle branch names with command keywords in pr comments
This commit fixes a bug in parsing pipeline control comments (e.g., /test, /retest, /cancel) when branch names contain command keywords like "/test". Previously, the code would incorrectly split comments with such branch names, causing failures. Key improvements: - Use `strings.SplitN` to split only on the first instance of the command keyword. - Add support for comments with key=value pairs after the pipeline name. - Include test cases for branch names containing "/test" and comments with `key=value` pairs. Example: Before: Branch "feature/test-new" would break parsing due to multiple splits on "/test" keyword. After: The code now correctly processes branch names with command keywords and handles key=value pairs. The parsing is now more robust for real-world scenarios.
- Loading branch information