Skip to content

Instantly share code, notes, and snippets.

@anhtv08
Created August 25, 2019 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhtv08/ccb70fd01f76951861edbb65beb8e0e0 to your computer and use it in GitHub Desktop.
Save anhtv08/ccb70fd01f76951861edbb65beb8e0e0 to your computer and use it in GitHub Desktop.
def validate_tag_name(tags: List[str]):
required_tag_names: Sequence[str] = ['environment', 'owner', 'projectName', 'costCentre']
is_valid = True
for required_tag in required_tag_names:
if required_tag not in tags:
is_valid = False
break
return is_valid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment