Skip to content

Commit

Permalink
Fix usage of file check labels
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-cavalheiro committed Dec 13, 2024
1 parent 0824c89 commit ecf7a8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions galaxy/integrations/gitlab/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ async def get_repo_files(self, repo_full_path: str) -> dict:
if file_check["regex"]:
result = re.search(file_check["regex"], file["content"]) if file_check["regex"] else None
repo_file_checks[file_check["destination"]] = (
result.group(1) if result else FileCheckStatus.FILE_FOUND_NO_MATCH
result.group(1) if result else FileCheckStatus.FILE_FOUND_NO_MATCH.value
)
else:
repo_file_checks[file_check["destination"]] = FileCheckStatus.FILE_FOUND
repo_file_checks[file_check["destination"]] = FileCheckStatus.FILE_FOUND.value
else:
repo_file_checks[file_check["destination"]] = FileCheckStatus.FILE_NOT_FOUND
repo_file_checks[file_check["destination"]] = FileCheckStatus.FILE_NOT_FOUND.value

return repo_file_checks

Expand Down

0 comments on commit ecf7a8b

Please sign in to comment.