mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-6071] fix jsdoc warnings and errors (#8948)
* fix content docs * fix extensions docs * fix insights docs * [ci:force] fix jsdoc errors and warnings * enable jsdoc linter * [ci:force] fix demo shell jsdoc * [ci:force] fix e2e typings * fix typo * fix typo
This commit is contained in:
@@ -120,11 +120,25 @@ function getCommits(options: DiffOptions): Array<Commit> {
|
||||
.filter((commit: Commit) => commitAuthorAllowed(commit, authorFilter));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if commit author is allowed
|
||||
*
|
||||
* @param commit git commit
|
||||
* @param authorFilter filter
|
||||
* @returns `true` if author is allowed, otherwise `false`
|
||||
*/
|
||||
function commitAuthorAllowed(commit: Commit, authorFilter: string): boolean {
|
||||
const filterRegex = RegExp(authorFilter);
|
||||
return !(filterRegex.test(commit.author) || filterRegex.test(commit.author_email));
|
||||
}
|
||||
|
||||
/**
|
||||
* Changelog command
|
||||
*
|
||||
* @param _args (unused)
|
||||
* @param workingDir working directory
|
||||
* @returns void
|
||||
*/
|
||||
export default function main(_args: string[], workingDir: string) {
|
||||
program
|
||||
.description('Generate changelog report for two branches of git repository')
|
||||
|
Reference in New Issue
Block a user