Skip to content

Commit

Permalink
Add desktop support
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios committed Jan 27, 2025
1 parent 14b71d1 commit d63ce4e
Showing 1 changed file with 4 additions and 1 deletion.
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_DESKTOP, PLATFORM, REPORT_TYPES # noqa


def parse_args(cmdln_args):
Expand Down Expand Up @@ -55,6 +55,9 @@ def validate_project(platform, project, report_type):
if platform == 'mobile' and project not in PROJECTS_MOBILE:
print(f"Error: Invalid project '{project}' for mobile. Valid options are {PROJECTS_MOBILE}") # noqa
sys.exit(1)
elif platform == 'desktop' and project not in PROJECTS_DESKTOP:
print(f"Error: Invalid project '{project}' for desktop. Valid options are {PROJECTS_DESKTOP}") # noqa
sys.exit(1)
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)
Expand Down

0 comments on commit d63ce4e

Please sign in to comment.