Class GHStep

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHStep
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHStep extends GHBase
Represents a GitHub Action workflow step. This class provides methods and properties to access information about a specific step in a GitHub Action workflow job.
  • Constructor Details

    • GHStep

      public GHStep(org.json.JSONObject jsonObject)
      Constructs a new GHStep instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the step data
  • Method Details

    • getName

      public String getName()
      Returns the name of the step.
      Returns:
      the name of the step
    • getNumber

      public int getNumber()
      Returns the step number.
      Returns:
      the step number
    • getStatus

      public String getStatus()
      Returns the status of the step.
      Returns:
      the status of the step
    • getCompletedAt

      public OffsetDateTime getCompletedAt()
      Returns the completion time of the step.
      Returns:
      the completion time of the step
    • getStartedAt

      public OffsetDateTime getStartedAt()
      Returns the start time of the step.
      Returns:
      the start time of the step
    • getConclusion

      public String getConclusion()
      Returns the conclusion of the step.
      Returns:
      the conclusion of the step