Skip to content

Commit

Permalink
test without is_valid_certification_submission
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 27, 2024
1 parent c3851a8 commit 2c0b96d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/src/submission/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,18 @@ def craft_pr_content_error_msg(s: submission.Submission, repository: str) -> str
except submission.SubmissionError as e:
raise ParseFilesError(str(e))

# Checks that this PR is a valid "Chart certification" PR
is_valid, msg = s.is_valid_certification_submission(ignore_owners=True)
if not is_valid:
if s.modified_unknown:
msg = (
"[ERROR] PR includes one or more files not related to charts: "
+ ", ".join(s.modified_unknown)
)
return msg

# # Checks that this PR is a valid "Chart certification" PR
# is_valid, msg = s.is_valid_certification_submission(ignore_owners=True)
# if not is_valid:
# return msg

# Parse the modified files and determine if it is a "web_catalog_only" certification
try:
s.parse_web_catalog_only(repo_path="pr-branch")
Expand Down

0 comments on commit 2c0b96d

Please sign in to comment.