Skip to content

Commit

Permalink
change: settings on repo level that are overwritten by org level sett…
Browse files Browse the repository at this point in the history
…ings should issue a warning
  • Loading branch information
netomi committed Jan 7, 2025
1 parent e12d4bc commit 332c52d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otterdog/models/repo_workflow_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *******************************************************************************
# Copyright (c) 2023-2024 Eclipse Foundation and others.
# Copyright (c) 2023-2025 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html
Expand Down Expand Up @@ -110,7 +110,7 @@ def validate(self, context: ValidationContext, parent_object: Any) -> None:
and self.default_workflow_permissions == "write"
):
context.add_failure(
FailureType.INFO,
FailureType.WARNING,
f"{self.get_model_header(parent_object)} has 'default_workflow_permissions' of value "
f"'{self.default_workflow_permissions}', "
f"while on organization level it is restricted to "
Expand All @@ -122,7 +122,7 @@ def validate(self, context: ValidationContext, parent_object: Any) -> None:
and self.actions_can_approve_pull_request_reviews is True
):
context.add_failure(
FailureType.INFO,
FailureType.WARNING,
f"{self.get_model_header(parent_object)} has 'actions_can_approve_pull_request_reviews' enabled, "
f"while on organization level it is disabled, setting will be ignored.",
)
Expand Down

0 comments on commit 332c52d

Please sign in to comment.