Class GHBranchProtection.Check

java.lang.Object
org.kohsuke.github.GHBranchProtection.Check
Enclosing class:
GHBranchProtection

public static class GHBranchProtection.Check extends Object
The type Check.
  • Constructor Details

    • Check

      public Check()
      no-arg constructor for the serializer
    • Check

      public Check(String context, Integer appId)
      Regular constructor for use in user business logic
      Parameters:
      context - the context string of the check
      appId - the application ID the check is supposed to come from. Pass "-1" to explicitly allow any app to set the status. Pass "null" to automatically select the GitHub App that has recently provided this check.
  • Method Details

    • getContext

      public String getContext()
      The context string of the check
      Returns:
      the string
    • getAppId

      public Integer getAppId()
      The application ID the check is supposed to come from. The value "-1" indicates "any source".
      Returns:
      the integer