-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python tool to check for matching CI branches (#583)
Use in windows CI to try matching gazebodistro branch. Fixes #579. Part of #564. Signed-off-by: Steve Peters <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
from __future__ import print_function | ||
import re | ||
import sys | ||
|
||
if len(sys.argv) != 2: | ||
print('need to branch name', file=sys.stderr) | ||
exit() | ||
branchName = sys.argv[1] | ||
|
||
pattern = 'ci_matching_branch/' | ||
match = re.search(pattern, branchName) | ||
if match: | ||
print(f"{branchName} matches {pattern}") | ||
else: | ||
sys.exit(f"{branchName} does not match {pattern}") |