java.lang.Object
org.kohsuke.github.GHAutolink
Represents a GitHub repository autolink reference.
- Author:
- Alaurant
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes this autolinkint
getId()
Gets the autolink IDGets the key prefix used to identify issues/PR referencesgetOwner()
Gets the repository that owns this autolinkGets the URL template that will be used for matchingboolean
Checks if the autolink uses alphanumeric values
-
Constructor Details
-
GHAutolink
public GHAutolink()Instantiates a new Gh autolink.
-
-
Method Details
-
getId
public int getId()Gets the autolink ID- Returns:
- the id
-
getKeyPrefix
Gets the key prefix used to identify issues/PR references- Returns:
- the key prefix 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
Gets the repository that owns this autolink- Returns:
- the repository instance
-
delete
Deletes this autolink- Throws:
IOException
- if the deletion fails
-