You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(provider): handle branch names containing command keywords in 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.
0 commit comments