In this section will be described tho Commit Hub classes used in custom Rule:
re.hub.commithub.rest.commit.CommitCheckRequest
- re.hub.commithub.rest.commit.Commit
Implementing the check() method you will use the commitCheckRequest argument. Here is the list of methods of its type CommitCheckRequest:
method name | description |
---|---|
String getVcs() | returns type name of VCS |
List<Commit> getCommits() | returns list of Commit objects contained in a push/transaction |
String getRepository() | returns repository name |
List of methods of Commit type:
method name | description |
---|---|
String getId() | returns ID of commit |
String getBranch() | returns name of commit's branch |
boolean isMerge() | returns if commit is a merge |
String getUserName() | returns committer's name |
String getMessage() | returns commit's message |
List<String> getFiles() | returns list of files in the commit |