public class CommitGroovyObject extends groovy.lang.GroovyObjectSupport implements Serializable
RepositoryCommit.
Provides useful properties that allow one to iterate over a commits:
- Comments
- Files
- Statuses
And a few methods to create:
- Review comments
- StatusesRepositoryCommit,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
ReviewCommentGroovyObject |
comment(Map<String,Object> params) |
ReviewCommentGroovyObject |
comment(String body,
String path,
Integer position) |
CommitStatusGroovyObject |
createStatus(Map<String,Object> params) |
CommitStatusGroovyObject |
createStatus(String status,
String context,
String description,
String targetUrl) |
int |
getAdditions() |
String |
getAuthor() |
int |
getCommentCount() |
Iterable<ReviewCommentGroovyObject> |
getComments() |
String |
getCommitter() |
int |
getDeletions() |
Iterable<CommitFileGroovyObject> |
getFiles() |
String |
getMessage() |
Iterable<String> |
getParents() |
String |
getSha() |
Iterable<CommitStatusGroovyObject> |
getStatuses() |
int |
getTotalChanges() |
String |
getUrl() |
public String getSha()
public String getUrl()
public String getAuthor()
public String getCommitter()
public String getMessage()
public int getCommentCount()
public int getAdditions()
public int getDeletions()
public int getTotalChanges()
public Iterable<ReviewCommentGroovyObject> getComments()
public Iterable<CommitStatusGroovyObject> getStatuses()
public Iterable<CommitFileGroovyObject> getFiles()
public ReviewCommentGroovyObject comment(Map<String,Object> params)
public ReviewCommentGroovyObject comment(String body, String path, Integer position)
public CommitStatusGroovyObject createStatus(Map<String,Object> params)
public CommitStatusGroovyObject createStatus(String status, String context, String description, String targetUrl)
Copyright © 2016–2021. All rights reserved.