Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmcmu committed Sep 24, 2024
1 parent 35a5ef6 commit d1abb5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/JirabotMerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ jobs:
sys.exit(1)
project_prefixes = projectConfig.get('projectPrefixes')
if project_prefixes is None:
print('Error: PROJECT_CONFIG is missing required field: projectPrefixes')
if not project_prefixes:
print('Error: PROJECT_CONFIG is missing required field: projectPrefixes. Add a "projectPrefixes" JSON array of project prefix strings to the PROJECT_CONFIG.')
sys.exit(1)
if not isinstance(project_prefixes, list):
print('Error: PROJECT_CONFIG field projectPrefixes is not a valid JSON array, aborting.')
sys.exit(1)
project_list_regex = '|'.join(project_prefixes)
Expand Down

0 comments on commit d1abb5c

Please sign in to comment.