def config_custom_subjects()

in asfyaml/feature/github/custom_subjects.py [0:0]


def config_custom_subjects(self: ASFGitHubFeature):
    # Custom subjects for events
    custom_subjects = self.yaml.get("custom_subjects")
    if custom_subjects and isinstance(custom_subjects, dict):
        # Validate each template
        for key, subject in custom_subjects.items():
            assert key in constants.VALID_GITHUB_ACTIONS, f"Unknown action '{key}' found in custom_subjects!"
            validate_github_subject(subject)