Skip to content

Github

Initialization of the GitHub ZenML integration.

GitHubIntegration

Bases: Integration

Definition of GitHub integration for ZenML.

Source code in src/zenml/integrations/github/__init__.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class GitHubIntegration(Integration):
    """Definition of GitHub integration for ZenML."""

    NAME = GITHUB
    REQUIREMENTS: List[str] = ["pygithub"]


    @classmethod
    def plugin_flavors(cls) -> List[Type[BasePluginFlavor]]:
        """Declare the event flavors for the github integration.

        Returns:
            List of stack component flavors for this integration.
        """
        from zenml.integrations.github.plugins import GithubWebhookEventSourceFlavor

        return [GithubWebhookEventSourceFlavor]

plugin_flavors() classmethod

Declare the event flavors for the github integration.

Returns:

Type Description
List[Type[BasePluginFlavor]]

List of stack component flavors for this integration.

Source code in src/zenml/integrations/github/__init__.py
31
32
33
34
35
36
37
38
39
40
@classmethod
def plugin_flavors(cls) -> List[Type[BasePluginFlavor]]:
    """Declare the event flavors for the github integration.

    Returns:
        List of stack component flavors for this integration.
    """
    from zenml.integrations.github.plugins import GithubWebhookEventSourceFlavor

    return [GithubWebhookEventSourceFlavor]