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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSendRepositoryDispatch.DSLpublic classSendRepositoryDispatch.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringeventTypepublic final Stringrepositorypublic final Stringshellpublic final IntegertimeoutMinutespublic final BooleancontinueOnErrorpublic final StringworkingDirectorypublic final Map<String, Object>envprivate final Stringnamepublic final Stringidpublic final Expressionconditionpublic final Map<String, Object>extrapublic final static SendRepositoryDispatch.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetEventType()final StringgetName()final static SendRepositoryDispatchcreate(String eventType, StrExp token, Map<String, Object> clientPayload, String name, Configure<SendRepositoryDispatch.DSL> step)Creates and configures a SendRepositoryDispatch instance. final static SendRepositoryDispatchcreate(String eventType, StrExp token, Map<String, Object> clientPayload, String name)Creates and configures a SendRepositoryDispatch instance. final static SendRepositoryDispatchcreate(String eventType, StrExp token, Map<String, Object> clientPayload)Creates and configures a SendRepositoryDispatch instance. final static SendRepositoryDispatchcreate(String eventType, StrExp token)Creates and configures a SendRepositoryDispatch instance. -
-
Method Detail
-
getEventType
final String getEventType()
-
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 dispatchtoken- GitHub token with repository permissionsclientPayload- Optional payload data to send with the dispatch eventname- 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 dispatchtoken- GitHub token with repository permissionsclientPayload- Optional payload data to send with the dispatch eventname- 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 dispatchtoken- GitHub token with repository permissionsclientPayload- 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 dispatchtoken- GitHub token with repository permissions- Returns:
Configured SendRepositoryDispatch instance
-
-
-
-