Class GHEventPayload.WorkflowDispatch

java.lang.Object
org.kohsuke.github.GHEventPayload
org.kohsuke.github.GHEventPayload.WorkflowDispatch
Enclosing class:
GHEventPayload

public static class GHEventPayload.WorkflowDispatch extends GHEventPayload
Occurs when someone triggered a workflow run or sends a POST request to the "Create a workflow dispatch event" endpoint.
See Also:
  • Constructor Details

    • WorkflowDispatch

      public WorkflowDispatch()
  • Method Details

    • getInputs

      public Map<String,Object> getInputs()
      Gets the map of input parameters passed to the workflow.
      Returns:
      the map of input parameters
    • getRef

      public String getRef()
      Gets the ref of the branch (e.g. refs/heads/main)
      Returns:
      the ref of the branch
    • getWorkflow

      public String getWorkflow()
      Gets the path of the workflow file (e.g. .github/workflows/hello-world-workflow.yml).
      Returns:
      the path of the workflow file
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance