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

feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable #145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

paolomainardi
Copy link
Member

No description provided.

@paolomainardi paolomainardi changed the title feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable DRAFT feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable Oct 31, 2023
@paolomainardi paolomainardi changed the title DRAFT feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable Oct 31, 2023
@paolomainardi paolomainardi changed the title feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable DRAFT: feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable Oct 31, 2023
@paolomainardi paolomainardi changed the title DRAFT: feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable feat: validate GITLAB_PROJECT_RW_AND_API_TOKEN variable Oct 31, 2023
@@ -20,6 +20,14 @@ if [[ ( -z $GITLAB_PROJECT_RW_AND_API_TOKEN ) ]]; then
exit 1
fi

if [[ ! -z "${GITLAB_PROJECT_RW_AND_API_TOKEN}" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

this check is not necessary because at line 15 we check for the opposite to bail out.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks for catching, fixed

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