Class CommitGroovyObject
java.lang.Object
groovy.lang.GroovyObjectSupport
org.jenkinsci.plugins.pipeline.github.CommitGroovyObject
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
Groovy wrapper over a
RepositoryCommit
.
Provides useful properties that allow one to iterate over a commits:
- Comments
- Files
- Statuses
And a few methods to create:
- Review comments
- Statuses- Author:
- Aaron Whiteside
- See Also:
-
RepositoryCommit
- Serialized Form
-
Method Summary
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
-
Method Details
-
getSha
-
getUrl
-
getAuthor
-
getCommitter
-
getMessage
-
getCommentCount
public int getCommentCount() -
getAdditions
public int getAdditions() -
getDeletions
public int getDeletions() -
getTotalChanges
public int getTotalChanges() -
getComments
-
getStatuses
-
getParents
-
getFiles
-
comment
-
comment
-
createStatus
-
createStatus
public CommitStatusGroovyObject createStatus(String status, String context, String description, String targetUrl)
-