Class GHWorkflowRun

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

public class GHWorkflowRun extends GHBase
This class represents a GitHub Workflow Run. It provides methods for fetching data about the workflow run such as its id, repository id, head repository id, head branch, and head SHA.
  • Constructor Details

    • GHWorkflowRun

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

    • getId

      public int getId()
      Returns the id of the workflow run.
      Returns:
      the id of the workflow run
    • getHeadRepositoryId

      public int getHeadRepositoryId()
      Returns the id of the head repository of the workflow run.
      Returns:
      the id of the head repository
    • getRepositoryId

      public int getRepositoryId()
      Returns the id of the repository of the workflow run.
      Returns:
      the id of the repository
    • getHeadBranch

      public String getHeadBranch()
      Returns the name of the head branch of the workflow run.
      Returns:
      the name of the head branch
    • getHeadSha

      public String getHeadSha()
      Returns the SHA of the head commit of the workflow run.
      Returns:
      the SHA of the head commit