Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This change adds support for ** in includeIf.onbranch conditions by replacing filepath.Match with a globbing library that supports this feature. Tests have been added to verify the new functionality.


PR created automatically by Jules for task 2462585007542734631

This commit introduces support for double wildcard (`**`) patterns in `includeIf.onbranch` conditions. The standard `filepath.Match` function does not support this, so we've switched to using the `github.com/gobwas/glob` library, which provides this functionality.

The implementation involves:
- Adding the `github.com/gobwas/glob` dependency.
- Creating a new `globMatch` function that uses this library with path separators enabled.
- Updating the `matchSubSection` function to use `globMatch` for `onbranch` conditions.
- Expanding the test suite to verify the new double wildcard behavior, including a case that ensures `*` does not match across path separators.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@dominikschulz dominikschulz marked this pull request as ready for review September 19, 2025 13:44
@dominikschulz dominikschulz self-requested a review September 19, 2025 13:44
@dominikschulz dominikschulz merged commit eaf3081 into master Sep 19, 2025
5 checks passed
@dominikschulz dominikschulz deleted the feature/issue-10-double-wildcard branch September 19, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants