Skip to content

Commit

Permalink
Add Thunderbird project
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios committed Nov 12, 2024
1 parent ccf8b8a commit f06f589
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from github import GithubClient
from jira import JiraClient
from testrail import TestRailClient
from utils.constants import PROJECTS_MOBILE, PROJECTS_ECOSYSTEM, PLATFORM, REPORT_TYPES # noqa
from utils.constants import PROJECTS_MOBILE, PROJECTS_ECOSYSTEM, PROJECTS_THUNDERBIRD, PLATFORM, REPORT_TYPES # noqa


def parse_args(cmdln_args):
Expand Down Expand Up @@ -58,6 +58,9 @@ def validate_project(platform, project, report_type):
elif platform == 'ecosystem' and project not in PROJECTS_ECOSYSTEM:
print(f"Error: Invalid project '{project}' for ecosystem. Valid options are {PROJECTS_ECOSYSTEM}") # noqa
sys.exit(1)
elif platform == 'thunderbird' and project not in PROJECTS_THUNDERBIRD:
print(f"Error: Invalid project '{project}' for ecosystem. Valid options are {PROJECTS_THUNDERBIRD}") # noqa
sys.exit(1)


def main():
Expand Down
7 changes: 6 additions & 1 deletion utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
PLATFORM = [
'mobile',
'ecosystem'
'ecosystem',
'thunderbird'
]

PROJECTS_THUNDERBIRD = [
'thunderbird'
]

PROJECTS_ECOSYSTEM = [
Expand Down

0 comments on commit f06f589

Please sign in to comment.