Class SendRepositoryDispatch

  • All Implemented Interfaces:
    io.typeflows.util.Renderable

    
    public final class SendRepositoryDispatch
    extends BaseRun
                        

    A workflow step that sends a repository dispatch event via the GitHub API.

    Repository dispatch events allow you to trigger workflows in the same repository or external repositories programmatically. This step uses the GitHub REST API to send a POST request with a custom event type and optional payload data. The receiving repository must have a workflow configured to listen for repository_dispatch events with the specified event type. This enables cross-workflow communication and external triggering of automated processes.

    • Constructor Detail

    • Method Detail

      • create

        @JvmOverloads() final static SendRepositoryDispatch create(String eventType, StrExp token, Map<String, Object> clientPayload, String name, Configure<SendRepositoryDispatch.DSL> step)

        Creates and configures a SendRepositoryDispatch instance.

        Parameters:
        eventType - The custom event type that identifies this dispatch
        token - GitHub token with repository permissions
        clientPayload - Optional payload data to send with the dispatch event
        name - Optional name for the step (defaults to "Repository Dispatch")
        step - Configuration lambda to customize the step
        Returns:

        Configured SendRepositoryDispatch instance

      • create

        @JvmOverloads() final static SendRepositoryDispatch create(String eventType, StrExp token, Map<String, Object> clientPayload, String name)

        Creates and configures a SendRepositoryDispatch instance.

        Parameters:
        eventType - The custom event type that identifies this dispatch
        token - GitHub token with repository permissions
        clientPayload - Optional payload data to send with the dispatch event
        name - Optional name for the step (defaults to "Repository Dispatch")
        Returns:

        Configured SendRepositoryDispatch instance

      • create

        @JvmOverloads() final static SendRepositoryDispatch create(String eventType, StrExp token, Map<String, Object> clientPayload)

        Creates and configures a SendRepositoryDispatch instance.

        Parameters:
        eventType - The custom event type that identifies this dispatch
        token - GitHub token with repository permissions
        clientPayload - Optional payload data to send with the dispatch event
        Returns:

        Configured SendRepositoryDispatch instance

      • create

        @JvmOverloads() final static SendRepositoryDispatch create(String eventType, StrExp token)

        Creates and configures a SendRepositoryDispatch instance.

        Parameters:
        eventType - The custom event type that identifies this dispatch
        token - GitHub token with repository permissions
        Returns:

        Configured SendRepositoryDispatch instance