-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c30d37b
commit 3810e86
Showing
4 changed files
with
81 additions
and
47 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,32 @@ | ||
import re | ||
|
||
|
||
class PayloadUtils: | ||
|
||
def extract_testing_status(description): | ||
if isinstance(description, str): # Check if description is a string | ||
match = re.search(r"TESTING_STATUS: \[([^\]]+)\]", description) | ||
if match: | ||
return match.group(1) | ||
return None # Return No | ||
|
||
def extract_testing_recommendation(description): | ||
if isinstance(description, str): # Check if description is a string | ||
match = re.search(r"QA_RECOMMENDATION: \[([^\]]+)\]", description) | ||
if match: | ||
return match.group(1) | ||
return None # Return No | ||
|
||
def extract_build_name(name): | ||
if isinstance(name, str): # Check if description is a string | ||
match = re.search(r"Build Validation sign-off - (.+)", name) | ||
if match: | ||
return match.group(1) | ||
return None | ||
|
||
def extract_build_version(build_name): | ||
if isinstance(build_name, str): # Check if description is a string | ||
match = re.search(r"(\d+\.\d+\w*)", build_name) | ||
if match: | ||
return match.group(1) | ||
return None |