Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check for format of api string #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matanl490
Copy link
Contributor

No description provided.

Copy link
Member

@MPTG94 MPTG94 left a comment

Choose a reason for hiding this comment

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

Fix comment and merge

if '/api/' not in GITLAB_API_URL:
print("GITLAB_API_URL is not valid, should be in the format 'https://GitLabHostName.com/api/v4'")
print("Exiting...")
sys.exit(0)
Copy link
Member

Choose a reason for hiding this comment

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

0 exit code means everything went ok, if there is an error, the exit code needs to be different than 0

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.

2 participants