Class GHWorkflowJob

All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHWorkflowJob extends ClassBase
Represents a GitHub Workflow Job. This class provides methods and properties to access information about a workflow job in GitHub Actions.
  • Constructor Details

    • GHWorkflowJob

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

    • getName

      public String getName()
      Returns the name of the workflow job.
      Returns:
      the name of the workflow job
    • getStartedAt

      public OffsetDateTime getStartedAt()
      Returns the start time of the workflow job.
      Returns:
      the start time of the workflow job
    • getCompletedAt

      public OffsetDateTime getCompletedAt()
      Returns the completion time of the workflow job.
      Returns:
      the completion time of the workflow job
    • getStatus

      public String getStatus()
      Returns the status of the workflow job.
      Returns:
      the status of the workflow job
    • getConclusion

      public String getConclusion()
      Returns the conclusion of the workflow job.
      Returns:
      the conclusion of the workflow job
    • getHeadSha

      public String getHeadSha()
      Returns the head SHA of the workflow job.
      Returns:
      the head SHA of the workflow job
    • getHeadBranch

      public String getHeadBranch()
      Returns the head branch of the workflow job.
      Returns:
      the head branch of the workflow job
    • getRunId

      public int getRunId()
      Returns the run ID of the workflow job.
      Returns:
      the run ID of the workflow job
    • getRunnerGroupId

      public int getRunnerGroupId()
      Returns the runner group ID of the workflow job.
      Returns:
      the runner group ID of the workflow job
    • getSteps

      public List<GHStep> getSteps()
      Returns the list of steps in the workflow job.
      Returns:
      the list of steps
    • getRunnerId

      public int getRunnerId()
      Returns the runner ID of the workflow job.
      Returns:
      the runner ID of the workflow job
    • getLabels

      public List<String> getLabels()
      Returns the list of labels associated with the workflow job.
      Returns:
      the list of labels
    • getCheckRunUrl

      public String getCheckRunUrl()
      Returns the URL for the check run associated with the workflow job.
      Returns:
      the check run URL
    • getRunnerGroupName

      public String getRunnerGroupName()
      Returns the runner group name of the workflow job.
      Returns:
      the runner group name
    • getRunnerName

      public String getRunnerName()
      Returns the runner name of the workflow job.
      Returns:
      the runner name
    • getRunUrl

      public String getRunUrl()
      Returns the run URL of the workflow job.
      Returns:
      the run URL
    • getWorkflowName

      public String getWorkflowName()
      Returns the workflow name of the workflow job.
      Returns:
      the workflow name