Page tree

In this section will be described tho Commit Hub classes used in custom Rule:



Implementing the check() method you will use the commitCheckRequest argument. Here is the list of methods of its type CommitCheckRequest:

method namedescription
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 namedescription
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

  • No labels