Class GHAutolink

java.lang.Object
org.kohsuke.github.GHAutolink

public class GHAutolink extends Object
Represents a GitHub repository autolink reference.
Author:
Alaurant
See Also:
  • Constructor Details

    • GHAutolink

      public GHAutolink()
      Instantiates a new Gh autolink.
  • Method Details

    • getId

      public int getId()
      Gets the autolink ID
      Returns:
      the id
    • getKeyPrefix

      public String getKeyPrefix()
      Gets the key prefix used to identify issues/PR references
      Returns:
      the key prefix string
    • getUrlTemplate

      public String getUrlTemplate()
      Gets the URL template that will be used for matching
      Returns:
      the URL template string
    • isAlphanumeric

      public boolean isAlphanumeric()
      Checks if the autolink uses alphanumeric values
      Returns:
      true if alphanumeric, false otherwise
    • getOwner

      public GHRepository getOwner()
      Gets the repository that owns this autolink
      Returns:
      the repository instance
    • delete

      public void delete() throws IOException
      Deletes this autolink
      Throws:
      IOException - if the deletion fails