getCommitErrors() to return `commits` as third parameter

Signed-off-by: Rafael Xavier de Souza <rxaviers@gmail.com>