java.lang.Object
org.kohsuke.github.GHLabel
The type GHLabel.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAGHLabelBuilderthat creates a newGHLabelConsumer must callGitHubRequestBuilderDone.done()to create the new instance.static classAGHLabelBuilderthat updates a single property per requestGitHubRequestBuilderDone.done()is called automatically after the property is set.static classAGHLabelBuilderthat allows multiple properties to be updated per request. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete this label from the repository.booleanEquals.getColor()Color code without leading '#', such as 'f29513'.Purpose of Label.longgetId()Gets id.getName()Gets name.Gets node id.getUrl()Gets url.inthashCode()Hash code.booleanIf the label is one of the default labels created by GitHub automatically.set()Begins a single property update.update()Begins a batch update Consumer must callGitHubRequestBuilderDone.done()to commit changes.
-
Method Details
-
delete
Delete this label from the repository.- Throws:
IOException- the io exception
-
equals
Equals. -
getColor
Color code without leading '#', such as 'f29513'.- Returns:
- the color
-
getDescription
Purpose of Label.- Returns:
- the description
-
getId
public long getId()Gets id.- Returns:
- the id
-
getName
Gets name.- Returns:
- the name
-
getNodeId
Gets node id.- Returns:
- the node id.
-
getUrl
Gets url.- Returns:
- the url
-
hashCode
public int hashCode()Hash code. -
isDefault
public boolean isDefault()If the label is one of the default labels created by GitHub automatically.- Returns:
- true if the label is a default one
-
set
Begins a single property update.- Returns:
- a
GHLabel.Setter
-
update
Begins a batch update Consumer must callGitHubRequestBuilderDone.done()to commit changes.- Returns:
- a
GHLabel.Updater
-