function filterCommits(commits, excludeMergeBranches) {
    const filteredCommits = [];
    for (const commit of commits) {
        if (excludeMergeBranches) {
            let matched = false;
            for (const excludeMergeBranch of excludeMergeBranches) {
                if (commit.summary.includes(excludeMergeBranch)) {
                    matched = true;
                    break;
                }
            }
            if (matched) {
                continue;
            }
        }
        filteredCommits.push(commit);
    }
    return filteredCommits;
}
/**
 * Filters out all commits which match the exclude pattern
 */
Filters out all commits which match the exclude pattern
Filters out all commits which match the exclude pattern
function filterCommits(commits, excludeMergeBranches) {
    const filteredCommits = [];
    for (const commit of commits) {
        if (excludeMergeBranches) {
            let matched = false;
            for (const excludeMergeBranch of excludeMergeBranches) {
                if (commit.summary.includes(excludeMergeBranch)) {
                    matched = true;
                    break;
                }
            }
            if (matched) {
                continue;
            }
        }
        filteredCommits.push(commit);
    }
    return filteredCommits;
}
function filterCommits ( commits , excludeMergeBranches ) { const filteredCommits = [ ] ; for ( const commit of commits ) { if ( excludeMergeBranches ) { let matched = false ; for ( const excludeMergeBranch of excludeMergeBranches ) { if ( commit . summary . includes ( excludeMergeBranch ) ) { matched = true ; break ; } } if ( matched ) { continue ; } } filteredCommits . push ( commit ) ; } return filteredCommits ; }
Filters out all commits which match the exclude pattern
Filters out all commits which match the exclude pattern