Skip to content

Commit e1fd794

Browse files
jakebolamBerkmann18tenshiAMD
authored
fix: set default value as 7 for contributorsPerLine (#139)
fix: set default value as `7` for `contributorsPerLine` Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com> Co-authored-by: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com>
1 parent 0b97062 commit e1fd794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generate/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function formatLine(contributors) {
4444
}
4545

4646
function generateContributorsList(options, contributors) {
47+
const contributorsPerLine = options.contributorsPerLine || 7
4748
return _.flow(
4849
_.sortBy(contributor => {
4950
if (options.contributorsSortAlphabetically) {
@@ -53,7 +54,7 @@ function generateContributorsList(options, contributors) {
5354
_.map(function formatEveryContributor(contributor) {
5455
return formatContributor(options, contributor)
5556
}),
56-
_.chunk(options.contributorsPerLine),
57+
_.chunk(contributorsPerLine),
5758
_.map(formatLine),
5859
_.join('\n </tr>\n <tr>\n '),
5960
newContent => {

0 commit comments

Comments
 (0)