Skip to content

Add --filter option#11

Open
andergnet wants to merge 3 commits intostt-systems:developfrom
andergnet:master
Open

Add --filter option#11
andergnet wants to merge 3 commits intostt-systems:developfrom
andergnet:master

Conversation

@andergnet
Copy link

Add a "--filter " option to execute an action only in modules that are in the specified branch.

@CLAassistant
Copy link

CLAassistant commented Jun 19, 2025

CLA assistant check
All committers have signed the CLA.

@RDCH106 RDCH106 self-requested a review June 19, 2025 14:27
@RDCH106
Copy link
Member

RDCH106 commented Jun 19, 2025

Thank you for your contribution.

I need to change the base reference branch where you are contributing from master to develop. The master branch is reserved for stable code in production.

@RDCH106 RDCH106 changed the base branch from master to develop June 19, 2025 14:56
Copy link
Member

@RDCH106 RDCH106 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a first review, I left some comments that I hope to clarify with you.

Comment on lines +74 to +75
self.__submodule_path_pattern = re.compile('path ?= ?([A-za-z0-9-_]+)(\\/[A-za-z0-9-_]+)*([A-za-z0-9-_])')
self.__path_pattern = re.compile(' ([A-za-z0-9-_]+)(\\/[A-za-z0-9-_]+)*([A-za-z0-9-_])')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of problems did you have to make this change?

Copy link
Author

@andergnet andergnet Jun 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this is a unrelated change. When I was testing the new feature I noticed a warning complaining about a malformed regular expression, something like unrecognized escape sequence. Either it was missing a backslash or it had one extra. I decided that it was missing one so it's able to parse windows paths.

It could go in a different PR if you wish.

# type=self.empty_cmd,
default="")
parser.add_argument('--filter', dest='filter_branch',
help='Execute this command only in modules that have an specific branch.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove . at the end of the help to preserve the style with the other helps

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

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.

3 participants